Switch branches/tags
Nothing to show
Find file History



Packaging of the Open vSwitch for rumprun.



Setup the rumprun toolchain in the PATH if you have not done so. Run make:


The executables and libraries are install at ./build-cross/ovs/.

Bake the ovs images:

rumprun-bake hw_generic ./ovsdb-tool.bin ./build-cross/ovs/bin/ovsdb-tool
rumprun-bake hw_generic ./ovsdb-server.bin ./build-cross/ovs/sbin/ovsdb-server
rumprun-bake hw_generic ./ovs-vswitchd.bin ./build-cross/ovs/sbin/ovs-vswitchd

Initialize the ovsdb database::


The ovsdb-tool unikernel returns immediately because it is used to create an empty database with ovsdb schema.

Create two tap devices on the host:

ip tuntap add tap0 mode tap
ip tuntap add tap1 mode tap
ip link set dev tap0 up
ip link set dev tap1 up

Create a bridge named br0 and attach tap0 and tap1 to br0:

brctl addbr br0
ip addr add dev br0
ip link set br0 up
brctl addif br0 tap0
brctl addif br0 tap1

Start the ovsdb server unikernel VM:


Start the ovs-vswitchd unikernel VM:


Replace qemu with kvm in the above scripts to take advance of hardware virtualization if the platform supports KVM.


Install Open vSwitch command line on the host and try some commands:

ovs-vsctl --db=tcp: show

ovs-vsctl --db=tcp: add-br br-int-5 -- set bridge br-int-5 \