VMware {code} Community
Victor_Joe
Contributor
Contributor

How to locate the VMx files in ESXi?

Hi,

I want to find out the vmx files and copy them to remote host? Please tell me how i cna do so?

Regards,

Victor

0 Kudos
5 Replies
njain
Expert
Expert

The path to vmx file can be fetched from "config.files.vmPathName" of the VirtualMachine object. In order to copy a file, you can use the "CopyDatastoreFile_Task" method available in VI API. For more details on this method, you can refer to the VI API reference guide:

http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.FileManager.html

Hope this information is helpful.

0 Kudos
Victor_Joe
Contributor
Contributor

Thanks for your Reply.

Sorry for incomplete question.

I am using the "VMware VI Remote CLI".Through this,Is there any way to accomplish the said objective?

0 Kudos
admin
Immortal
Immortal

Check out the vifs command.

0 Kudos
Victor_Joe
Contributor
Contributor

Please tell,how to locate vmx file of particular VM .

After locating I want to copy it to some remote host and vice versa. How can i do so? I looked into vifs,but to no avail.

Regards,

Victor

0 Kudos
tos2k
Expert
Expert

Hi!

You can up- and download files via https:///folder

Straight forward, you find examples in this forum.

Tos2k

0 Kudos