From ad14725973ff3b5fe05f34e53650f4b34e65d06b Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 15 May 2021 13:49:50 -0700 Subject: hack: firecracker binary and CNI configuration Add a target to the Makefile to download a version of firecracker and extract it under the repository hack/firecracker. We will then use this binary for running the VM. Add a CNI configuration under hack/cni. This configuration will need to be copied to `/etc/cni/conf.d`. --- .../exp/containerd-to-vm/hack/cni/50-c2vm.conflist | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 users/fcuny/exp/containerd-to-vm/hack/cni/50-c2vm.conflist (limited to 'users/fcuny/exp/containerd-to-vm/hack/cni') diff --git a/users/fcuny/exp/containerd-to-vm/hack/cni/50-c2vm.conflist b/users/fcuny/exp/containerd-to-vm/hack/cni/50-c2vm.conflist new file mode 100644 index 0000000..9321e54 --- /dev/null +++ b/users/fcuny/exp/containerd-to-vm/hack/cni/50-c2vm.conflist @@ -0,0 +1,26 @@ +{ + "name": "c2vm", + "cniVersion": "0.4.0", + "plugins": [ + { + "type": "bridge", + "bridge": "c2vm-br", + "isDefaultGateway": true, + "forceAddress": false, + "ipMasq": true, + "hairpinMode": true, + "mtu": 1500, + "ipam": { + "type": "host-local", + "subnet": "192.168.128.0/24", + "resolvConf": "/etc/resolv.conf" + } + }, + { + "type": "firewall" + }, + { + "type": "tc-redirect-tap" + } + ] +} -- cgit v1.2.3