VMware {code} Community
garimaa12aug
Contributor
Contributor

Identifying correct Params for VixDiskLib_ConnectEx()

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.

Screenshot 2023-06-09 at 3.26.53 PM.png

Need assistance in identifying the following aspects:

  1. Clear format of required structure for cnxParams->vmxSpec , cnxParams->serverName, cnxParams->spec.dsSpec.datastoreMoRef, cnxParams->spec.dsSpec.diskFolder.
  2. 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.
  3. 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.

0 Kudos
1 Reply
himanshup
Contributor
Contributor

thumbprint is missing.

Tags (1)