Get OVF Tool: https://my.vmware.com/web/vmware/details?downloadGroup=OVFTOOL350&productId=352
From CLI (windows for me, but should be same on other platforms):
C:\Program Files\VMware\VMware OVF Tool\> ovftool "C:\Users\Sam\Documents\Virtual Machines\VmDemo\VmDemo.vmx" C:\Users\Sam\Desktop\VmDemo.ovf
Opening VMX source: C:\Users\Sam\Documents\Virtual Machines\VmDemo\VmDemo.vmx
Opening OVF target: C:\Users\Sam\Desktop\VmDemo.ovf
Writing OVF package: C:\Users\Sam\Desktop\VmDemo.ovf
Transfer Completed
Completed successfully
C:\Program Files\VMware\VMware OVF Tool> _
Search This Blog
Showing posts with label ovf. Show all posts
Showing posts with label ovf. Show all posts
Friday, November 1, 2013
Wednesday, May 29, 2013
Export virtual machine from ESX server to OVF file
Previously I have posted an article on how to upload an OVA file to an VMware ESX server. I recently had a task doing the opposite. Here is an example using ovftool to download a vm from ESX server and creating portable OVF to deploy on another VMware server.
C:\Program Files\VMware\VMware OVF Tool>ovftool --noImageFiles "vi://root:password@esxHostname/ha-datacenter?ds=[datastore1] JBOSS 5.0.1.GA/JBOSS 5.0.1.GA.vmx" C:\Users\Charles\Desktop\l1-server.ovf
C:\Program Files\VMware\VMware OVF Tool>ovftool --noImageFiles "vi://root:password@esxHostname/ha-datacenter?ds=[datastore1] JBOSS 5.0.1.GA/JBOSS 5.0.1.GA.vmx" C:\Users\Charles\Desktop\l1-server.ovf
I have underlined above what you will need to change for your environment. You can determine where your .vmx file is by looking at the disk settings for your VM in vSphere:
Subscribe to:
Posts (Atom)
