Bug 854191
Summary: | Add a new boot parameter to set the delay time before rebooting | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Amos Kong <akong> | |
Component: | qemu-kvm | Assignee: | Amos Kong <akong> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 6.4 | CC: | acathrow, ailan, areis, bsarathy, dyasny, gleb, juzhang, mkenneth, rhod, veillard, virt-maint, wduffee, xfu | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | qemu-kvm-0.12.1.2-2.320.el6 | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
Customer requests to reboot guest if no bootable device found. Seabios will output an error message, wait for 60 seconds by default and reboot guest. But QEMU user could not control the delay time.
Consequence:
Need a qemu boot parameter to configure the delay time, user can also disable the reboot.
Fix:
Added an option ("-boot reboot-timeout=T") to let qemu transfer a configuration file ("etc/boot-fail-wait") to seabios.
Result:
User can assign the delay time by "-boot reboot-timeout=T", T have a max value of 0xffff, unit is ms.
If reboot-timeout is '-1', guest will not reboot, qemu passes '-1' to seabios by default.
|
Story Points: | --- | |
Clone Of: | ||||
: | 855237 (view as bug list) | Environment: | ||
Last Closed: | 2013-02-21 07:39:21 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: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 855237 |
Description
Amos Kong
2012-09-04 10:00:22 UTC
patch posted to upstream: http://patchwork.ozlabs.org/patch/182306/ example: -boot reboot-timeout=10000 With this option, guest will wait for a given time if not find bootabled device, then reboot. If reboot-timeout is '-1', guest will not reboot, qemu passes '-1' to bios by default. Hi Eric, If customer wants to use this 'feature'[1], do we need to change libvirt/virt-manager/etc to use this qemu parameter? [1] Bug 831273 - RFE: reboot VM if no bootable device found Thanks, Amos (In reply to comment #2) > Hi Eric, > > If customer wants to use this 'feature'[1], do we need to change > libvirt/virt-manager/etc to use this qemu parameter? Yes; libvirt probably needs to enhance XML to support this; I cloned bug 855237 to track it. (You can use the unsupported <qemu:commandline> XML to trigger it in the meantime while waiting for official libvirt support.) verify this issue with qemu-kvm-0.12.1.2-2.329 and seabios-0.6.1.2-25 testing three scenarios: 1. <=1 seconds boot guest with -boot reboot-timeout=1000 No boottable device. Retrying in (0)1 seconds. 2. >65seconds boot guest with -boot reboot-timeout=1000000 No boottable device. Retrying in 65 seconds. 3. default value boot guest with -boot reboot-timeout=-1 guest not reboot,and always show "No bootable device. since qemu max support reboot-timeout effective value is 65 second(work as design). so base on this result above, this bug is fixed. 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. http://rhn.redhat.com/errata/RHBA-2013-0527.html |