Solved

Help with ovftool syntax

Posted on 2013-06-30
6
1,815 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:Alexandre Takacs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 121
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:Alexandre Takacs
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 121
ID: 39288586
Converter is not scriptable.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:Alexandre Takacs
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 121

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) 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:Alexandre Takacs
ID: 39401677
Thanks - finally managed to figure the right syntax
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
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…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

688 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