VmSpec

Defines the attributes for creating a virtual machine. An instance of this class is passed to resource.createInstance(), resource.createTemplate(), resource.clone().

Example

Example of using VmSpec for creating a clone on a named host from a template resource:

      template = getMatrix().getGridObject(TYPE_RESOURCE,"myTemplate")
      spec = VmSpec()
      spec.setNewName("newvm")
      spec.setHost('vmhost-qa')
      template.clone(spec)

If the host and repository is not set, the default is to use the source resource object's repository as the destination repository.

See Also