Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Updating Debian template

237 bytes removed, 16:02, 19 May 2015
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 .
 
For newer OpenVZ kernel and [[ploop]] VE: (unmount VE)
[HN]# umount /mnt/template
Clean up:
[HN]# vzctl umount 555
[HN]# vzctl destroy 555
[HN]# rm -f /etc/vz/conf/555.conf.destroyed