A.74 migrate Vm

Migrates a running virtual machine.

Syntax

migrate Vm instance { destServer=value | destServerPool=value }

Where instance is:

{ id=id | name=name }

Description

This command migrates a virtual machine to an Oracle VM Server or server pool.

You can migrate a running virtual machine to an Oracle VM Server within the same server pool, or a stopped virtual machine to another server pool. To migrate the virtual machine to the Unassigned Virtual Machines folder (undeploy it), do not supply a destination.

To check whether there are any conditions that may cause the virtual machine migration to fail, use the getIncompatibleReasons command before migrating the virtual machine.

Options

The following table shows the available options for this command.

Option

Description

{ destServer=value | destServerPool=value }

The name or ID of the Oracle VM Server or server pool on which to migrate the virtual machine.

{ id=id | name=name }

The instance of the object using either the id or name option, for example name=MyServer.

Examples

Example A.97 Migrating a virtual machine to an Oracle VM Server

OVM> migrate Vm name=MyVM destServer=MyServer

Example A.98 Migrating a virtual machine to another server pool

OVM> migrate Vm name=MyVM destServerPool=MyServerPool

Example A.99 Migrating a virtual machine to the Unassigned Virtual Machines folder

OVM> migrate Vm name=MyVM

See Also