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
is:
instance
{
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 |
---|---|
| The object to create from the virtual machine, either a virtual machine or a template. |
| The name of the cloned virtual machine or template. |
| 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. |
| The name or ID of the cloneCustomizer that should be used when deploying the cloned virtual machine or template. |
| The name or ID of the repository that should be used when deploying the cloned virtual machine or template. |
{
|
The instance of the object using either the
|
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