For testing some software, I'm trying to set up a PPP connection between an Ubuntu 18.04 host and an Ubuntu 16.04 guest running in VirtualBox. So far I've tried:
- Creating virtual serial devices on the host with
socat PTY,link=/dev/ttyS14 PTY,link=/dev/ttyS15
and then connecting virtualbox'sCOM1
to/dev/ttyS14
as a host device - but VirtualBox complains that it can't set options on the port (in this case,/dev/ttyS14
is a link to/dev/pts/1
). - Configuring VirtualBox's
COM1
as a host pipe to/tmp/vbox-serial
. Butpppd
doesn't know that the commandline option/tmp/vbox-serial
is a serial port. - Creating a virtual serial device and linking it to a socket with
socat PTY,link=/dev/ttyS14 PIPE:/tmp/vbox-serial
and configuring VirtualBox to connect itsCOM1
port to and existing socket at/tmp/vbox-serial
using the host pipe option, but this results inVERR_NET_CONNECTION_REFUSED
on VM startup (/tmp/vbox-serial
isprw-rw-r-- 1 root tty
and VirtualBox is running as a user who is a member to thetty
group).
Can anyone point me to the right combination so that VirtualBox and pppd can communicate?