Serial Console in VirtualBox

on the host install socat:

sudo apt install socat

then run:

socat -d -d pty,raw,echo=0 pty,raw,echo=0

it will show something like this:

.... N PTY is /dev/pts/1
.... N PTY is /dev/pts/2 

then open new tab terminal and type:

cat </dev/pts/1

now go to whonix-ws-vbox (or any VM) settings -> Serial Ports -> Tick enable then:

Port Number: COM1 (default)
Port Mode: Raw File
Path/Address: /dev/pts/2

now run Whonix-WS-Vbox and all the process will be mirrored to
cat </dev/pts/1

1 Like