6,534
edits
Changes
modified to use unified way of mounting the container (ploop and non-ploop, doesn't matter)
Change to VE folder:
[HN]# cd /vz/private/vzctl mount 555 For newer OpenVZ kernel and [[ploop]] VE: (mount VE) [HN]# mkdir /mnt/new_template [HN]# mount -t ploop cd /vz/privateroot/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 .
Clean up:
[HN]# vzctl umount 555
[HN]# vzctl destroy 555
[HN]# rm -f /etc/vz/conf/555.conf.destroyed