Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1102463

Summary: sga device required on systems with -nographic
Product: Red Hat Enterprise Linux 7 Reporter: Dusty Mabe <dustymabe>
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact: Jiri Herrmann <jherrman>
Priority: unspecified    
Version: 7.0CC: dyuan, hhuang, huding, jherrman, juzhang, lnovich, mazhang, mzhan, pbonzini, rbalakri, tzheng, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
Migrated guests do not display the boot menu on the serial console Virtual machines (VMs) created on Red Hat Enterprise Linux 6 that have no graphics card (such as VMs created using the virt-install utility with the "--graphics none" option) do not show the boot menu on the serial console anymore after migrating to Red Hat Enterprise Linux 7 hosts. To work around this problem, add the <bios useserial='yes'/> line to the domain.xml file, which allows the boot menu to display as expected. Note that if the XML file is modified this way, it should not be used on Red Hat Enterprise Linux 6.6 or earlier, as these do not benefit from changes introduced for BZ#1162759.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-26 21:16:57 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:
Attachments:
Description Flags
el6 screencast log file
none
el6 screencast timing file
none
el6 virsh dump
none
el7 screencast log
none
el7 screencast timing
none
el7 virsh dump none

Description Dusty Mabe 2014-05-29 03:38:27 UTC
Description of problem:

In the past (EL6) when creating a VM with no graphics (i.e specify
--graphics none to virt-install) I could enable the bootmenu 
(<bootmenu enable='yes'/>) and it would show up on the serial
console with no problem.

In RHEL7 and Fedora 20 I have to also add <bios useserial='yes'/> to 
get the boot menu to show up on the serial console. This seems like a 
regression of sorts.


Version-Release number of selected component (if applicable):
From RHEL7 RC:
    libvirt-1.1.1-29.el7.x86_64
    qemu-kvm-1.5.3-60.el7.x86_64 I also tried with qemu-kvm-rhev
    kernel-3.10.0-121.el7.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Create a guest with only serial device (no graphics) and add <bootmenu enable='yes'/> to xml.
2. Observe that you get no boot prompt.
3. Add <bios useserial='yes'/>
4. Observe you now get a boot prompt (as well as extra output which may be another bug)

Actual results:
Had to add useserial=yes to xml in order to see boot menu. To observe behavior download attachments and run scriptreplay el7-screencast.{timing,log}. Notice that menu to "press F12" only appears after adding <bios useserial='yes'/>.


Expected results:
Expected the behavior as it was in EL6. To observe old behavior download attachments and run scriptreplay el6-screencast.{timing,log} 

Additional info:
If you notice the extra output when observing and think it is a bug please let me know and I can file it.

Comment 1 Dusty Mabe 2014-05-29 03:39:22 UTC
Created attachment 900209 [details]
el6 screencast log file

Comment 2 Dusty Mabe 2014-05-29 03:40:03 UTC
Created attachment 900211 [details]
el6 screencast timing file

Comment 3 Dusty Mabe 2014-05-29 03:40:25 UTC
Created attachment 900212 [details]
el6 virsh dump

Comment 4 Dusty Mabe 2014-05-29 03:40:49 UTC
Created attachment 900213 [details]
el7 screencast log

Comment 5 Dusty Mabe 2014-05-29 03:41:09 UTC
Created attachment 900214 [details]
el7 screencast timing

Comment 6 Dusty Mabe 2014-05-29 03:41:32 UTC
Created attachment 900215 [details]
el7 virsh dump

Comment 8 Ján Tomko 2014-07-23 16:24:32 UTC
QEMU used to add the sga device automatically before commit 6023d83 [1] when -nographic was specified (libvirt specifies this option when no <graphics> elements are present in the domain XML).

[1] http://git.qemu.org/?p=qemu.git;a=commitdiff;h=6023d83

The extra output does look like a bug to me. Moving to qemu-kvm as neither of these seem to be libvirt's fault.

Comment 9 Dusty Mabe 2014-07-23 17:50:51 UTC
(In reply to Jan Tomko from comment #8)

> The extra output does look like a bug to me. Moving to qemu-kvm as neither
> of these seem to be libvirt's fault.

Should I make a separate bug for the "extra output"? Under qemu-kvm?

Comment 11 Paolo Bonzini 2014-09-11 10:04:40 UTC
This was done because it was requested by Anthony.  The idea was to revert it sooner or later, but that was never done.

I guess we need to fix virt-install to add the attribute when it creates the domain, and document the difference.

Comment 12 Paolo Bonzini 2014-11-11 16:28:24 UTC
So, it was a bad idea in RHEL6, now we cannot have different behavior in RHEL7.0 and RHEL7.1 and have to deal with the backwards compatibility issues.  Marking CondNAK design.

The virt-install part, mentioned in comment 11, is bug 1130886.

It would be good to also adjust RHEL6 libvirt, so that it avoids supplying two copies of the sgabios option ROM if the user uses <bios useserial='yes'/> and -nographic at the same time.  This is bug 1162759.

Laura, can you please move this to the appropriate component so that we can have it in the release notes or the right manual?

Comment 13 Paolo Bonzini 2015-01-30 14:07:40 UTC
virt-install was fixed and RHEL6 libvirt is in POST.  Laura, please talk to me on IRC, we want this to be documented in the release notes only.