HP Integrity Virtual Machines 4.2: Installation, Configuration, and Administration

This example specifies:
The name of the guest (-P VM1)
The name of the target host (-h HostB)
Online Migration Example
The Online VM Migration feature is initiated with the -o option to the hpvmmigrate command.
The following example migrates a guest to another VM Host. The guest name is vm3. The target
VM Host is called host2, and the target VM Host's private network is called host2hpvm-migr
(that is, host2hpvm-migr is an alias for the private network defined in /etc/hosts).
NOTE: The hpvmmigrate command does not check that you are using a private network to
migrate your guest. Using a private network is important for security and to maintain the
performance of your site's public network.
To migrate guest vm3 to VM Host host2, issue the following command:
# hpvmmigrate -o -P vm3 -h host2-hpvm-migr
The hpvmmigrate command displays status as various phases of migration completion. Output
messages that are indented from the left margin are from the remote, target VM Host.
To prevent data corruption on your guest's SAN storage, the Integrity VM software helps to
prevent you from accidentally running the same guest on more than one VM Host simultaneously.
If the hpvmmigrate -D option is not specified, the guest is marked Not Runnable (NR) on
the source VM Host after online migration has finished. This prevents the virtual machine from
booting on the original source VM Host while it is running on the target VM Host. If the
hpvmmigrate -D option is used, unpresent the guest's SAN storage from the source VM Host
as soon as migration completes, thus avoiding accidental usage of the storage on that VM Host.
10.2.3 Using the hpvmstatus Command to See Migration Details
Use the hpvmstatus command to see the current state of all virtual machines on this VM Host.
Several states are related to Online VM Migration:
On (OS) — The guest is on and running the guest operating system. It is considered
Runnable.
Off (NR) — The virtual machine is not booted and is Not Runnable.
On (MGS) — The guest is on and running a guest operating system. It is the source of an
online migration to another VM Host.
On (MGT) — The virtual machine is on, but not yet running a guest operating system. It
is the target of an online migration from another VM Host.
Use the hpvmstatus -P and -V options to get more detailed migration status about a particular
virtual machine. If the guest is actively migrating, the hpvmstatus command shows the phase
information about Online VM Migration phases.
10.2.4 Options to hpvmmodify Command for Online Migration
Use the hpvmmodify -x option to change the online migration phase timeout values. See
Section 10.2.4 (page 173) for a list of time-out phases.
Use the hpvmmodify -x online_migration=disabled option to prevent a particular
virtual machine from migrating online. This is especially important if the guest is running software
that is sensitive to external network monitoring with short timing intervals, such as Serviceguard.
10.2 Command Line Interface for Online and Offline Migration 173