Skip to content

Instantly share code, notes, and snippets.

@mcastelino
mcastelino / cc ciao-down
Last active February 5, 2017 18:09
Clear Container 3.0 test setup using ciao-down
ciao-down is a small utility for setting up a VM that contains everything you need to run ciao's Single VM.
All you need to have installed on your machine is:
Intall go 1.7 or greater on your host system, then
1. go get github.com/01org/ciao/testutil/ciao-down
2. $GOPATH/bin/ciao-down prepare -vmtype clearcontainers
3. $GOPATH/bin/ciao-down connect
Now you can try clear containers inside the VM.
@mcastelino
mcastelino / Clear Containers 2.1 with ciao-down.txt
Last active February 15, 2017 18:09
Clear Containers 2.1 with ciao-down
ciao-down is a small utility for setting up a VM that contains everything you need to run Clear Containers inside a virtual machine.
0. Install go 1.7 or greater on your host system
1. go get github.com/01org/ciao/testutil/ciao-down
2. $GOPATH/bin/ciao-down prepare -vmtype clearcontainers
3. $GOPATH/bin/ciao-down connect
Now you can try clear containers inside the VM. You can also build and replace any component you choose.
If you want to buld clear containers from sources
@mcastelino
mcastelino / Clear Containers Hands On.md
Last active March 4, 2017 00:57
Clear Containers Hands On

Clear Containers Hands On

For people in the meetup to try the Clear Containers hands on exercise on their own

Setup

You can try the hands on either in a VM using ciao-down or directly on your host system

Using ciao-down

First setup a clear containers virtual machine on Ubuntu/fedora using the instructions here

# Install latest k8s packages
cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial-unstable main
EOF
# Install ocid
apt-get install libseccomp2 libseccomp-dev seccomp libdevmapper-dev libdevmapper1.02.1 libgpgme11 libgpgme11-dev libglib2.0-dev
# Install ocid systemd service file
@mcastelino
mcastelino / k9s-ciao-down.md
Last active March 13, 2017 21:25
ciao-down k8s single machine cluster

Simple single node Kubernetes cluster using ciao-down

This document calls out the steps to create a simple kubernetes cluster with a single node for development purposes. This is based on https://github.com/kelseyhightower/kubernetes-the-hard-way

This setup does not use kubeadm. Also it uses the built in bridge plugin. Most of the core framework services like the api-server and controller are launched using systemd. This should allow cri-o and clear containers to be tested without running into provisioning issues

Create a Virtual Machine host host k8s

@mcastelino
mcastelino / demo_script.txt
Last active March 27, 2017 16:19
CC Swarm Demo
# Delete any old containers and services
sudo docker service ls
sudo docker service rm $(sudo docker service ls -q)
sudo docker rm -f $(sudo docker ps -a -q)
# Show you can just run containers with the "exact same CLI"
docker run -it debian
@mcastelino
mcastelino / gist:f03c2594930303a2f15b8e7559b54977
Created April 13, 2017 20:18
Plugin Chaining - veth-tap
{
"cniVersion": "0.3.0",
"name": "mynet",
"plugins": [
{
"type": "bridge",
"bridge": "cni0"
},
{
"type": "veth",
@mcastelino
mcastelino / sriov-with-cnm-plugin.md
Created May 10, 2017 19:56 — forked from egernst/sriov-with-cnm-plugin.md
SRIO-V with Docker CNM plugin

Using a Docker CNM plugin to play with SRIO-V

This gist describes the setup necessary for testing SRIO-V based connectivity between two physical boxes which are each setup as described here, and directly connected via their respective SRIO-V enabled NICs.

Setup host system's packages

For this scenario, I'm setting up two Ubuntu 16.04 systems which have a SRIO-V enabled interface as well as a second port for accessing the SUT. To setup:

@mcastelino
mcastelino / Clear Containers with Zun.md
Created May 19, 2017 22:32
Clear Containers with Zun on Ciao Down
@mcastelino
mcastelino / lspci_cc.md
Created July 20, 2017 19:19
lspsci on clearcontainers
root@77d4fb377c8d:/sys/bus/pci/devices# lspci -vvv
00:02.0 Communication controller: Red Hat, Inc Virtio console
        Subsystem: Red Hat, Inc Device 0003
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 16
        Region 0: I/O ports at 1040 [size=32]
        Region 1: Memory at b0100000 (32-bit, non-prefetchable) [size=4K]