L4Linux/shmnet

From TUDOS-Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

L4Linux shared memory network

The driver l4shmnet can connect two L4Linuxes, providing network interfaces and using a shared memory to exchange data. To use the driver to make sure to include in your L4Linux build, it's available under that L4Linux/stub drivers menu.

For the first Linux add as a kernel parameter:

l4shmnet.add=shmns,macpart=1,create

For the second add as a kernel parameter:

l4shmnet.add=shmns,macpart=2

In the start script, add:

local shmns = L4.default_loader:create_namespace({ shm = "placeholder" });

and add shmns with rw rights to both L4Linuxes:

caps = { .... , shmns = shmns:mode("rw"), .... }

When starting the Linuxes you should see a ethX in each instance running. Add (different) IPs and pinging should work.