VMware {code} Community
kumars17
Contributor
Contributor

SCSI Inquiry page 83 on VMware virtual Disk doens't returns its UUID

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?

0 Kudos
2 Replies
lamw
Community Manager
Community Manager

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".

0 Kudos
kumars17
Contributor
Contributor

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

SCSI Inquiry page 83 data. Whereas If I issues a SCSI inquiry page 83 (using DeviceIoControl routine) to the PHYSICALDRIVE (virtualdisk) of VMware virtual disk, it returns no data telling that this disk doesn't support this.

Regards,

Sunil

0 Kudos