A.24 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 [ cloneCustomizer=value ] [ targetRepository=value ]

Where instance is:

{ id=value | name=value }

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 name or ID of the server pool on which to deploy the cloned virtual machine.

Note

Although you must enter this when cloning a virtual machine to a template, the template is not deployed to a server pool, it is located in the storage repository.

cloneCustomizer=value

The name or ID of the cloneCustomizer that should be used when deploying the cloned virtual machine or template.

targetRepository=value

The name or ID of the repository that should be used when deploying the cloned virtual machine or template.

{ id=value | name=value }

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

Examples

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

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

Example A.32 Cloning a virtual machine to a template

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

Example A.33 Cloning a template to a virtual machine

OVM> clone Vm name=MyVMTemplate.tgz destType=Vm destName=MyNewVM serverPool=MyServerPool

Example A.34 Cloning a template to a template

OVM> clone Vm name=MyVMTemplate.tgz destType=VmTemplate destName=MyVMTemplate \
  serverPool=MyServerPool

Example A.35 Cloning a virtual machine to a virtual machine using a clone customizer

OVM> clone Vm name=MyVM destType=Vm destName=MyNewVM serverPool=MyServerPool \
    cloneCustomizer=MyCloneCustomizer targetRepository=MyRepository

See Also