Solved

Help with ovftool syntax

Posted on 2013-06-30
6
1,611 Views
Last Modified: 2013-08-12
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
Comment
Question by:atak2983
  • 3
  • 3
6 Comments
 
LVL 118
ID: 39288347
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
 
LVL 1

Author Comment

by:atak2983
ID: 39288379
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
 
LVL 118
ID: 39288586
Converter is not scriptable.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 1

Author Comment

by:atak2983
ID: 39289193
Thanks.

I still stand with my question about ovftools syntax... (although I understand that I am probably better off with converter).
0
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 39289576
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
 
LVL 1

Author Closing Comment

by:atak2983
ID: 39401677
Thanks - finally managed to figure the right syntax
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now