RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1636178 - [RFE] Report disk device name and serial number (qemu-guest-agent on Windows)
Summary: [RFE] Report disk device name and serial number (qemu-guest-agent on Windows)
Keywords:
Status: CLOSED DUPLICATE of bug 1636186
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: virtio-win
Version: 8.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Yvugenfi@redhat.com
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1635571 1636185 1663092 1687721
Blocks: 1636186
TreeView+ depends on / blocked
 
Reported: 2018-10-04 16:15 UTC by Jeff Nelson
Modified: 2022-05-06 01:06 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of: 1635571
: 1636186 (view as bug list)
Environment:
Last Closed: 2019-01-24 15:50:35 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-29637 0 None None None 2022-05-06 01:06:13 UTC

Comment 2 Jeff Nelson 2018-10-04 16:36:17 UTC
Cloned for RHEL-8: BZ 1636186.

Comment 3 Tomáš Golembiovský 2018-10-31 09:01:43 UTC
the relevant patches are on their way upstream:

https://lists.nongnu.org/archive/html/qemu-devel/2018-10/msg06761.html

Comment 4 Sameeh Jubran 2018-11-27 11:43:35 UTC
I have rebased mingw-qemu-ga-win to qemu-3.1 which has all of thomas's patches, let's test it out:

http://brew-task-repos.usersys.redhat.com/repos/scratch/sjubran/mingw-qemu-ga-win/7.6.2/3.el7ev/noarch/

Comment 6 lijin 2018-12-03 05:48:11 UTC
xiagao,

Could you verify with the build in comment#4

Comment 7 xiagao 2018-12-11 03:19:02 UTC
qemu cmd line with two disks

-object secret,id=sec0,data=xiagao -drive file=win2019.luks,key-secret=sec0,format=luks,if=none,id=drive-ide0-0-0,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,serial=MYDISK-1 \
-blockdev driver=file,cache.direct=off,cache.no-flush=on,filename=disk1.qcow2,node-name=data_disk_file \
-blockdev driver=qcow2,node-name=data_disk,file=data_disk_file \
-device virtio-blk-pci,bus=pcie-root-port-5,drive=data_disk,id=disk1,werror=stop,rerror=stop,serial=MYDISK-2 \



#nc -U /tmp/qga
{"execute":"guest-get-fsinfo" }
{"return": [{{"name": "\\\\?\\Volume{a9655429-0000-0000-0000-602200000000}\\", "total-bytes": 20897067008, "mountpoint": "C:\\", "disk": [{"serial": "MYDISK-1", "bus-type": "sata", "bus": 0, "unit": 0, "pci-controller": {"bus": -1, "slot": -1, "domain": -1, "function": -1}, "dev": "\\\\.\\PhysicalDrive0", "target": 0}], "used-bytes": 12038557696, "type": "NTFS"}, {"name": "\\\\?\\Volume{7a6cbe5e-0000-0000-0000-010000000000}\\", "total-bytes": 1070592000, "mountpoint": "F:\\", "disk": [{"serial": "MYDISK-2", "bus-type": "scsi", "bus": 0, "unit": 0, "pci-controller": {"bus": -1, "slot": -1, "domain": -1, "function": -1}, "dev": "\\\\.\\PhysicalDrive1", "target": 0}], "used-bytes": 17690624, "type": "NTFS"}, {"name": "\\\\?\\Volume{a9655429-0000-0000-0000-100000000000}\\", "mountpoint": "System Reserved", "disk": [{"serial": "MYDISK-1", "bus-type": "sata", "bus": 0, "unit": 0, "pci-controller": {"bus": -1, "slot": -1, "domain": -1, "function": -1}, "dev": "\\\\.\\PhysicalDrive0", "target": 0}], "type": "NTFS"}]}


For each "disk" entry in the output there are two new fields "dev" and
"serial".
Testing pass in this build.


Note You need to log in before you can comment on or make changes to this bug.