Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 201745

Re: VixDiskLib_PrepareForAccess always returns 1 or 20

$
0
0

Hi intripoon,

moRef=XXXX is not clear to me. What should XXXX be?

 

To get a better understanding of Managed Object References == MOR == moRef please referer to the following articles:

 

To get a better understanding of the Managed Object Browser == MOB please refer to following docs:

 

If this is wrong, could I get a complete example of how to fill the VixDiskLibConnectParams structure for calling this method?

 

An example of connect params which is working fine at my end:

 

    VixDiskLibConnectParams connectParams = { 0 };

    connectParams.vmxSpec = "moref=vm-1234"; // wher you have to replace 1234 with what you see in your MOB

    connectParams.serverName = "192.168.0.1"; // or the FQDN of your server

    connectParams.credType = VIXDISKLIB_CRED_UID;

    connectParams.creds.uid.password = "yourPassword";

    connectParams.creds.uid.userName = "yourUserName";

    connectParams.port = 0; // let library choose default port

 

Hope this help :-)

--

Thomas G.



Viewing all articles
Browse latest Browse all 201745

Trending Articles



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