Solved

Help with ovftool syntax

Posted on 2013-06-30
6
1,686 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 119
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 119
ID: 39288586
Converter is not scriptable.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
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 119

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:atak2983
ID: 39401677
Thanks - finally managed to figure the right syntax
0

Featured Post

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.

Question has a verified solution.

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

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
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…

809 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