Quantcast
Channel: VMware Communities : Popular Discussions - Open Virtualization Format Tool
Viewing all articles
Browse latest Browse all 34499

How to use OVF Tool inside Linux ESXi shell ?

$
0
0

Hello All,

 

Can anybody please help me with the VMware OVF Tool command line utility ?

It is supposed to allow you to import and export Virtual Machines containers (VMX files).

 

How do we specify the path to the .VMX we want to export from an ESXi server ?

 

The command line option <source locator> asks for a "vSphere locator identifying a virtual machine or vApp on vCenter, ESXi, or VMware Server" but I just can't make the application recognize any thing I try.

 

For example, on the following command line option:

 

> ovftool vi://username:pass@my_host/my_datacenter/vm/my_vm_folder/my_vm_name

 

What does "my_datacenter" is supposed to mean ? Where do I find the name of my vSphere ESXi server ?

 

I've installed the OVT Tool at the vSphere server itself. The binary is working well at Linux ESXi shell. I just don't understand how to point it to the specific file I want to export at the datastore.

 

[root@localhost:~] uname -a

VMkernel localhost 6.0.0 #1 SMP Release build-3620759 Mar  3 2016 18:41:52 x86_64 x86_64 x86_64 ESXi

 

[root@localhost:~] ls -al vmfs/volumes/datastore1/cancao-cead/

total 174242840

drwxr-xr-x    1 root     root          2520 Nov 21 11:14 .

drwxr-xr-t    1 root     root          2240 Oct 26 19:56 ..

-rw-------    1 root     root     17179869184 Nov 21 11:14 cancao-cead-ab4b36ea.vswp

-rw-------    1 root     root     161061273600 Nov 22 18:44 cancao-cead-flat.vmdk

-rw-------    1 root     root          8684 Nov 22 18:37 cancao-cead.nvram

-rw-------    1 root     root           475 Nov 21 11:14 cancao-cead.vmdk

-rw-r--r--    1 root     root             0 May 28  2016 cancao-cead.vmsd

-rwxr-xr-x    1 root     root          2740 Nov 21 11:14 cancao-cead.vmx

 

The file I'm trying to reach from the OVF Tool command line is last one:cancao-cead.vmx

 

How can I make OVF Tool command to find that file ?


Viewing all articles
Browse latest Browse all 34499

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>