This libvdeplug plugin module adds the support of vde over vsock.
Requirements: vdeplug4,
vdeplug_vsock
uses cmake, so the standard procedure to build and install
this vdeplug plugin module is the following:
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install
Create a point to point Ethernet link between a virtual machine and its host over a vsock(7) socket (assuming that systems support vsock).
On the hosts run:
$ sudo vde_plug tap://tap0 vsock://2:2002->42:2001
On the VM (assuming having CID 42):
$ sudo vde_plug tap://tap0 vsock://42:2001->2:2002
(change the CIDs and ports to suit your scenario)
The virtual ethernet interfaces named tap0
on the two linux systems will be connected as if it were
a point-to-point ethernet cable between them.