To perform a guest migration:
Set up SSH keys on both
the source and destination hosts, as described in “Security Considerations”.
Stop the guest on the
source host, using the hpvmstop or hpvmconsole command.
On the source host, enter
the hpvmmigrate command, as described in “Using the hpvmmigrate Command”.
Start the guest on the
destination host using the hpvmstart or hpvmconsole command.
For information about starting and stopping guests,
see Chapter 9.
The hpvmmigrate command verifies
that the destination host has sufficient resources (such as memory,
network switches and storage devices) for the guest to boot. If the
resources are insufficient or do not exist, or if other errors occur,
the guest is not migrated to the destination host.
After successfully migrating the guest, the hpvmmigrate command automatically disables the guest on
the source host.
Using the hpvmmigrate Command |
|
When you enter the hpvmmigrate command, you must specify the name of the guest to be migrated and
the destination VM Host system.
Specify the guest using one of the following options:
-P vm-name to specify the guest
name
-p vm_number to specify the virtual
machine number
Specify the destination host by including the –h option and specifying one of
the following:
Destination host IP address
Table 10-1 lists the options to the hpvmmigrate command.
Table 10-1 Options to the hpvmmigrate Command
Option | Description |
---|
-P source-vm-name | Specifies the name of the guest to migrate. |
-p source-vm-number | Specifies the virtual machine number of the
guest to migrate. To display the virtual machine number, enter the hpvmstatus command. |
-h dest-hostname | dest-host-IP | Specifies
the destination VM Host system name or IP address. |
—v | Displays the version of the hpvmmigrate command
. |
—H | Displays information about how to use the hpvmmigrate command. |
-Nnew-vm-name | Specifies a new name for the virtual machine. The new-vm-name can be up to 256 alphanumeric characters.
The same virtual machine name cannot already exist on the same VM
Host system. The name change takes effect immediately. |
-e percent | -Ecycles | Specifies the virtual machine's CPU entitlement in CPU
cycles. To specify the percentage of CPU power, enter the following
option:To specify the clock cycles, enter
one of the following options:-E cycles M (for megahertz)
-E cycles G (for gigahertz) |
|
-m rsrc | Modifies a virtual device that is defined on the virtual machine.
Specify the virtual and physical device information for rsrc . For information about forming a virtual storage
device specification, see Chapter 7. For information about forming a
virtual network device specification, see Chapter 8. |
-C | Physically copies
the storage device specified with the -m option to
the target host during the migration process |
-b rsrc | Causes hpvmmigrate to
boot the target guest automatically after the migration process is
complete. |
-d | Causes hpvmmigrate to automatically shut down the target guest before the migration
process, after the resource test in the target host. |
-F | Forces the migration.
Use the -F option rarely and
with caution. |
You can force the guest to be migrated regardless
of whether sufficient resources exist on the destination host by using
the –F option. When you
use this option, any problems found during resource validation are
ignored, and the guest is migrated to the destination host.
The guest on the source host is deleted after
it is successfully migrated to the destination host.
Example of the hpvmmigrate Command |
|
The following example shows how to migrate the
guest named VM1, residing on the host named HostA, to the destination
host (HostB). On the system named HostA, enter the following command:
# hpvmmigrate –P VM1 –h HostB |
This example specifies:
The name of the guest
(-P VM1)
The name of the destination
host (-h HostB)