A.17 clone Vm

Clones a virtual machine or template to a new virtual machine or template.

Syntax

clone Vm instance destType= { Vm | VmTemplate } destName=value serverPool=value

Where instance is:

{ id=id | name=name }

Description

This command clones a virtual machine or template to a new virtual machine or template.

Options

The following table shows the available options for this command.

Option

Description

destType= { Vm | VmTemplate }

The object to create from the virtual machine, either a virtual machine or a template.

destName=value

The name of the cloned virtual machine or template.

serverPool=value

The server pool on which to deploy the cloned virtual machine or template.

{ id=id | name=name }

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

Examples

Example A.21 Cloning a virtual machine to a virtual machine

OVM> clone Vm name=MyVM destType=Vm destName=MyNewVM serverPool=MyServerPool

Example A.22 Cloning a virtual machine to a template

OVM> clone Vm name=MyVM destType=VmTemplate destName=MyVMTemplate serverPool=MyServerPool

Example A.23 Cloning a template to a virtual machine

OVM> clone Vm name=MyVM destType=Vm destName=MyNewVM serverPool=MyServerPool

Example A.24 Cloning a template to a template

OVM> clone Vm name=MyVM destType=VmTemplate destName=MyVMTemplate serverPool=MyServerPool

See Also