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 1055089 - agetty not started for /dev/hvc0 on latest F20 kernels
Summary: agetty not started for /dev/hvc0 on latest F20 kernels
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kernel
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Amit Shah
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On: 1039742
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-18 18:12 UTC by Cole Robinson
Modified: 2014-06-11 12:25 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
The systemd service does not spawn a getty on the /dev/hvc0/ virtio console if the virtio console driver is not found before loading kernel modules at system startup. As a consequence, a TTY terminal does not start automatically after the system boot when the system is runnning as a KVM guest. To work around this problem, start a getty on /dev/hvc0/ after the system boot. The ISA serial device, which is used more commonly, works as expected.
Clone Of: 1039742
Environment:
Last Closed: 2014-06-10 12:21:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Cole Robinson 2014-01-18 18:12:28 UTC
Seems to affect RHEL7 as well.


+++ This bug was initially created as a clone of Bug #1039742 +++



Recent F20 kernels now distribute virtio-console as a module:

https://bugzilla.redhat.com/show_bug.cgi?id=1019569

However this change has the side effect that a getty is no longer autostarted on /dev/hvc0, so 'virsh console' doesn't automagically work like it used to.

Not sure if this is something systemd can fix, or if we should consider reverting the kernel change. (there have also been reports that console=hvc0 on the kernel command line no longer works for showing boot output, so there's two regressions that stem from that kernel change)

--- Additional comment from Amit Shah on 2013-12-10 03:01:20 EST ---

(In reply to Cole Robinson from comment #0)
> 
> Recent F20 kernels now distribute virtio-console as a module:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1019569
> 
> However this change has the side effect that a getty is no longer
> autostarted on /dev/hvc0, so 'virsh console' doesn't automagically work like
> it used to.

It can be made to a udev trigger instead of just assuming a vc exists if /dev/hvc0 is present.

Comment 2 Lukáš Nykrýn 2014-01-31 12:46:20 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1039742#c2 -> reassigning to kernel

Comment 3 Cole Robinson 2014-02-25 17:55:54 UTC
(In reply to Amit Shah from comment #4)
> It's just a console [#], but:
> 
> * it pulls in virtio* dependencies (including virtio-pci on x86, and
> virtio-mmio on arm, s390)
> * those virtio* drivers need to be compiled in even on non-guest
> configurations (which means all hosts)
> 
> If the complexity this might introduce in systemd/udev outweighs the
> additional RAM required for compiling in these drivers for all
> configurations, we would want to flip it back to compiled in.
> 
> 
> [#]: Also, it's not just a console: the virtio-console driver also drives
> the virtio-serial (i.e. a non-tty guest-host communication channel)
> functionality.

Who is going to make this distinction?

For end users the most compelling thing about virtio console is the agetty auto spawning. We lived with virtio console compiled in for this long, can we just revert the change until systemd is extended or it's decided to leave it compiled in for good?

Comment 4 Amit Shah 2014-02-27 07:00:02 UTC
(In reply to Cole Robinson from comment #3)
> (In reply to Amit Shah from comment #4)
> > It's just a console [#], but:
> > 
> > * it pulls in virtio* dependencies (including virtio-pci on x86, and
> > virtio-mmio on arm, s390)
> > * those virtio* drivers need to be compiled in even on non-guest
> > configurations (which means all hosts)
> > 
> > If the complexity this might introduce in systemd/udev outweighs the
> > additional RAM required for compiling in these drivers for all
> > configurations, we would want to flip it back to compiled in.
> > 
> > 
> > [#]: Also, it's not just a console: the virtio-console driver also drives
> > the virtio-serial (i.e. a non-tty guest-host communication channel)
> > functionality.
> 
> Who is going to make this distinction?
> 
> For end users the most compelling thing about virtio console is the agetty
> auto spawning. We lived with virtio console compiled in for this long, can
> we just revert the change until systemd is extended or it's decided to leave
> it compiled in for good?

RHEL6 didn't have it compiled in.

For end-users, the serial functionality of the virtio-console module is more useful (e.g. for the guest agent).

AFAIK x86 users don't use the console on virtio-console.  The standard ISA serial device is more used.

Comment 5 Cole Robinson 2014-02-27 14:18:21 UTC
> RHEL6 didn't have it compiled in.
> 

Fedora did, and RHEL7 did until recently, right?

Also, even if it was compiled in in RHEL6 it wasn't interesting because systemd wasn't there to autosetup the console on hvc0.

> For end-users, the serial functionality of the virtio-console module is more
> useful (e.g. for the guest agent).
> 

Right, if you consider it from the kernel level, I was thinking more of -device virtconsole, but maybe I'm confusing things

> AFAIK x86 users don't use the console on virtio-console.  The standard ISA
> serial device is more used.

virt-manager defaults to it in F20+ precisely because 'virsh console $vmname' just works with modern distros. Prior to that we've had fedora test day test cases for enabling -device virtconsole manually and verifying that 'virsh console' just works. Really outside that that automagic behavior there doesn't seem to be much benefit to -device virtconsole over traditional serial.


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