Serial Console From Guest To Host

Discussions about using Linux guests in VirtualBox.
Post Reply
Solemon
Posts: 1
Joined: 23. Apr 2018, 07:21

Serial Console From Guest To Host

Post by Solemon »

I am configuring two serial console namely ttyS0 and ttyS1 from guest to host to get the boot and kernel messages on both the console in host,
but i am getting boot/kernel messages on only one console either on ttyS0 or ttyS1.
kernel serial-console documentation says "You can specify multiple console= options on the kernel command line. Output will appear on all of them."

In virtualbox setting,
serial port 1 has been set, as
Port No. COM1
Port Mode - Host Pipe
connect to existing pipe/socked - UNCHECKED
Path/Addess: /tmp/vbox

serial port 2 has been set, as
Port No. COM2
Port Mode - Host Pipe
connect to existing pipe/socked - UNCHECKED
Path/Addess: /tmp/vbox1

i have enable ttyS0 and ttyS1 in guest machine via
# systemctl enable serial-getty@ttyS0.service
# systemctl start serial-getty@ttyS0.service
# systemctl enable serial-getty@ttyS1.service
# systemctl start serial-getty@ttyS1.service


/etc/default/grub
---------------------
GRUB_CMDLINE_LINUX="console=ttyS0,115200n8 console=ttyS1,115200n8 console=tty0 ignore_loglevel"
--------------------
i am getting getty on both the serial console but boot/kernel messages on only one of them ttyS0.
how can i get the boot and kernel messages on both the serial console.?

Host System- ubuntu 16.04
Guest System- ubnutu 16.04
Attachments
console setting in virtualbox
console setting in virtualbox
serial1.jpg (43.71 KiB) Viewed 1200 times
minicom on unix#/tmp/vbox (ttyS0)
minicom on unix#/tmp/vbox (ttyS0)
Serial_ttyS0.jpg (111.93 KiB) Viewed 1200 times
minicom on unix#/tmp/vbox1 (ttyS1)
minicom on unix#/tmp/vbox1 (ttyS1)
ttyS1.jpg (60.85 KiB) Viewed 1200 times
Post Reply