VMware {code} Community
Jacobhm
Contributor
Contributor

Connecting to

I am pretty much using the code almost word for word from:

http://pubs.vmware.com/vix-api/ReferenceGuide/

Under the FindItems method reference.

When I try to connect to a system(WinXP) that has vmware server installed, it fails right after the connect call.

If I try to connect to the localhost it succeeds.

Then when FindItems is called it throws an exception only when VIX_FIND_REGISTERED_VMS is passed as the type. If VIX_FIND_RUNNING_VMS is used then it appears to work, but after the lib.ErrorIndicatesFailure method call it appears to hang.

I know the port on the XP system is open - the firewall isn't active on the system where vmware server is installed.

I'm also not sure why finding registered vms fails when finding running vms appears to be working.

I am using 1 as the version instead of the constant in the connect method.

Let me know if there's any other information you might want/need to help.

Thank you!

Reply
0 Kudos
2 Replies
zerovoid
Contributor
Contributor

As stated at http://www.vmware.com/community/thread.jspa?threadID=86231&tstart=0

VIX_FIND_REGISTERED_VMS is not supported in server 1.0, and does not apply to Workstation.

Reply
0 Kudos
Jacobhm
Contributor
Contributor

Thanks.

I wish it was available, but I can survive with hardcoding the path.

I've started getting more of a grasp of how these APIs work. I'm moving forward. Thanks for your help.

Reply
0 Kudos