Bug 1039742 - 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: Fedora
Classification: Fedora
Component: kernel
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1055089
TreeView+ depends on / blocked
 
Reported: 2013-12-09 21:38 UTC by Cole Robinson
Modified: 2014-06-18 14:47 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1055089 (view as bug list)
Environment:
Last Closed: 2014-06-18 14:47:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Cole Robinson 2013-12-09 21:38:46 UTC

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)

Comment 1 Amit Shah 2013-12-10 08:01:20 UTC
(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 Lennart Poettering 2014-01-21 18:12:44 UTC
I am pretty sure it would be a better idea to leave virtio-console compiled in in the kernel. I kinda like the robust logic in systemd that just always makes use of the console, instead of doing hotplugging magic. I mean, this is the console after all, not some random physical device you plug in.

We could add complexity for this to userspace to work aorund this, but really, the console is not really where we should play those games, it's the fricking console after all... ;-)

Given that virtio-console is tiny, can't we just leave this compiled into the kernel? I am pretty sure people would be thankful about this in many other cases too, for example when they use init=/bin/sh on the kernel cmdline or something like that....

Comment 3 Cole Robinson 2014-02-02 20:41:54 UTC
Amit, per comment #2, thoughts on going back to virtio-console compiled into the kernel?

Comment 4 Amit Shah 2014-02-05 07:22:59 UTC
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.

Comment 5 Justin M. Forbes 2014-02-24 13:55:40 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There is a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 20 kernel bugs.

Fedora 20 has now been rebased to 3.13.4-200.fc20.  Please test this kernel update and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you experience different issues, please open a new bug report for those.

Comment 6 Cole Robinson 2014-02-24 13:59:08 UTC
This bug will not be auto fixed by a kernel update, since it is specific to Fedora's kernel config. Any way to tag a bug as such?

Comment 7 Justin M. Forbes 2014-05-21 19:38:45 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There is a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 20 kernel bugs.

Fedora 20 has now been rebased to 3.14.4-200.fc20.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you experience different issues, please open a new bug report for those.

Comment 8 Josh Boyer 2014-06-18 14:09:30 UTC
OK, so we've fallen down on handling this.

Do we still have a problem here (nobody else has complained about this that I'm aware of), and do we have agreement on a solution?

Comment 9 Cole Robinson 2014-06-18 14:47:05 UTC
Thanks for following up Josh.

Apparently I'm the only one who cares about this issue, so I'm fine with just closing this bug, same was already done for RHEL7 as well.

Would be nice if systemd could handle it but I'm not going to hold my breath...


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