Running OVS in CoreOS
There are two ways to run or install OVS in a CoreOS environment:
Build a CoreOS image with OVS
Run OVS inside a Docker container with the
–net=host
option
As we have already seen in Chapter 1, CoreOS, Yet Another Linux Distro in CoreOS there is no way to install an application. Any service/application should be deployed in a container. So the simple way to run OVS is to run OVS inside a Docker container. Let us see how we can install an OVS docker in CoreOS.
There is already a docker image available with OVS (coreos-ovs). Download this docker image from https://github.com/theojulienne/coreos-ovs github link. Use the following cloud-config
to start this container:
#cloud-config coreos: units: - name: docker.service command: start drop-ins: - name: 50-custom-bridge.conf content: | [Service] Environment='DOCKER_OPTS=--bip="10.0.11.0/8" --fixed-cidr="10.0.11.0/24"' - name: OVS.service command: start ...