Previous page

Next page

Locate page in Contents

Print this page

Migrating Containers from Servers with Virtuozzo Containers

You can use the pmigrate utility to migrate Containers that reside on remote servers running the following versions of the Virtuozzo Containers software:

  • Parallels Virtuozzo Containers 4.0 for Linux with update TU-4.0.0-464 or higher
  • Parallels Virtuozzo Containers 4.6 for Linux
  • Parallels Virtuozzo Containers 4.7 for Linux
  • Parallels Virtuozzo Containers 4.6 for Windows

Moving a Container from a remote Virtuozzo Containers server to a virtual machine on the local server with Virtuozzo involves completing the following steps:

  1. Installing the Virtuozzo agent on the server with Virtuozzo Containers.
  2. Running the pmigrate utility on the destination server to migrate the Container.

Installing the Virtuozzo Agent

First, you must install the Virtuozzo agent on the source Virtuozzo Containers server. During migration, the agent collects essential information on the Container to be moved and transfers it to the pmigrate utility on the destination server. To install the Virtuozzo agent, do the following:

  1. Log in to the source Virtuozzo Containers server as a user with administrative rights.
  2. Copy the Virtuozzo agent installation file to the source server. The installation file is located in the /usr/share/pmigrate/tools directory on the server with Virtuozzo:
    • parallels-transporter-for-containers-XXXX.run. Use this file to install the Virtuozzo agent on servers running Parallels Virtuozzo Containers 4.0, 4.6, or 4.7 for Linux.
    • ParallelsTransporterForContainers-parallels-XXXX.exe. Use this file to install the Virtuozzo agent on servers running Parallels Virtuozzo Containers 4.6 for Windows.
  3. Execute the installation file on the source server.
  4. Follow the instructions of the wizard to install the Virtuozzo agent.

Migrating the Container

Once the Virtuozzo agent is installed, you can use the pmigrate utility to move a Container to a virtual machine. For example, you can run the following command on the destination server to migrate Container 101 from the remote server with IP address 192.168.12.12 to the VM_101 virtual machine:

# pmigrate c root:8uhytv4@192.168.12.12/101 v VM_101

Connecting to local agent...

Querying configuration...

Migrating...

Operation progress 100%

Registering VM...

PVC to VM /var/parallels/VM_101.pvm/config.pvs migration succeeded.

The resulting virtual machine will be put to the /var/parallels directory on the destination server. If you do not specify the administrative credentials on the source server (for root on Linux servers and Administrator on Windows servers), you will be asked to do so during the command execution.