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 876112 - [regression] unable to boot from usb-host devices
Summary: [regression] unable to boot from usb-host devices
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Gerd Hoffmann
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 876534
Blocks: 805414
TreeView+ depends on / blocked
 
Reported: 2012-11-13 10:55 UTC by Ján Tomko
Modified: 2014-06-18 03:18 UTC (History)
9 users (show)

Fixed In Version: 1.3.0-rc0
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 876534 (view as bug list)
Environment:
Last Closed: 2014-06-13 12:42:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ján Tomko 2012-11-13 10:55:26 UTC
Description of problem:
USB flash drive passed ass usb-host gets skipped at boot.

Version-Release number of selected component (if applicable):
qemu-kvm-1.2.0-18.el7
Upstream since commit a844ed842d9a9d929645c09ae0f52f753d7a02e0
    usb-host: attach only to running guest

How reproducible:
Always.

Steps to Reproduce:
Run qemu with -device usb-host,hostbus=2,hostaddr=4,id=hostdev0,bootindex=1
  
Actual results:
Machine boots from the drive next in the boot order.

Expected results:
The machine will boot from the USB drive.

Additional info:
It doesn't appear in the boot menu either.

Comment 2 Paolo Bonzini 2012-11-20 17:26:51 UTC
Fixed by commit c06c68c928edd36eb56baa0d2db065bbec28af27.

Comment 5 huiqingding 2014-01-21 09:52:11 UTC
Reproduce this issue using the following version:
qemu-kvm-1.2.0-18.el7.x86_64
kernel-3.7.0-0.36.el7.x86_64

Steps to Reproduce:
1. Boot guest
# /usr/libexec/qemu-kvm -M pc -cpu SandyBridge -enable-kvm -m 2048 -smp 8,sockets=2,cores=2,threads=2 -no-kvm-pit-reinjection -uuid 350e716b-5f98-4bf0-9a2a-c8e423295244 -rtc base=localtime,clock=host,driftfix=slew -device virtio-serial-pci,id=virtio-serial0,max_ports=16,vectors=0,bus=pci.0,addr=0x3 -chardev socket,id=channel1,path=/tmp/helloworld1,server,nowait -device virtserialport,chardev=channel1,name=com.redhat.rhevm.vdsm,bus=virtio-serial0.0,id=port1 -chardev socket,id=channel2,path=/tmp/helloworld2,server,nowait -device virtserialport,chardev=channel2,name=com.redhat.rhevm.vdsm,bus=virtio-serial0.0,id=port2  -device virtio-balloon-pci,id=ballooning,bus=pci.0,addr=0x6 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -k en-us -boot menu=on -qmp tcp:0:4444,server,nowait -serial unix:/tmp/ttyS0,server,nowait -vnc :1 -chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0 -device virtio-serial -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0,id=sr0 -monitor stdio -device sga -chardev socket,id=serial1,path=/var/test1,server,nowait -device isa-serial,chardev=serial1   -netdev tap,id=hostnet0,vhost=on -device virtio-net-pci,netdev=hostnet0,id=virtio-net-pci0,mac=08:2E:5F:0B:1D:B2 -netdev tap,id=hostnet1,vhost=on -device virtio-net-pci,netdev=hostnet1,id=virtio-net-pci1,mac=08:2E:5F:0B:1D:B3 -device usb-ehci,id=ehci -device usb-host,hostbus=1,hostaddr=5,id=hostdev0,bootindex=1

2. Reboot guest
(qemu) system_reset

3. Press F12 to check boot menu

Actual results:
After step1,  cannot boot from the USB drive and boot from NIC card.
After step3, usb disk can be found in boot menu.

Verify this issue using the following version:
qemu-kvm-1.5.3-38.el7.x86_64
kernel-3.10.0-67.el7.x86_64

1. Boot guest
# /usr/libexec/qemu-kvm -M pc -cpu SandyBridge -enable-kvm -m 2048 -smp 8,sockets=2,cores=2,threads=2 -no-kvm-pit-reinjection -uuid 350e716b-5f98-4bf0-9a2a-c8e423295244 -rtc base=localtime,clock=host,driftfix=slew -device virtio-serial-pci,id=virtio-serial0,max_ports=16,vectors=0,bus=pci.0,addr=0x3 -chardev socket,id=channel1,path=/tmp/helloworld1,server,nowait -device virtserialport,chardev=channel1,name=com.redhat.rhevm.vdsm,bus=virtio-serial0.0,id=port1 -chardev socket,id=channel2,path=/tmp/helloworld2,server,nowait -device virtserialport,chardev=channel2,name=com.redhat.rhevm.vdsm,bus=virtio-serial0.0,id=port2  -device virtio-balloon-pci,id=ballooning,bus=pci.0,addr=0x6 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -k en-us -boot menu=on -qmp tcp:0:4444,server,nowait -serial unix:/tmp/ttyS0,server,nowait -vnc :1 -chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0 -device virtio-serial -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0,id=sr0 -monitor stdio -device sga -chardev socket,id=serial1,path=/var/test1,server,nowait -device isa-serial,chardev=serial1   -netdev tap,id=hostnet0,vhost=on -device virtio-net-pci,netdev=hostnet0,id=virtio-net-pci0,mac=08:2E:5F:0B:1D:B2 -netdev tap,id=hostnet1,vhost=on -device virtio-net-pci,netdev=hostnet1,id=virtio-net-pci1,mac=08:2E:5F:0B:1D:B3 -device usb-ehci,id=ehci -device usb-host,hostbus=1,hostaddr=5,id=hostdev0,bootindex=1

2. Reboot guest
(qemu) system_reset

3. Press F12 to check boot menu

Actual results:
After step1,  can boot from the USB drive.
After step3, usb disk can be found in boot menu.

Based on the above results, I think this bug has been fixed.

Comment 7 Ludek Smid 2014-06-13 12:42:37 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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