I need to retrieve config file from guest VM without network support. The simplest way to do that is probably to use serial port. As far as I understand I need to create kind of serial port "loop" so that I'll connect using eg. minicom to lets say /dev/vttyS0 and I'll assign /dev/vttyS1 to VirtualBox guest.
Guest is using baud rate 115200. How do I create such pair of devices?
I tried socat:
socat -d -d pty,raw,echo=0 pty,raw,echo=0
However VirtualBox doesn't seem to understand it as correct serial device throwing error
Ioctl failed for serial host device /dev/pts/10 (VERR_INVALID_PARAMETER) Device will not work properly ErrorID DrvHostSerialFail Severity Warning