OVF Tool Usage
It is possible to clone a guest on an ESXi host using rsync or other native Linux commands. However, any thin disks attached to the guest will be expanded, which may cause the target to consume considerable disk space.
To ship an entire VM without expanding thin disks, it is necessary to created an OVF or OVA archive file. VMWare make the ovftool command line utility available for the purpose. It should be noted that OVF Tool is run from a management station and not the ESXi shell on the host. The management station could (of course) be a VM guest on the ESXi host - Although it is time consuming to create the target OVA on the same disk as the source VM.
Locating OVF Tool
OVF Tool distribution packages for Linux, Windows, OSX are available from the VMWare Web site (requires account)
OVF Tool is included with VM Workstation products. For VMWare Fusion OVF Tool can be found in the VM Ware Fusion.app bundle file.
/Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool
OVF Tool Syntax
./ovftool --noSSLVerify vi://<user>:<password>@<host_address>/<vm_inventory_name> <local_path_to_target>.ova || .ovf
<user> is an ESXi user with sufficient privilege to carry out the operation
<host address> may be an ip or dns address of the source ESXi server.
<vm inventory name> is the name of the source VM in the inventory. The name may be found from the ESXi shell (ssh to host), vimcmd vmsvc/getallvms
<local path to target> is the path where the target OVA file or OVF folder contents will be writtenThe type of archive is selected by specifying OVA (single file) or OVF (folder of files) and the host is clever enough to send the selected format.Note when selecting OVF, the tool does not create the target folder.
Command line options
OVFTool all command line options
https://vdc-repo.vmware.com/vmwb-repository/dcr-public/eae00242-71e7-4c2b-ae3a-30733acd237f/444d1981-8d87-4efe-9c68-4b62b7082b01/doc/GUID-FFBD958D-CDAE-4D61-9F10-81D1CFD816F3.html
Example Session
Baked in examples available with ovftool --help examples
./ovftool --noSSLVerify --diskMode=thin vi://admin@esx1.emscom.lan/vm-vms /Volumes/Data/VMFiles/backup/vms.ovfEnter login information for source vi://esx1.emscom.lan/Username: msssltdPassword: *********
« Go back
Powered by Help Desk Software HESK, in partnership with SysAid Technologies