VMware {code} Community
eharney
Contributor
Contributor

VixDiskLib_Open for remote disk through a vCenter server?

I'm trying to do a VixDiskLib_Open for a remote disk for a VM on an ESX server that's managed through a vCenter server.

I'm not quite sure how to specify the path to the disk. For standalone ESX I use "[DatastoreName] VMname/VMname.vmdk" which seems to work well. This causes an error when attempting to open the same thing through a vCenter server, which makes sense, since it probably doesn't know which host the datastore I'm referring to is on.

So, how do I need to specify this in the call to VixDiskLib_Open? I assume I can add the datastore name or a reference to the ESX host to this path, and then use it in a way similar to how it works on ESX hosts.

I am using VixDiskLib_ConnectEx before this call with a reference to a snapshot, if that helps any.

Thanks!

Tags (2)
0 Kudos
1 Reply
eharney
Contributor
Contributor

I eventually figured out that the path I had was fine -- I just had another issue where the moref of the VM was not getting set correctly when talking to vCenter servers, which caused the failure.

0 Kudos