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

Get PCI slot number for a virtual SCSI controller?

$
0
0

Is it possible to retrieve the PCI slot number of a virtual SCSI controller from PowerCLI?  I dug around a bit but I can't seem to find it anywhere in ExtensionData of either the SCSI controllers or the hard disks.

 

I'd like to use it to correlate VMDKs to Windows Disks because every script that I've found goes off of an assumption about how devices are assigned PCI slots, and in my findings those assumptions aren't 100% reliable.

 

I've checked the properties of both of these objects with no luck:

 

$VirtualSCSIAdapters = $VMView.Config.Hardware.Device | Where-Object{$_.DeviceInfo.Label -match "SCSI controller"}

$VirtualDiskDevices = $VMView.Config.Hardware.Device | Where-Object{$_.DeviceInfo.Label -match "Hard disk"}

 

I know that at the very least, the slot information is stored in the vmx file.  As a worst case scenario, is it possible to harvest the data from vmx?


Viewing all articles
Browse latest Browse all 168455

Trending Articles



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