Search

Method importOvf(String ovfUri, VcHostSystem hostSystem, VcFolder importFolder, String vmName, VcOvfNetworkMapping[] networks, VcDatastore datastore)

Import ovf file from file://, http:// or https:// location

Returns

VcVirtualMachine

Arguments

Name Type Description
ovfUri String URI like file:///storage/myvm.ovf or http://storage.com/ovfs/myvm.ovf. The vmdk files should be in the ovf file.
hostSystem VcHostSystem
importFolder VcFolder Virtual machine folder to create the new virtual machine
vmName String The name of the new virtual machine
networks VcOvfNetworkMapping[] Maps ovf networks to host networks
datastore VcDatastore Datastore of the new virtual machine