As specified in the VI SDK API reference
QueryVirtualDiskUuid Get the virtual disk SCSI inquiry page 0x83 data.
I tried to write my own program and get the SCIS inquiry data, but it doesn't return page 83 information. below is the output of my program. Does VMWare virtual DISK, suuports scsi inquiry?
How can we get the virtual disk UUID when running inside a Guest ?
C:\vmware\scsiinquiry\release>scsiinquiry.exe
.\PHYSICALDRIVE0
Querying information for disk '
.\PHYSICALDRIVE0' ...
- Page80.VendorId: VMware
- Page80.ProductId: Virtual disk
- Page80.ProductRevision: 1.0
- Page80.SerialNumber:
ERROR: Cannot request SCSI Inquiry VPD Page #83 information for device '
.\PHYS
ICALDRIVE0'.
Maybe it doesn't support Page 83?
Take a look at this quick script I wrote: , note that QueryVirtualDiskUuid() from my limited testing, this function is only supported connect directly to ESX(i) and not to vCenter. I've tried this on ESX 4.0, but should work across the various versions.
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
I know that QueryVirtualDiskUUID works and i know how to use it. What I meant is that its documentation states that it returns the UUID of virtual disk which is
Regards,
Sunil