vzmlocal utility allows you to move Containers within your Hardware Node. Moving a Container within one and the same Hardware Node consists in changing the Container ID and its private area and root paths. So, you may use
vzmlocal to change the ID of the corresponding Container only or to additionally modify its private area and root path.
Let us assume that you wish to change the ID of your Container from 101 to 111 and modify its private area and root paths from
/vz/private/my_dir and from
/vz/root/ct111, respectively. To this effect, you should execute the following command on the Hardware Node:
# vzmlocal 101:111:/vz/private/my_dir:/vz/root/ct111
Moving/copying Container#101 -> Container#111,
[/vz/private/my_dir], [/vz/root/ct111] ...
To check if Container 101 has been successfully moved to Container 111, you can use the following commands:
# vzlist -a
CTID NPROC STATUS IP_ADDR HOSTNAME
1 43 running 10.0.10.1 localhost
111 - stopped 10.0.10.101 myContainer
# ls /vz/private
# ls /vz/root
As can be seen from the example above, the ID of Container 101 has been changed to 111, its private area is now located in the
/vz/private/my_dir directory on the Node, and the path to its root directory is
Notes: 1. You may perform a number of moving operations by a single invocation of the
2. You may run the
vzmlocal utility on both running and stopped Containers.
In Parallels Management Console, you can move Containers within your Hardware Node with the help of the Move Container wizard. To invoke the wizard, select the Virtuozzo Containers item under the corresponding Hardware Node name, right-click the Container you wish to change the ID of, and select Tasks -> Move Container on the context menu. You will be asked by the wizard to complete a number of tasks:
>denotes the new ID assigned to the Container (e.g.
/vz/private/111for Container 111).
This window is displayed in one of the following cases:
-manually enter the new private and root paths for the Container or
-click the Set Default button to display and use the paths proposed by the wizard.
Please send us your feedback on this help page