Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Integrity Virtual Machines Version 4.0 Installation, Configuration, and Administration > Chapter 10 Migrating Virtual Machines

Migrating Guests from VM Host to VM Host

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

To perform a guest migration:

  1. Set up SSH keys on both the source and destination hosts, as described in “Security Considerations”.

  2. Stop the guest on the source host, using the hpvmstop or hpvmconsole command.

  3. On the source host, enter the hpvmmigrate command, as described in “Using the hpvmmigrate Command”.

  4. 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 name

  • Destination host IP address

Table 10-1 lists the options to the hpvmmigrate command.

Table 10-1 Options to the hpvmmigrate Command

OptionDescription
-P source-vm-nameSpecifies the name of the guest to migrate.
-p source-vm-numberSpecifies the virtual machine number of the guest to migrate. To display the virtual machine number, enter the hpvmstatus command.
-h dest-hostname | dest-host-IPSpecifies the destination VM Host system name or IP address.
—vDisplays the version of the hpvmmigrate command .
—HDisplays information about how to use the hpvmmigrate command.
-Nnew-vm-nameSpecifies 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 | -EcyclesSpecifies the virtual machine's CPU entitlement in CPU cycles. To specify the percentage of CPU power, enter the following option:
-e percent
To specify the clock cycles, enter one of the following options:
-E cycles M (for megahertz) -E cycles G (for gigahertz)
-m rsrcModifies 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 rsrcCauses hpvmmigrate to boot the target guest automatically after the migration process is complete.
-dCauses hpvmmigrate to automatically shut down the target guest before the migration process, after the resource test in the target host.
-FForces 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)

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.