Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2232
  • Last Modified:

Help with ovftool syntax

Folks,

I am trying something pretty basic, i.e retrieving a virtual machine from ESXI5.1 host into an OVA file.

I have installed the OVF tool (wintel box)

My ESXI box lives on 192.168.100.100
MY VM name is DemoVM

Here is the command I am attempting:

ovftool.exe "vi://username:password@192.168.100.100:443/DemoVM" "C:\VM-Backup\Demo-W7-VM.ova"

but the tool complains about "the locator not referring to an object". I guess I have to insert the "datacenter" name, whatever it is...

Can you help me here finding out the right syntax ? Thanks !
0
Alexandre Takacs
Asked:
Alexandre Takacs
  • 3
  • 3
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Why not use the File > Export > Export OVF > Export OVA fucntion of the vSphere Client? (it's much easier and works).

Just make sure

1. the VM is powered off.
2. the VM has no snapshot.

Export OVF
OVF export can be awkward and sometimes not successful. If you are wanting to transfer VMs, it's better and safer to use VMware vCenter Converter Standalone 5.1, to create a V2V

see my EE Articles

HOW TO:  Synchronize changes when completing a P2V or V2V with VMware vCenter Converter Standalone 5.1

HOW TO:  P2V, V2V for FREE - VMware vCenter Converter Standalone 5.1
0
 
Alexandre TakacsCTOAuthor Commented:
Thanks.

I was aware and used the vCenter Export option but I need to script this. Is Converter scriptable ?

I will review your articles.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Converter is not scriptable.
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
Alexandre TakacsCTOAuthor Commented:
Thanks.

I still stand with my question about ovftools syntax... (although I understand that I am probably better off with converter).
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
try the following it works for me on ESXi 5.1

ovftool vi://root:password@hostname/<vmname> <location and path to store the OVF>

Open in new window


e.g.
ovftool vi://root:password@esx003/DCSTS01 c:\temp\DCSTS01.ovf

Open in new window


DCSTS01 is the name of the VM in the Inventory.
0
 
Alexandre TakacsCTOAuthor Commented:
Thanks - finally managed to figure the right syntax
0

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as high-speed processing of the cloud.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now