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 1212317 - floppy device can not be detected in the win8-64 guests under OVMF
Summary: floppy device can not be detected in the win8-64 guests under OVMF
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.1
Hardware: x86_64
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Igor Mammedov
QA Contact: jingzhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-16 07:19 UTC by Mike Cao
Modified: 2017-06-28 07:40 UTC (History)
13 users (show)

Fixed In Version: QEMU-2.6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-07 20:22:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (50.42 KB, image/png)
2015-04-16 07:19 UTC, Mike Cao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2673 0 normal SHIPPED_LIVE qemu-kvm-rhev bug fix and enhancement update 2016-11-08 01:06:13 UTC

Description Mike Cao 2015-04-16 07:19:01 UTC
Created attachment 1015059 [details]
screenshot

Description of problem:


Version-Release number of selected component (if applicable):
3.10.0-239.el7.x86_64
qemu-kvm-rhev-2.2.0-8.el7.x86_64
OVMF-20140822-7.git9ece15a.el7.x86_64
win8-64

How reproducible:
100%

Steps to Reproduce:
1.Start win8 guests under OVMF
CLI:
/usr/libexec/qemu-kvm -name 103RNGWIN864VYW -enable-kvm -m 2G -smp 2 -uuid 41d5cc3c-c257-47f9-ab23-5a4b74e24686 -nodefconfig -nodefaults -drive file=2/OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on -drive file=2/OVMF_VARS.fd,if=pflash,format=raw,unit=1 -drive id=cdrom1,if=none,cache=none,snapshot=off,aio=threads,file=2/UefiShell.iso,media=cdrom -chardev socket,id=charmonitor,path=/tmp/103RNGWIN864VYW,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime,driftfix=slew -boot order=cd,menu=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=103RNGWIN864VYW_BLN,if=none,id=drive-ide0-0-0,format=raw,serial=mike_cao,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive file=en_windows_8_enterprise_x64_dvd_917522.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive file=103RNGWIN864VYW.vfd,if=none,id=drive-fdc0-0-0,format=raw,cache=none -global isa-fdc.driveA=drive-fdc0-0-0 -netdev tap,script=/etc/qemu-ifup,downscript=no,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=00:52:45:26:58:6c,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=isa_serial0 -device usb-tablet,id=input0 -vnc 0.0.0.0:1 -vga cirrus -device virtio-balloon-pci,id=balloon0 -monitor stdio
2.
3.

Actual results:
floppy device  can not be detected in the guests,refereing to screenshot.

Expected results:
floppy can be detected.

Additional info:
(qemu) info block
pflash0: 2/OVMF_CODE.fd (raw, read-only)

pflash1: 2/OVMF_VARS.fd (raw)

cdrom1: 2/UefiShell.iso (raw, read-only)
    Removable device: not locked, tray closed

drive-ide0-0-0: 103RNGWIN864VYW_BLN (raw)

drive-ide0-1-0: en_windows_8_enterprise_x64_dvd_917522.iso (raw, read-only)
    Removable device: not locked, tray closed

drive-fdc0-0-0: 103RNGWIN864VYW.vfd (raw)
    Removable device: not locked, tray closed

Comment 2 Laszlo Ersek 2015-04-16 10:04:34 UTC
Some questions / notes:

(1) What justifies Severity=high?

    As far as I understand, we need the floppy drive for very old Windows
    releases (ie. pre-Windows 7), because that's the only way they can
    install the virtio-win drivers. However, Windows 7 and later can use two
    CD-ROMs during install (two IDE CD-ROMs, or one IDE plus one
    virtio-scsi), where the IDE one holds the virtio-win ISO, and the other
    one (virtio-scsi or IDE) holds the windows installer ISO.

(2) Does the exact same command line produce a working floppy drive with
    SeaBIOS + Windows 8?

(3) Hmmm, okay, I added a floppy drive (using virt-manager) to my existing
    OVMF windows 8 guest. I downloaded an empty, 1.44MB disk image from
    <http://www.rmprepusb.com/tutorials/winimage>, called
    BLANK_FLOPPY144.IMA, and attached it to the drive in virt-manager.

    OVMF itself (in the UEFI shell) recognizes the floppy disk.

    In the File Explorer window, Windows 8 does not show the floppy.
    However, I then went to Device Manager, and it *does* list

    Floppy drive controllers
      Standard floppy disk controller

    and under Properties it says "this device is working correctly".

