Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 643687 - Allow to specify boot order on qemu command line.
Allow to specify boot order on qemu command line.
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
6.1
All Linux
medium Severity medium
: beta
: 6.1
Assigned To: Gleb Natapov
Virtualization Bugs
:
Depends On:
Blocks: 580954 643688 LibvirtBootOrder
  Show dependency treegraph
 
Reported: 2010-10-17 07:18 EDT by Gleb Natapov
Modified: 2013-12-08 19:51 EST (History)
9 users (show)

See Also:
Fixed In Version: qemu-kvm-0.12.1.2-2.136.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 643688 (view as bug list)
Environment:
Last Closed: 2011-05-19 07:28:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0534 normal SHIPPED_LIVE Important: qemu-kvm security, bug fix, and enhancement update 2011-05-19 07:20:36 EDT

  None (edit)
Description Gleb Natapov 2010-10-17 07:18:31 EDT
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 10 Keqin Hong 2011-02-11 05:49:03 EST
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 12 Miya Chen 2011-03-10 00:49:11 EST
move to verified based on comment#10.
Comment 13 errata-xmlrpc 2011-05-19 07:28:42 EDT
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/RHSA-2011-0534.html
Comment 14 errata-xmlrpc 2011-05-19 08:49:33 EDT
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/RHSA-2011-0534.html

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