New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coreos-base/oem-ec2-compat: use ttyS0 for console #2189

Merged
merged 1 commit into from Sep 14, 2016

Conversation

Projects
None yet
2 participants
@crawford
Member

crawford commented Sep 14, 2016

On HVM instances, tty0 is actually a graphical interface. Since the
interface exposed is non-interactive, it's not possible to scroll
through the logs, which results in lots of missing information. Setting
the console to ttyS0, on the other hand, sends the output to the system
log.

PV instances don't have this issue since they are xen-based and use
hvc0.

@@ -5,3 +5,7 @@ set oem_id="ec2"
# Blacklist the Xen framebuffer module so it doesn't get loaded at boot
# Disable `ens3` style names, so eth0 is used for both ixgbevf or xen.
set linux_append="modprobe.blacklist=xen_fbfront net.ifnames=0"
if [ "$grub_platform" = pc ]; then
set linux_console="console=ttyS0,115200n8"

This comment has been minimized.

@marineam

marineam Sep 14, 2016

Contributor

Add grub serial so you see it's output too:

      serial com0 --speed=115200 --word=8 --parity=no

 terminal_input console serial_com0
 terminal_output console serial_com0

This comment has been minimized.

@crawford

crawford Sep 14, 2016

Member

That's an unfortunate side-effect. Added.

@@ -5,3 +5,10 @@ set oem_id="ec2"
# Blacklist the Xen framebuffer module so it doesn't get loaded at boot
# Disable `ens3` style names, so eth0 is used for both ixgbevf or xen.
set linux_append="modprobe.blacklist=xen_fbfront net.ifnames=0"
if [ "$grub_platform" = pc ]; then
set linux_console="console=ttyS0,115200n8"

This comment has been minimized.

@marineam

marineam Sep 14, 2016

Contributor

Very intentional, if the config has customized the linux console it is responsible for configuring grub too.

Oh, but you can actually drop console, so grub also doesn't do the dual output, only writing to serial_com0

This comment has been minimized.

@marineam

marineam Sep 14, 2016

Contributor

So forcing you to configure grub actually makes grub behave correctly too! :-P

coreos-base/oem-ec2-compat: use ttyS0 for console
On HVM instances, tty0 is actually a graphical interface. Since the
interface exposed is non-interactive, it's not possible to scroll
through the logs, which results in lots of missing information. Setting
the console to ttyS0, on the other hand, sends the output to the system
log.

PV instances don't have this issue since they are xen-based and use
hvc0.
@marineam

LGTM

@crawford crawford merged commit 7efd3ca into coreos:master Sep 14, 2016

1 check passed

jenkins/start Build finished.
Details

@crawford crawford deleted the crawford:ec2 branch Sep 14, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment