jimirving
Contributor
Contributor

Can't connect to ESX 3.5u4 or 4.0 using VIX 1.6.2

Going by the documentation here I've been trying to connect to ESX in several instances. I've tried ESX 3.5 u2, u4 and ESX 4.0. In every single case, I can't connect In the manner described in the documentation, namely:

-using VixCOM.Constants.VIX_SERVICEPROVIDER_VMWARE_VI_SERVER;

-using

I have, however, been able to connect using VixCOM.Constants.VIX_SERVICEPROVIDER_DEFAULT, and using only the direct hostname (ie esx10.example.com) for the hostname value.

The problem, however, is that even once I'm connected using SERVICEPROVIDER_DEFAULT, I can't open any VM's. I've tried opening them with datastore paths, absolute paths, and relative paths. Nothing works.

Does anybody know what's going on here and how I can get connected to ESX and open a VM? All of this code worked perfectly on VMware Server.

I really appreciate any help that anyone can give.

Tags (4)
0 Kudos
1 Reply
jimirving
Contributor
Contributor

I've fixed the problem. Apparently dns stops working when you try to connect and instead you have to use the IP address only.

0 Kudos