User`s guide
Operations on Virtual Machines and Containers 56
Migrating a Container to a Virtual Machine
The pmigrate utility allows you to migrate Containers to virtual machines. The source server,
i.e. the server where the Container resides before its migration, can be one of the following:
a local server running Parallels Server Bare Metal
a remote server running Parallels Server Bare Metal
a remote server running Parallels Virtuozzo Containers
Currently, the destination server, i.e. the server where the resulting virtual machine will be
created, can be only a local server with Parallels Server Bare Metal.
The process of migrating a Container to a virtual machine differs depending on whether the
server where the Container resides is running the Parallels Server Bare Metal or Parallels
Virtuozzo Containers software.
Migrating a Container from a Parallels Server
You can use the pmigrate utility to migrate Containers that reside on both local and remote
servers running Parallels Server Bare Metal. When migrating a Container from a local server,
you only need to specify the Container ID and the name of the resulting virtual machine. For
example, the following command migrates Container 101 to the VM_101 virtual machine on the
same Parallels server:
# pmigrate c 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 want to migrate a Container from a remote Parallels server, you should additionally
indicate the source server IP address and the credentials of the root user on this server:
# 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.
This command migrates Container 101 residing on the Parallels server with the IP address of
192.168.12.12 to the VM_101 virtual machine on the local server. If you do not specify the
root credentials on the source server, you will be asked to do so during the command execution.










