A.140 migrateWithLocalStorage Vm

Migrates a virtual machine to another Oracle VM Server within the same server pool, and moves its local storage to another storage repository.

Syntax

migrateWithLocalStorage Vm instance destServer=value repository=value

Where instance is:

{ id=value | name=value }

Description

This command migrates a virtual machine to another Oracle VM Server within the same server pool, and moves its local storage to another storage repository.

Options

The following table shows the available options for this command.

Option

Description

destServer=value

The name or ID of the Oracle VM Server on which to migrate the virtual machine. The Oracle VM Server must be in the same server pool as the source Oracle VM Server.

repository=value

The name or ID of the storage repository on which to migrate the virtual machine local storage. Only repositories hosted on an OCFS2 file system may be used if you are moving the virtual machine storage of a running virtual machine.

This command moves the virtual machine configuration and virtual disks to the target repository. However, the virtual machine configuration is moved only if it resides in a local repository, not in a shared repository.

{ id=value | name=value }

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

Examples

Example A.182 Migrating a virtual machine to an Oracle VM Server, including local storage

OVM> migrateWithLocalStorage Vm name=MyVM destServer=MyServer repository=MyRepository

See Also