A.136 importVirtualMachine

Imports and adds a virtual machine to a storage repository.

Syntax

importVirtualMachine Repository instance url=value [ proxy=value ]

Where instance is:

{ id=value | name=value }

Description

This command imports and adds a virtual machine to a storage repository. The virtual machine is placed in the Unassigned Virtual Machines folder in Oracle VM Manager. To deploy the virtual machine to an Oracle VM Server, use the add Vm command.

Options

The following table shows the available options for this command.

Option

Description

Repository instance

The storage repository in which to import the virtual machine.

url=value

The URL of the virtual machine. To import a multi-file virtual machine, enter each URL in a comma separated list, for example:

url=http://example.com/Sys.img,http://example.com/vm.cfg

Note that if you quote this argument, the forward slashes in the URL should be escaped. This is illustrated in the example.

proxy=value

The IP address or hostname of a proxy server to use when importing the virtual machine.

{ id=value | name=value }

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

Examples

Example A.172 Importing a virtual machine to a storage repository

OVM> importVirtualMachine Repository name=MyRepository url="http:////example.com//mytemplate.tgz"

See Also