Subscribe

How does one map an OC VM disk name i.e. "Hard Disk 1" to a mounted VM filesystem?

The OnCommand Console displays names like "Hard Disk 1" and "Hard Disk 2" for the VMDK disks mounted on a given VM. How can I map that to a useful name of a mounted filesystem on a VM, like a drive letter (CSmiley Happy on a Wintel host or a path (/) on a LInux host? I need to be able to determine this pro grammatically via the NMSDK or other easily accessible SDKs. I am using Perl, and would vastly prefer to stick with it. I could sort of deal with having to open the BLAH.vmdk file and peek inside as long as I could determine the appropriate file for certain, and the peek returned reliable information.

Anyone attempted such a feat?

Re: How does one map an OC VM disk name i.e. "Hard Disk 1" to a mounted VM filesystem?

I dont know if this info is available via NMSDK, though we may try to get it via vCenter. BTW AFAIK no one has attempted this.

Regards

adai

Re: How does one map an OC VM disk name i.e. "Hard Disk 1" to a mounted VM filesystem?

Hi Scott,

You may want to check VMware VIX APIs http://www.vmware.com/support/developer/guest-sdk/index.html

Thanks,

-Amir

Re: How does one map an OC VM disk name i.e. "Hard Disk 1" to a mounted VM filesystem?

Thanks! I'll check it out.