A.133 importVirtualAppliance

Imports and adds a virtual appliance to a storage repository.

Syntax

importVirtualAppliance Repository instance url=value [ proxy=value ]

Where instance is:

{ id=value | name=value }

Description

This command imports and adds a virtual appliance to a storage repository. The imported virtual appliance is unpacked and each virtual machine is contained within an VirtualApplianceVm object. The VirtualApplianceVm objects are created in the same storage repository as the original virtual appliance. Use the list VirtualApplianceVm command to find the name and ID of the new VirtualApplianceVm objects, then use the createVmFromVirtualAppliance command to create virtual machines from each VirtualApplianceVm object.

Options

The following table shows the available options for this command.

Option

Description

Repository instance

The storage repository in which to import the virtual appliance.

url=value

The URL of the virtual appliance. 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 appliance.

{ id=value | name=value }

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

Examples

Example A.169 Importing a virtual appliance to a storage repository

OVM> importVirtualAppliance Repository name=MyRepository url="http:////example.com//myvirtualappliance.ova"

See Also