Page MenuHomeVyOS Platform

Error if no serial interface is present (/dev/ttyS0: not a tty)
Closed, ResolvedPublicBUG

Description

Not all machines ship a serial interface anymore.

On my ESXi instance I stumbled upon Nov 29 10:34:41 CR1 agetty[12394]: /dev/ttyS0: not a tty in my systems logs b/c I have not specified a serial console.

Also GRUB doesn't like it

grub.PNG (123×745 px, 8 KB)

We should make VyOS more intelligent to autodetect the serial console or even better, make it configurable. Could be that someone has a serial port but does not want a console?

Other references:
T117
T169

Looking through the sources, I found ./data/live-build-config/includes.chroot/opt/vyatta/etc/config.boot.default which is the default configuration that will be installed. It holds a serial interface.

console {
    device ttyS0 {
        speed 9600
    }
}

Details

Difficulty level
Hard (possibly days)
Version
VyOS 999.201711232137
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

c-po renamed this task from /dev/ttyS0: not a tty to Error if no serial interface is present (/dev/ttyS0: not a tty).Dec 2 2017, 8:19 AM
c-po changed Difficulty level from Unknown (require assessment) to Hard (possibly days).
syncer triaged this task as Wishlist priority.Dec 21 2017, 9:13 PM
syncer added a subscriber: syncer.

i removed serial device in OVA

c-po claimed this task.
c-po set Is it a breaking change? to Unspecified (possibly destroys the router).
dmbaturin set Issue type to Bug (incorrect behavior).Sep 3 2021, 7:29 AM
dmbaturin changed Why the issue appeared? from Will be filled on close to Implementation mistake.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.