Changes

Jump to: navigation, search

Debian template creation

841 bytes added, 06:18, 23 October 2011
m
Reverted edits by 72.55.174.8 (talk) to last revision by 31.18.17.90
exit
Heck of == Preparing for and packing template cache == We don't need an IP for the VE anymore, 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 job therecached OS tarball. In the command below, you'll want to replace <tt>i386</tt> with your architecture (i386, amd64, it absoltuely helps me outia64, 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.tar.gz
== Checking if template cache works ==

Navigation menu