| Summary: | unable to boot guest with "usb-host" device automatically when it rank after one hard disk in boot menu | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Yanan Fu <yfu> | ||||||
| Component: | qemu-kvm | Assignee: | Gerd Hoffmann <kraxel> | ||||||
| Status: | CLOSED NEXTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 6.8 | CC: | ailan, chayang, jinzhao, juzhang, kraxel, mkenneth, rbalakri, virt-bugs, virt-maint, yfu | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Windows | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2016-01-20 07:02:11 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
|
Description
Yanan Fu
2016-01-14 02:12:16 UTC
Created attachment 1114635 [details]
add screendump when boot guest
Created attachment 1114636 [details]
add screendump for boot menu
I have checked "usb-host" does not support "bootindex", so if we want to install one guest from "usb-host", and if it rank after the disk in boot menu. it will always fail when do not enter boot menu to choose "USB device" manually. > there has a bootable system in the usb, and the disk is idle. after boot
> failed from Hard Disk, it will skip USB device, and boot from the drive next
> in the boot order.
> (do "system_reset", and enter boot menu, it shows: the disk rank first, usb
> device rank second )
BIOS boot interfaces are decades old and unfortunately not designed in a way
to allow this (have multiple hard-disks and try booting them in order).
Only possible fix is stop using seabios and go for ovmf (UEFI) instead.
Which again isn't an option for RHEL-6, but should be available for
RHEL-7 soon.
(In reply to Yanan Fu from comment #4) > I have checked "usb-host" does not support "bootindex", so if we want to > install one guest from "usb-host", and if it rank after the disk in boot > menu. it will always fail when do not enter boot menu to choose "USB device" > manually. usb-host got bootindex support at some point, backporting that to RHEL-6 might be an option. Have to check how invasive it is though. Also this doesn't look highly important to me. What is the use case? (In reply to Gerd Hoffmann from comment #6) > (In reply to Yanan Fu from comment #4) > > I have checked "usb-host" does not support "bootindex", so if we want to > > install one guest from "usb-host", and if it rank after the disk in boot > > menu. it will always fail when do not enter boot menu to choose "USB device" > > manually. > > usb-host got bootindex support at some point, backporting that to RHEL-6 > might be an option. Have to check how invasive it is though. Also this > doesn't look highly important to me. What is the use case? In the case, we want to install one guest from usb-host to a disk. There has a bootable system in the usb, the disk is idle. after boot failed from Hard Disk, it will skip USB device, and boot from the drive next(may be nic) in the boot order. In this situation, we can not choose to install the given system in the usb if we do not enter boot menu to choose it manually. > >BIOS boot interfaces are decades old and unfortunately not designed in a way > >to allow this (have multiple hard-disks and try booting them in order). do you mean, bios only check the first disk in boot menu? i just confirmed bios only check one hd and cd if there has not only one in the boot menu. And does "usb-host" belong to hard disk ? > > doesn't look highly important to me. What is the use case? > > In the case, we want to install one guest from usb-host to a disk. Why a physical stick instead of a virtual one? Isn't that a bit inconvinient? Or do you do it just to test whenever it works? In case it is the latter: Can we disable that test case for RHEL-6? > > >BIOS boot interfaces are decades old and unfortunately not designed in a way > > >to allow this (have multiple hard-disks and try booting them in order). > > do you mean, bios only check the first disk in boot menu? i just confirmed > bios only check one hd and cd if there has not only one in the boot menu. > And does "usb-host" belong to hard disk ? After picking the boot device from the menu the bios will order the hard disks, finalize and populate data structures such as EDD. Then it'll try only the first hard disk (possibly after trying other devices such as cdroms). usb sticks are handled like hard drives, no matter whenever they are virtual (usb-storage) or physical (usb-host). (In reply to Gerd Hoffmann from comment #8) > Why a physical stick instead of a virtual one? Isn't that a bit > inconvinient? Or do you do it just to test whenever it works? In case it > is the latter: Can we disable that test case for RHEL-6? It is one of our test case "Boot from a passthrough usb storage" I think this is possible when we already have one bootable system in a physical usb device, and want to install a guest with the exist system. > After picking the boot device from the menu the bios will order the hard > disks, finalize and populate data structures such as EDD. Then it'll try > only the first hard disk (possibly after trying other devices such as > cdroms). > > usb sticks are handled like hard drives, no matter whenever they are virtual > (usb-storage) or physical (usb-host). As you said,usb sticks are handled like hard driver, and bios only check one hard driver in boot menu, so i can understand why it skip usb device when it rank after one hard disk in boot menu. Anyway, there has workaround about this issue, we can enter bootmenu when guest boot, and choose the usb device manually. Thanks Ok, closing then as NEXTRELEASE (rhel-7 has bootindex for usb-host). |