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

Table 10-1 Options to the hpvmmigrate Command (continued)
DescriptionOption
Specifies the unique number of the virtual machine to be migrated. To
display the source-vm-number, enter the hpvmstatus command.
Most forms of the hpvmmigrate command require either the -p option
or the -P option.
-p source-vm-number
Specifies the unique name of the virtual machine to be migrated. Most
forms of the hpvmmigrate command require either the -p option or
the -P option.
-P source-vm-name
Displays fewer informative messages. Some potential error conditions
are still reported.
-q
For online migrations, set non-interactive mode. Assume that the output
device is not a terminal.
-Q
For offline migration, specifies the amount of memory available to this
virtual machine. The size is expressed as an integer, optionally followed
by one of these letters:
M (megabytes)
G (gigabytes)
If the letter is omitted, the default unit is megabytes.
-r amount
Indicates that the migration should not occur, but the hpvmmigrate
command should check whether or not the migration is possible. Because
virtual machines and their hosts are dynamic, a successful -s trial does
not always guarantee a subsequent successful migration. The
hpvmmigrate command with the -o-s and -h options (but without
a -p or -P option) checks host connectivity, licensing, and CPU
compatibility for online migration.
-s
For offline migration, translates the storage device names specified with
the -m option by comparing WWIDs. To compare WWIDs, the storage
resources must be present and available on both the source and the
target VM Hosts. If you specify the -t option before the first -m option,
the -t option applies to all -m options. The -t option overrides the
-T option for storage resources specified with the -m option. Device
translation is automatic for online migration.
-t
For offline migration, specifies not to translate devices.
-T
Displays the version of the hpvmmigrate command .-v
For online migrations, bypasses all vswitch connectivity checks. Use
the -w option only if you are certain that the source and target vswitches
are connected to the same subnet; otherwise, your online guest will lose
network connectivity after migrating.
-w
NOTE: You can online migrate VMs that are using logical volume backing stores, as long as
you follow the configuration steps listed in Section 11.5 (page 200).
10.2.2 Examples of the hpvmmigrate Command
The following example displays the version number of the hpvmmigrate command:
# hpvmmigrate -v
hpvmmigrate: Version B.04.20
Offline Migration Example
The following example shows how to migrate the guest named VM1, residing on the host named
HostA, to the target host (HostB). On the system named HostA, enter the following command:
# hpvmmigrate P VM1 h HostB
172 Migrating Virtual Machines