Changes
→Packing a new template cache
Now, rename the existing template cache:
[HN]# mv /vz/template/cache/debian-4.0-i386-minimal.tar.gz{,-old}
Change to VE folder:
[HN]# cd /vz/private/555
For newer OpenVZ kernel and [[ploop]] VE: (mount VE)
[HN]# mkdir /mnt/new_template
[HN]# mount -t ploop /vz/private/555/root.hdd/DiskDescriptor.xml /mnt/new_template
[HN]# cd /mnt/new_template
Now create a new tarball:
[HN]# tar --numeric-owner -czf /vz/template/cache/debian-4.0-i386-minimal.tar.gz .
For newer OpenVZ kernel and [[ploop]] VE: (unmount VE)
[HN]# umount /mnt/template
Clean up: