VMware Cloud Community
thale13
Contributor
Contributor

Correlate VM disk scsi ID with guest OS device

Ok, so that sounds odd.  What I need to do is find a way to know that 'Hard disk 3, SCSI ID 2:2' actually corresponds to RHEL 6 (the guest os) disk /dev/sdd.  I can parse SCSI ids from vsphere and the hosts (with lsscsi) but Redhat having a dynamic device tree causes the controllers to not match up.  On some VMs I have 4 SCSI controllers in the vm hardware and 6 on the OS due to the cdrom controller and default IDE controllers that got added somewhere.

I'm hoping for a unique ID that I can get/set from vSphere that is query-able at the guest os, but haven't found it yet.  I can use Perl APIs and PowerCLI and, depending on what/how, esxcli and the other cmdline utils.

Any help is appreciated.

T.

0 Kudos
0 Replies