VMware Solutions Discussions

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

salindley
3,042 Views

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 (C:) 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?

3 REPLIES 3

adaikkap
3,042 Views

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

amirm
3,042 Views

Hi Scott,

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

Thanks,

-Amir

salindley
3,042 Views

Thanks! I'll check it out.

Public