A.115 importAssembly

Imports and adds an assembly to a storage repository.

Syntax

importAssembly Repository instance url=value [ proxy=value ]

Where instance is:

{ id=value | name=value }

Description

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

Options

The following table shows the available options for this command.

Option

Description

Repository instance

The storage repository in which to import the assembly.

url=value

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

{ id=value | name=value }

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

Examples

Example A.146 Importing an assembly to a storage repository

OVM> importAssembly Repository name=MyRepository url="http:////example.com//myassembly.ova"

See Also