I don't know how to debug this further, especially because OVMF itself sees
the disk. Debugging Windows 8 seems to be necessary to me, and I don't know
anything about Windows.

Comment 3 Ademar Reis 2015-04-24 20:51:18 UTC
(In reply to Laszlo Ersek from comment #2)
> Some questions / notes:
> 

Setting NEEDINFO(Mike)


> (1) What justifies Severity=high?
> 
>     As far as I understand, we need the floppy drive for very old Windows
>     releases (ie. pre-Windows 7), because that's the only way they can
>     install the virtio-win drivers. However, Windows 7 and later can use two
>     CD-ROMs during install (two IDE CD-ROMs, or one IDE plus one
>     virtio-scsi), where the IDE one holds the virtio-win ISO, and the other
>     one (virtio-scsi or IDE) holds the windows installer ISO.

Agree, changing it to low (feel free to change it back to high or medium if you have a reason to do so).

> 
> (2) Does the exact same command line produce a working floppy drive with
>     SeaBIOS + Windows 8?
> 

This is an important question for further triage.

Comment 4 Mike Cao 2015-04-26 07:07:22 UTC
(In reply to Laszlo Ersek from comment #2)
> Some questions / notes:
> 
> (1) What justifies Severity=high?
> 
>     As far as I understand, we need the floppy drive for very old Windows
>     releases (ie. pre-Windows 7), because that's the only way they can
>     install the virtio-win drivers. However, Windows 7 and later can use two
>     CD-ROMs during install (two IDE CD-ROMs, or one IDE plus one
>     virtio-scsi), where the IDE one holds the virtio-win ISO, and the other
>     one (virtio-scsi or IDE) holds the windows installer ISO.

AFAIK ,qemu-kvm-rhev is used for RHEV and RHOS. RHEVM only support 1 emulated cdrom currently(My information may out of date ..).
> 
> (2) Does the exact same command line produce a working floppy drive with
>     SeaBIOS + Windows 8?

yes ,exactly.
> 
> (3) Hmmm, okay, I added a floppy drive (using virt-manager) to my existing
>     OVMF windows 8 guest. I downloaded an empty, 1.44MB disk image from
>     <http://www.rmprepusb.com/tutorials/winimage>, called
>     BLANK_FLOPPY144.IMA, and attached it to the drive in virt-manager.
> 
>     OVMF itself (in the UEFI shell) recognizes the floppy disk.
> 
>     In the File Explorer window, Windows 8 does not show the floppy.
>     However, I then went to Device Manager, and it *does* list
> 
>     Floppy drive controllers
>       Standard floppy disk controller
> 
>     and under Properties it says "this device is working correctly".

Right , That is exactly what I hit .
What's more ,I add windows unattened installation config file(like the kickstart for linux) in the floppy ,the file can not be read during guest installation as well.
> 
> I don't know how to debug this further, especially because OVMF itself sees
> the disk. Debugging Windows 8 seems to be necessary to me, and I don't know
> anything about Windows.

Comment 5 Laszlo Ersek 2015-06-03 18:21:58 UTC
This Microsoft technet discussion seems relevant:

https://social.technet.microsoft.com/Forums/windows/en-US/f17db175-d146-4518-b2e9-c12a15031222/legacy-floppy-compatibility-with-uefi-boot

In it people originally suggested that the windows *UEFI* bootloader deliberately instructed the windows kernel to hide / ignore floppy drives (not the controller, just the drives). However, in the last message, a commenter stated that implementing the _FDE ACPI method for the FDC (controller) ACPI object allowed windows to recognize the drive.

I just checked the ACPI specification (v6.0) and indeed _FDE (Floppy Disk Enumerate) appears a method whose absence could prevent an OS from enumerating floppy disks.

The commenter said the disk appeared unformatted (incorrectly). I'm thinking that that in turn was due to _FDI (Floppy Disk Information) missing.

QEMU doesn't seem to provide either _FDE or _FDI. I'm not sure why Windows demands these methods only from a UEFI firmware (and not from BIOS), but this explanation looks plausible to me.

Comment 7 Laszlo Ersek 2015-06-03 18:24:56 UTC
"The final answer is that Microsoft has elected to not support FDD when booting UEFI and there is nothing you can do about it except to go back to legacy BIOS."

So, I think this bug is a CANTFIX.

Mike, what do you think? Can we perhaps get confirmation from Microsoft?

Comment 8 Laszlo Ersek 2015-06-03 18:26:19 UTC
(or, well, for OVMF: NOTABUG)

Comment 9 Laszlo Ersek 2015-06-19 20:08:38 UTC
Based on the information available, I'm closing this as NOTABUG.

Comment 10 Mike Cao 2015-06-26 02:19:38 UTC
(In reply to Laszlo Ersek from comment #7)
> "The final answer is that Microsoft has elected to not support FDD when
> booting UEFI and there is nothing you can do about it except to go back to
> legacy BIOS."
> 
> So, I think this bug is a CANTFIX.
> 
> Mike, what do you think? Can we perhaps get confirmation from Microsoft?

It is good from my side ,I just want to confirm whether it is a bug or not :)

Comment 11 Laszlo Ersek 2016-01-11 19:51:41 UTC
Reopening and moving to qemu-kvm-rhev because *apparently* the discussion I quoted in comment 5 was the correct one, instead of the other discussion I quoted in comment 7.

Refer to the upstream QEMU patch series at:
http://lists.nongnu.org/archive/html/qemu-devel/2015-12/msg02073.html

(
Obviously, it remains unfathomable to me how someone can gather evidence for a statement like

> Windows [...] requests this information from BIOS via int 0x13/0x08 or
> through ACPI objects _FDE (Floppy Drive Enumerate) and _FDI (Floppy Drive
> Information).  On UEFI systems only ACPI-based detection is supported.

without reverse engineering Windows.
)

Comment 12 Igor Mammedov 2016-01-19 14:53:23 UTC
should be fixed in 2.6,
I'll add commit IDs once patches merged upstream.

Comment 13 Igor Mammedov 2016-03-16 16:03:20 UTC
Fixed upstream in QEMU-2.6, relevant commits:

27b9fc5 i386: populate floppy drive information in DSDT
e08fde0 fdc: add function to determine drive chs limits
bda0550 i386: expose floppy drive CMOS type
9b613f4 i386/acpi: make floppy controller object dynamic

Comment 14 Mike McCune 2016-03-28 22:42:18 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 16 jingzhao 2016-08-22 05:15:06 UTC
Reproduced the bz on host-kernel-3.10.0-327.8.1.el7.x86_64 and qemu-kvm-rhev-debuginfo-2.3.0-31.el7_2.21.x86_64, OVMF-20150414-2.gitc9e5618.el7.noarch.

Verified the bz on qemu-kvm-rhev-2.6.0-20.el7.x86_64, host-kernel-3.10.0-492.el7.x86_64 and OVMF-20150414-2.gitc9e5618.el7.noarch

qemu command line:
/usr/libexec/qemu-kvm \
-M pc \
-cpu SandyBridge \
-nodefaults -rtc base=utc \
-m 4G \
-smp 2,sockets=2,cores=1,threads=1 \
-enable-kvm \
-uuid 990ea161-6b67-47b2-b803-19fb01d30d12 \
-k en-us \
-nodefaults \
-drive file=/usr/share/OVMF/OVMF_CODE.fd,if=pflash,format=raw,unit=0,readonly=on \
-drive file=/home/OVMF_VARS.fd,if=pflash,format=raw,unit=1 \
-serial unix:/tmp/serial0,server,nowait \
-debugcon file:/home/ovmf.log \
-global isa-debugcon.iobase=0x402 \
-boot menu=on \
-qmp tcp:0:6666,server,nowait \
-vga qxl \
-spice port=5932,disable-ticketing \
-drive file=/home/bug/win8.64.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,werror=stop,rerror=stop \
-device virtio-blk-pci,drive=drive-virtio-disk0,id=virtio-disk0 \
-device virtio-net-pci,netdev=tap10,mac=9a:6a:6b:6c:6d:6e -netdev tap,id=tap10 \
-drive file=/home/virtio-win.iso,if=none,media=cdrom,id=drive-ide1,format=raw \
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide1,id=ide1 \
-cdrom /home/en_windows_8_enterprise_x64_dvd_917522.iso \
-drive file=/home/floppy1.vfd,if=none,id=drive-fdc0-0-0,format=raw,cache=none \
-global isa-fdc.driveA=drive-fdc0-0-0 \
-monitor stdio \

Thanks
Jing Zhao

Comment 17 jingzhao 2016-09-08 06:14:43 UTC
Move to verified according to comment 16

Comment 19 errata-xmlrpc 2016-11-07 20:22:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2673.html


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