to check if a container can be succesfully restored on a destination system
before performing live migration. Currently, it is able to check CPT version
and CPU flags compatibility.
There are two modes of operation: to show a property and to test a
property. Showing mode is invoked if a property specified with no arguments;
testing mode requires one or many arguments after a property name.
Generally, one runs
on one node to get a property, and on the other node to check for the
In showing mode, returns 0 upon success, or 1 in case of an error.
To check if a CT 123 can be migrated to $DEST, run the following commands
on the source node. Note that error checking is omitted for brevity.
echo Got CPT version: $VERSION
ssh [email protected]$DEST vzcptcheck version $VERSION
echo Version check result: $?
CAPS=$(ssh [email protected]$DEST vzcptcheck caps)
echo Got caps: $CAPS
vzcptcheck caps $VEID $CAPS
echo Caps check result: $?
Copyright (C) 2013, Parallels, Inc. Licensed under GNU GPL v2.