I am trying to connect guest to host via serial port to have guest console on host.
VirtualBox setting : Port No. COM1
IRQ:4
I/O Port: ox3F8
Port Mode: Host Device
Path/Address: /dev/ttyS0
Host System: Ubuntu 16.04
Virtual Box Version: 5.1.18 r114002
Code: Select all
$ uname -r
4.9.4-040904-genericCode: Select all
$ id
uid=1000(tauqeer) gid=1000(tauqeer) groups=1000(tauqeer),4(adm),5(tty),20(dialout),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),128(sambashare),130(vboxusers)Code: Select all
dmesg | grep tty
[ 0.000000] console [tty0] enabled
Code: Select all
$ uname -r
4.9.11
Code: Select all
dmesg | grep tty
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.9.11 root=UUID=941a78ef-937f-41f9-aefd-7a6af973608b ro console=tty0 console=ttyS0,115200n8 ignore_loglevel crashkernel=384M-:128M
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.9.11 root=UUID=941a78ef-937f-41f9-aefd-7a6af973608b ro console=tty0 console=ttyS0,115200n8 ignore_loglevel crashkernel=384M-:128M
[ 0.000000] console [tty0] enabled
[ 0.000000] console [ttyS0] enabled
[ 703.301958] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 1185.758922] systemd[1]: Created slice system-serial\x2dgetty.slice.Code: Select all
$ id
uid=1000(kernel) gid=1000(kernel) groups=1000(kernel),4(adm),5(tty),20(dialout),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),128(sambashare),999(vboxsf)Code: Select all
I am getting this error-
Ioctl failed for serial host device '/dev/ttyS0' (VERR_DEV_IO_ERROR).
The device will not work properly.
Error ID: DrvHostSerialFail
Severity: Warning
Thanks in advance.