A.32 createVmFromVirtualAppliance

Creates a virtual machine (template) from a virtual machine in an virtual appliance.

Syntax

createVmFromVirtualAppliance VirtualApplianceVm instance

Where instance is:

{ id=value | name=value }

Description

This command creates a virtual machine from a VirtualApplianceVm object. A VirtualApplianceVm object is created for each virtual machine in a virtual appliance file when a virtual appliance file is imported using the importVirtualAppliance command. The virtual machine files are created in the same storage repository as the original VirtualApplianceVm object. To see a list of VirtualApplianceVm objects, use the list VirtualApplianceVm command.

The virtual machine is created and listed in the VM Templates folder in the Repositories tab in Oracle VM Manager.

Options

The following table shows the available options for this command.

Option

Description

{ id=value | name=value }

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

Note

Any create command only creates a single instance of an object, and therefore only accepts a single object instance as an attribute. Providing more than one object of the same attribute type as a parameter always results in the last attribute value taking precedence.

Examples

Example A.43 Creating a virtual machine (template) from a virtual appliance

OVM> createVmFromVirtualAppliance VirtualApplianceVm name=MyVm

See Also