Abiquo 5.0

Skip to end of metadata
Go to start of metadata

When you connect with the vSphere 6.7 Web Client, a VM has an OVF export option but there is no OVA option.

If you would like to export a VM as an OVA file, you can use OVF tool on the command line.

To export many VMs, you could use the commands in a script.

Download OVF tool

When you go to the VMware website downloads menu and select OVF tool, the Windows version displays for you to download.

To use another version (for example, Mac or Linux), then go to the main Downloads page and search for "ovf tool".

Install OVF tool

The Windows and Mac versions are standard installer packages.

The Linux version is a bundle package, and you can easily install it from the command line by executing the bundle with a shell command. Replace ovftool.bundle with the name of the bundle file.

sh ovftool.bundle

 

Discover the VM on vCenter

To work with OVF tool, you will need your vCenter URL and credentials, and you will also need the path to your VM.

If you don't know the VM path, you can discover it. For example, enter the vCenter URL and credentials.

ovftool vi://administrator@vsphere.local:password@nsxqa-vc.bcn.abiquo.com

This is not a VM, so the tool will return an error message for the "wrong kind of object", for example, a folder or a datacenter.

It will suggest possible completions, which are the objects under the path you have entered. Keep adding completions until you get to the "vm" folder and select a VM.

For example, a VM could have this path.

vi://administrator@vsphere.local:password@nsxqa-vc.bcn.abiquo.com/DcNSX-qa/vm/windowstest


Display the VM OVF details

With OVF tool, the default vi command displays a friendly version the OVF details.

ovftool vi://administrator@vsphere.local:password@nsxqa-vc.bcn.abiquo.com/DcNSX-qa/vm/windowstest


In this example, the user entered the administrator and password interactively

user@user:~/Downloads $ ovftool vi://nsxqa-vc.bcn.abiquo.com/DcNSX-qa/vm/windowstest
Enter login information for source vi://nsxqa-vc.bcn.abiquo.com/
Username: administrator@vsphere.local
Password: **********
OVF version:   1.0
VirtualApp:    false
Name:          windowstest

Download Size:  Unknown

Deployment Sizes:
  Flat disks:   20.00 MB
  Sparse disks: Unknown

Networks:
  Name:        default_private_network_57
  Description: The default_private_network_57 network

Virtual Machines:
  Name:               windowstest
  Operating System:   windows9server64guest
  Virtual Hardware:
    Families:         vmx-14 
    Number of CPUs:   1
    Cores per socket: 1
    Memory:           16.00 MB

    Disks:
      Index:          0
      Instance ID:    11
      Capacity:       20.00 MB
      Disk Types:     SCSI-lsilogicsas 

    NICs:
      Adapter Type:   E1000e
      Connection:     default_private_network_57

Download the OVA file

To download the OVA file, enter "vi://" with the VM path and with a local file with an ".ova" suffix at the end.

ovftool vi://administrator@vsphere.local:password@nsxqa-vc.bcn.abiquo.com/DcNSX-qa/vm/windowstest ./windowstest.ova

You should now be able to upload the template into the Apps library for users to deploy. 

Troubleshooting

On Linux, remember to escape any special characters in your password that may be interpreted by the shell.

After you upload the VM template, remember to select the option to generate conversions to other hypervisor formats as required.