VMware Cloud Community
mattwallace
Contributor
Contributor

A quick note on using a domain login for ovftool

I didn't find this documented anywhere else, so I wanted to note that, if you want to use windows domain accounts in the authentication process for ovftool without specifying it interactively, you must specify the \ character using %5c, as in:

ovftool --acceptAllEulas --net:nat=mgmt-net --datastore=nfs-1 --name=Ubuntu-test Ubuntu.vmwarevm/Ubuntu.vmx vi://WINDOMAIN%5cAdministrator:password@10.10.10.100/dcName/host/cluster-name

Tags (1)
Reply
0 Kudos
2 Replies
dpetche
Contributor
Contributor

This doesn't seem to work with ovftool version 4.2.0. on 64-bit Windows 10.

When I try any credential, I see an error saying

Error: Could not lookup host: <my username>

Reply
0 Kudos
mgjuhler
Contributor
Contributor

protocol://username:password@host:port/

Reply
0 Kudos