Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Debian template creation

841 bytes removed, 02:02, 23 October 2011
Preparing for and packing template cache
exit
== Preparing for and packing template cache == We don't need an IP for the VE anymoreHeck of a job there, and we definitely do not need it in template cache, so remove it: sudo vzctl set 777 --ipdel all --save Also, remove DNS server and search domain information from ''/etc/resolv.conf'' file '''in VE''': sudo nano /vz/private/777/etc/resolv.conf Also, remove ''/etc/hostname'' file '''in VE''': sudo rm -f /vz/private/777/etc/hostname Stop the VE: sudo vzctl stop 777 Go to the VE directory: cd /vz/private/777 Now create a cached OS tarball. In the command below, you'll want to replace <tt>i386</tt> with your architecture (i386, amd64, ia64, etc). sudo tar --numeric-owner -zcf /vz/template/cache/debian-5.0-i386-minimal.tar.gz . Look at the resulting tarball to see its size is sane: # ls -lh /vz/template/cache -rw-r--r-- 1 root root 51M Apr 10 03:16 debian-5.0-i386-minimal.tarabsoltuely helps me out.gz
== Checking if template cache works ==
Anonymous user