Skip to content

Instantly share code, notes, and snippets.

@egernst
Last active March 23, 2017 18:47
Show Gist options
  • Save egernst/c7a79666b3482787ab5714e13e3fe275 to your computer and use it in GitHub Desktop.
Save egernst/c7a79666b3482787ab5714e13e3fe275 to your computer and use it in GitHub Desktop.
Clear Containers, DPDK and OVS

Get the necessary sources

  • For plugin: go get github.com/clearcontainers/ovsdpdk
  • For ovs-dpdk enabled CC runtime: go get github.com/01org/cc-oci-runtime --> detail out getting the branch

Build the runtime

Will likely need a number of packages. For fedora 25, for example, run:

sudo dnf install \
glib2-devel-2.50.3-1.fc25.x86_64 \
json-glib-devel-1.2.6-1.fc25.x86_64 \
libuuid-devel-2.28.2-2.fc25.x86_64 \
libmnl-devel-1.0.4-1.fc25.x86_64 \
check-devel-0.10.0-3.fc24.x86_64 \
bats-0.4.0-4.20160219git0360811.fc25.noarch

Next, run the autogen script in the cc-oci-runtime sources path, which will check for prerequisite packages. If any are found missing, install and rerun.

./autogen.sh

Once this succeeeds, build it:

make -j

Configure your environment

Pull specific container image

The runtime is dependent on a particular version of hyperstart, the agent which runs within the container.img. Grab a release > 14170

Update docker to use our built runtime

Update the default settings for cc-runtime

  • Use PC machine type
  • Update to use vmlinuz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment