In addition to using our native migration capability of a virtual environment from one hardware node to another, these machines can be moved manually.
NOTE: make sure that application templates from the source node are installed on the destination as well.
Before attempting this manual movement, we recommend that your environment have unique VE IDs across all of your servers. By doing this, it will avoid any possible renaming of the VEs. By using the Virtuozzo Cluster feature, it can take care of the automatic assignment of VE IDs. However, if there are VEs that have the same IDs, please change the ID prior to this manual move.
Stop the VE and disable the offline management through our command line interface (CLI). In the example below, the VE that will be migrated manually will be VE ID 101. The Virtuozzo program is also assumed to be installed under the default directory (
vzctl stop 101 vzctl set 101 --save --offline_management no
Move the content of
C:\vz\private\101folder from the source node to the same place on the secondary node.
3.1. Check whether the migrated VE resides in an alternative location or if it has additional drives, which are on the non-default folder
VZROOT\private\VEID. The easiest way to check is to run command
vzquota stat VEIDin Hardware Node CLI. In case the VE is in a different folder, or has disks placed on a different node's drives, it is necessary to correct the VE's conf file after step 4. In order to change VE's private area location
VzPrivate=path_to_CT_private_dir, the variable should be corrected in the conf file. To define the correct location for additional drives of the VE, it is required to modify corresponding
DRIVE_...=variable in the conf file.
3.2. The additional drives (efd-files) might be “shared”. In this case, it is necessary to move such drives with the disk’s primary owner (the owner is the VE, which exclusively uses the disk at this time). It is also recommended to migrate all VEs, which use the shared disks to the same node.
3.3. The migrated VE can have a vzcache template installed.
VzcacheTemplates=variable in VE's conf file points to the fact that VE uses the vzcache template. This template can be found in
C:\vz\Templates\__vzcachefolder of the HW node and needs copying to the target node.
Move the file
Just after you moved the files, run the following command to the DESTINATION node:
vzcfgt set 101 IsMigrated 1
If the VE you move is “bound” to a specific network adapter, you should either “unbind” it by executing
vzcfgt delete 101 NetPreferredHostAdapterMac
Or, bind it to corresponding interface on the target node by executing
vzcfgt set 101 NetPreferredHostAdapterMac=”AA-BB-CC-DD-EE-FF”
where the string AA-BB-…-FF is just the MAC address of the required interface on the destination node.
Once this is done, you may see that 101 is present on the destination node. You can verify this by running
You may also start the VE by running
vzctl start 101