A.116 importTemplate

Imports and adds a virtual machine template to a storage repository.


importTemplate Repository instance url=value [ proxy=value ]

Where instance is:

{ id=value | name=value }


This command imports and adds a virtual machine template to a storage repository.

Virtual machines and virtual machine templates are treated the same in the CLI, so many of the commands you use to manage templates are handled by the same commands as managing virtual machines, for example, to list templates, use the list Vm command, and to delete a template, use the delete Vm command.


The following table shows the available options for this command.



Repository instance

The storage repository in which to import the virtual machine template.


The URL of the virtual machine template. Note that if you quote this argument, the forward slashes in the URL should be escaped. This is illustrated in the example.


The IP address or hostname of a proxy server to use when importing the template.

{ id=value | name=value }

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


Example A.147 Importing a virtual machine template to a storage repository

OVM> importTemplate Repository name=MyRepository url="http:////example.com//mytemplate.tgz"

See Also