Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Help with ovftool syntax

Posted on 2013-06-30
6
Medium Priority
?
2,090 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 124
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 124
ID: 39288586
Converter is not scriptable.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 1500 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

2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

Question has a verified solution.

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

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.
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 install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…
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…

597 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