Quantcast
Channel: VMware Communities : Discussion List - VMware {code}
Viewing all articles
Browse latest Browse all 2738

Failed to connect to VC using VixHost_Connect getting 22003 error message

$
0
0

Hi All
i'm starting to use the VIX api, and i'm getting 22003 error message

this is the code

NOTE:

* i am running this code using VS 2017 , .net 4.72

the VC is 6.5

For vSphere, the VIX API was deprecated in 2012, as announced in the VIX 1.11 Release Notes. VIX 1.14 was the last supported release for vSphere. VIX is no longer supported with in 6.5 and VMware Tools 10.1.0 and later.

https://stackoverflow.com/questions/54868060/vmware-esxi-6-7-guest-os-password

 

VixError err;

char *vmxPath;

VixHandle hostHandle = VIX_INVALID_HANDLE;

VixHandle jobHandle = VIX_INVALID_HANDLE;

VixHandle vmHandle = VIX_INVALID_HANDLE;

 

 

jobHandle = VixHost_Connect(VIX_API_VERSION,

//VIX_SERVICEPROVIDER_DEFAULT,

VIX_SERVICEPROVIDER_VMWARE_VI_SERVER,

"THE_VC_IP_ADDRESS", // *hostName,

0, // hostPort,

"root", // *userName,

"THE_VC_PASSWORD", // *password,

0, // options,

VIX_INVALID_HANDLE, // propertyListHandle,

NULL, // *callbackProc,

NULL); // *clientData);

 

 

err = VixJob_Wait(jobHandle,

VIX_PROPERTY_JOB_RESULT_HANDLE,

&hostHandle,

VIX_PROPERTY_NONE);

 

am i missing something  ?


Viewing all articles
Browse latest Browse all 2738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>