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: ...

Get Learning CoreOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.