A.122 migrate Vm

Migrates a virtual machine.

Syntax

migrate Vm instance [ destServer=value | destServerPool=value ]

Where instance is:

{ id=value | name=value }

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. To migrate the virtual machine to the Unassigned Virtual Machines folder (undeploy it), do not supply a destination.

It is not possible to migrate a stopped virtual machine using this command. To do this, you should use the remove Vm and add Vm commands instead.

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=value | name=value }

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

Examples

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

OVM> migrate Vm name=MyVM destServer=MyServer

Example A.158 Migrating a virtual machine to a server pool

OVM> migrate Vm name=MyVM destServerPool=MyServerPool

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

OVM> migrate Vm name=MyVM

See Also