I am trying to access the remote VMDK using the latest VDDK Kit (version – 8.0.1) by calling the VixDiskLib_ConnectEx() function to connect to the datastore. The function returns the vixError Status code to be 3 (VIX_E_INVALID_ARG). I have attached the code snippet that I am trying to use for the same.
Need assistance in identifying the following aspects:
- Clear format of required structure for cnxParams->vmxSpec , cnxParams->serverName, cnxParams->spec.dsSpec.datastoreMoRef, cnxParams->spec.dsSpec.diskFolder.
- Do we need to initialize any other parameter for making the connection apart from the one’s mentioned in the code snippet if we want to have a datastore level access to VMDK.
- Any other pointers that we need to keep in mind while making connection to remote server.
FYI – we are able to establish the connection to local server using VixDiskLib_Connect() by taking cnxParams as NULL.