Virtuozzo / Linux Reference
Migrating Templates
One nice feature VZ offers is the ability to run a virtual environment (VE or CT as it's now called) based on a particular ditribution on a host which may or may not share the same distribution. For instance, you could run a CT running Ubuntu while the host machine (Hardware Node or HN) is running CentOS. This is accomplished via the use of OS templates. As long as the HN contains the OS template on which a particular CT relies, it will run there. As such, if you want to move a VE from one HN to another, you will need to make sure the OS template exists there.
Modern versions of VZ (>= 4.x) will check for and automatically move the OS template over to the host as you're (vz)migrating the CT over to a new HN. However we like to make sure the template is in place prior to moving the CT.
The first step is to see if the template exists on the host. To see OS templates installed:
2.x (shows OS and application templates):
# vzpkgls mod_ssl-rh9 20040624 mysql-rh9 20030814 20050412 openwebmail-rh9 20050427 php-rh9 20050506 phpBB-rh9 20041229 postgresql-rh9 20050719 sl-webalizer-rh9 20040119 spamassassin-rh9 20040127 tomcat-rh9 20040524 usermin-rh9 20040116
>= 3.x (shows just OS templates, run without -O to see application as well):
# vzpkg list -O ubuntu-10.04-x86 2010-06-01 11:39:05 ubuntu-11.04-x86 2011-06-22 14:23:59 ubuntu-9.10-x86 2010-03-11 17:39:51 centos-5-x86 2010-03-11 17:12:27 debian-5.0-x86 2010-03-11 17:33:34