Changes

Jump to: navigation, search

Updating Debian template

140 bytes added, 16:02, 19 May 2015
modified to use unified way of mounting the container (ploop and non-ploop, doesn't matter)
You can get the value of nameserver from your /etc/resolv.conf. Your container should have an Internet access, so you either supply a public IP, or see [[using NAT for container with private IPs]] for information about how to use private IP and NAT.
Then start your container: [HN]# vzctl start 555 Finally, check that Internet is working from inside a your container: [HN]# vzctl exec 555 ping -n 3 -c 1 www.ru
== Update ==
Now, rename the existing template cache:
[HN]# mv /vz/template/cache/debian-4.0-i386-minimal.tar.gz{,-old}
 
Change to VE folder:
[HN]# vzctl mount 555
[HN]# cd /vz/root/555
Now create a new tarball:
[HN]# cd /vz/private/555 [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

Navigation menu