Working with virtual machines using VMware OVF Tool
VMware Cloud Director® supports importing virtual machines only in the following formats .ovf
/.ova
. VMware OVF Tool allows you to convert virtual machines to templates .ovf
(Open Virtualization Format) and vice versa. For more information on working with the utility, see OVF Tool User's Guide VMware documentation.
You can download the utility at VMware website.
Import a virtual machine into Cloud Director
-
Open the catalog with the OVF Tool.
-
Import the virtual machine into Cloud Director:
ovftool.exe "<path_ovf>"
"vcloud://<login>:<password>@<vcd>?org=<organization>&vdc=<s-xxxx>&catalog=<datastore>&vapp=<my_vapp>"Specify:
-
<path_ovf>
— template path.ovf
; -
<login>
— login to access Cloud Director; -
<password>
— password to access Cloud Director; -
<vcd>
— address of the virtual data center:- St. Petersburg —
vcd.selectel.ru
- Moscow —
vcd-msk.selectel.ru
- St. Petersburg —
-
<organization>
— organization name, can be viewed in Cloud Director under Administration → tab General; -
<s-xxxx>
— organizations name, can be viewed in the Cloud Director address bar or in the control panel under VMware-based cloud on the list of organizations; -
<datastore>
— virtual catalog; -
<my_vapp>
— The name that the imported vApp will have.
-
Convert virtual machine to OVF template
-
Open the catalog with the OVF Tool.
d <path_catalog>
Specify
<path_catalog>
— directory path. -
Convert the virtual machine to an OVF template:
Windows
Linux
ovftool.exe "<path_vm>" "<path_ovf>"
Specify:
<path_vm>
— path to the virtual machine configuration file;<path_ovf>
— directory path for the template.ovf
.
~/MyVM$ ovftool
Convert OVF template to virtual machine
-
Open the catalog with the OVF Tool.
-
Convert the virtual machine to an OVF template:
Windows
Linux
ovftool.exe "<path_ovf>" "<path_vm>"
Specify:
<path_ovf>
— template path.ovf
;<path_vm>
— directory path for the virtual machine.
~/MyVM$ ovftool <./path_ova> <./path_vm>
Specify:
<./path_ova>
— template path.ova
;<./path_vm>
— directory path for the virtual machine.