A.70 importVirtualMachine

Imports and adds a virtual machine to a storage repository.

Syntax

importVirtualMachine Repository=instance server= { id | name } url=value

Where instance is:

{ id=id | name=name }

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.

server= { id | name }

The Oracle VM Server to use to perform the virtual machine import job. This can be either the name or the ID.

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://myexample.com/System-sda.img,http://myexample.com/vm.cfg

{ id=id | name=name }

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

Examples

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

OVM> importVirtualMachine Repository name=MyRepository server=MyServer \
  url="http://example.com/OVM_OL5U6_X86_64_PVM_10GB.tgz"

See Also