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 643688 - Allow to specify boot order on qemu command line.
Summary: Allow to specify boot order on qemu command line.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: seabios
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: beta
: 6.1
Assignee: Gleb Natapov
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 643687 666922
Blocks: 580954 LibvirtBootOrder
TreeView+ depends on / blocked
 
Reported: 2010-10-17 11:20 UTC by Gleb Natapov
Modified: 2013-12-09 00:51 UTC (History)
8 users (show)

Fixed In Version: seabios-0.6.1.2-2.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 643687
: 666922 (view as bug list)
Environment:
Last Closed: 2011-05-19 13:04:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0564 0 normal SHIPPED_LIVE seabios bug fix and enhancement update 2011-05-18 17:57:11 UTC

Description Gleb Natapov 2010-10-17 11:20:21 UTC
+++ This bug was initially created as a clone of Bug #643687 +++

We need to allow to specify boot order from qemu command line to have better control of a guest behaviour. Qemu should build list of all bootable devices and pass the preferred order into Seabios.

Comment 4 Gleb Natapov 2011-01-02 10:25:03 UTC
Rebase of Seabios will be needed to support this feature.

Comment 6 Eduardo Habkost 2011-01-03 18:00:32 UTC
I have opened bug #666922 for the rebase. Dependencies were set so this bug depends on the rebase.

Comment 13 Keqin Hong 2011-02-11 10:50:08 UTC
Verified on qemu-kvm-0.12.1.2-2.144.el6.x86_64 and
seabios-0.6.1.2-3.el6.x86_64. PASS.

Steps:
1. Decide boot order for multiple block and NIC devices
2. Boot by passing boot order decided
3. Change boot order, and repeat step 1 and step 2

CLI e.g.
/usr/libexec/qemu-kvm -drive file=disk1.img,if=none,id=disk1 \
  -device ide-drive,drive=disk1,bootindex=4 \
  -drive file=disk2.img,if=none,id=disk2 \
  -device virtio-blk-pci,drive=disk2,bootindex=3 \
  -netdev tap,id=net0 -device virtio-net-pci,netdev=net0,mac=xxxx,bootindex=2 \
  -netdev tap,id=net1 -device e1000,netdev=net1,mac=yyyy,bootindex=1 \
  -drive file=OS.iso,if=none,id=os,media=cdrom,format=raw \
  -device ide-drive,drive=os,id=ide0-0-1,bootindex=0 \
  -drive if=none,file=fda.img,id=fda -drive if=none,file=fdb.img,id=fdb \
  -global isa-fdc.bootindexB=30 -global isa-fdc.bootindexA=40

Manual test runs:
https://tcms.engineering.redhat.com/run/16935/ 
https://tcms.engineering.redhat.com/run/16934/

Comment 15 errata-xmlrpc 2011-05-19 13:04:36 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0564.html


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