Делаю контейнер Debian 6 с предустановленным mc и настроенным на utf8 в Московской временной зоне.
Step 1) Create a virtual machine using whatever template you like.
Step 2) enter the virtual machine (vzctl enter CTID)
where CTID is the ID of the virtual machine
Step 3) Install/remove any software you want:
- Обновляем и настраиваем Utf8 и русскую локаль
- apt-get update
- apt-get upgrade
- apt-get install aptitude
- dpkg-reconfigure locales (выбираем ru_UTF8)
- su (перезаходим, что бы изменения вступили в силу)
- apt-get install mc (устанавливаем mc)
- Устанавливаем временную зону Москвы, что бы показывал московское время
- # rm /etc/localtime
- # ln -s /usr/share/zoneinfo/Europe/Moscow /etc/localtime
Step 4) Exit out of the virtual machine (but do not stop it)
Step 5) remove the ip address from the virtual machine
vzctl set CTID —ipdel all —save
or use the web interface to remove the ip address
Step 6) Stop the virtual machine
vzctl stop CTID
or use the web interface
Step 7) change directory to the virtual machines directory
cd /var/lib/vz/private/CTID
Step 8) tar the directory
tar –czvf /var/lib/vz/template/cache/debian-6.0-standard.ru.utf8_6.0-4_i386.tar.gz .
Note: the commands ends with a space followed by a period
Make sure you are in the directory for the virtual container
(/var/lib/vz/private/CTID)
Подробее можно почитать тут: http://forum.proxmox.com/threads/452-Creating-custom-templates