User`s guide

Operations on Virtual Machines and Containers 55
To migrate a Container by using the zero downtime migration technology, you should pass the -
-online option to the pmigrate utility. By default, the iterative online migration type is
used to move a Container from one Parallels server to another. For example, you can migrate
Container 101 from the current server to the destination server named my_node.com by
executing the following command:
Note: If the CPU capabilities on the source server exceed those on the destination server (e.g.
you migrate from a source server running the Pentium 4 processor to a destination server
running the Pentium 3 processor), the migration may fail and you will be presented with the
corresponding warning message. However, if you are sure that the CPU power on the
destination server is sufficient to start and run the Container(s) being migrated, you can use the
-f option to force the migration process.
# pmigrate c 101 c --online --require-realtime my_node.com
Enter password:
Connection to destination server (192.168.1.57) \
is successfully established
Moving/copying Container#101 -> Container#101, [], [] ...
Syncing private area '/vz/private/101'
- 100% |***************************************
done
Suspending Container#101 ...
done
Dumping Container#101 ...
done
...
Migration completed
The --require--realtime option tells pmigrate to move the Container by using the
iterative online migration type only. So, if this migration type cannot be carried out for some
reason or other, the command will fail and exit. If this option is omitted and in the case of failure
while performing the iterative migration, pmigrate will try to move your Container by means
of the simple online migration type or the lazy online migration type (if the --lazy option is
given). You can specify more than one Container ID simultaneously; in this case, all specified
Containers will be moved to a new Parallels server one by one.
If you wish to use another migration type for moving your Containers to another server, you
should additionally pass certain options to pmigrate:
Specify the --noiter option to migrate a Container by using the simple online migration
type;
Specify the --noiter and --lazy options to migrate a Container by using the lazy
online migration type;
Specify the --lazy option to migrate a Container by using the iterative + lazy online
migrate type.