VMware Cloud Community
secgr
Contributor
Contributor

ovftool 2.1.0 `Error: Curl error: Coudn't resolve host name`

Greetings friends,

I have installed ovftool on a Linux machine with SLES 11 SP1 x86_64

I am currently experimenting on how to use ovftool, as i'm a total newbie considering it's use.

I currently have a vCenter Server 4.1, with IP 10.20.30.40. There i have the following structure:

10.20.30.40

     MyDataCenter

          Cluster1

          Cluster2

               MyVM

The datastore where the vmx is located is named NAS1

I want to convert this virtual machine to .ovf. But for starters, i would like to probe it. I'm using ovftool 2.1.0 and the user's guide says that the VMX type is supported. I thought to use vSphere Locator with Datastore (ds) query type. So, i execute the following:

ovftool vi://10.20.30.40/MyDataCenter?ds=[NAS1] MyVM/MyVM.vmx

After i'm asked for credentials, i get the following:

Please enter login information for source vi://10.20.30.40/
Username: xxxxxxx
Password: *************
Error: Curl error: Couldn't resolve host name
Completed with errors

Have you seen that before? Am i doing something wrong with the syntax? Or in general, am i using ovftool the wrong way?

Thank you for your help!

Peter

Reply
0 Kudos
4 Replies
admin
Immortal
Immortal

sorry for the late response.

We have some problems (bugs...) with using libcurl on windows. I hope we have fixed it for ovftool 3.0 (or what the next release will be called)

Have you tried to use fully qualified domain name? e.g replace 10.20.40.40 with my.domain.com?

What version of windows are you running on?

best,

eske

Reply
0 Kudos
secgr
Contributor
Contributor

Greetings friend,

No problem, i really thank you for your attention.

Well, i tried with fqdn, yes, but it returns the curl error again.

I have installed ovftool on Novell SLES 11 SP1 x86_64, with kernel 2.6.32.12-0.7-default. By refering to Windows, you mean the Windows Server version that my vCenter runs on?

Reply
0 Kudos
slaclair
VMware Employee
VMware Employee

Eske wrote:

sorry for the late response.

We have some problems (bugs...) with using libcurl on windows. I hope we have fixed it for ovftool 3.0 (or what the next release will be called)

Have you tried to use fully qualified domain name? e.g replace 10.20.40.40 with my.domain.com?

What version of windows are you running on?

best,

eske

I am getting the same on 2008 64-bit, doesn't matter if I connect via hostname, fqdn or IP... very frustrating as it's putting a complete stop to a huge script I'm nearing compeltion on.

VCAP5-DCD/DCA/CIA, VCA4-DT
Reply
0 Kudos
slaclair
VMware Employee
VMware Employee

To follow up on my last post, I was using a rather complex 15  character password that contained @, $, :, # and )  .  Once I changed it  to something simple I was able to get past the CURL errors (and on to  new errors of course, but it is able to query the datastores visible to  the host).

I tested simple passwords that contained one of those  special characters in each run to see if there was a single character  that wincurl.dll didn't like but individually they were all fine.

Hopefully this will save somebody else from trying to chase down a error that was completely unrelated to the fix Smiley Happy

VCAP5-DCD/DCA/CIA, VCA4-DT
Reply
0 Kudos