From 021553052df4241579056c55a79301409b9aef18 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 12 Oct 2021 01:41:40 +0000 Subject: [PATCH] chore: add kvm install and config to vagrantfile --- Vagrantfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index d8897f18..729e4e16 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -62,7 +62,7 @@ Vagrant.configure("2") do |config| config.vm.provision "install-golang", type: "shell", run: "once" do |sh| sh.env = { - 'GO_VERSION': ENV['GO_VERSION'] || "1.17.1", + 'GO_VERSION': ENV['GO_VERSION'] || "1.17.2", } sh.inline = <<~SHELL #!/usr/bin/env bash @@ -100,6 +100,17 @@ EOF SHELL end + config.vm.provision "install-kvm", type: "shell", run: "once" do |sh| + sh.inline = <<~SHELL + #!/usr/bin/env bash + set -eux -o pipefail + apt install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils + adduser 'vagrant' libvirt + adduser 'vagrant' kvm + setfacl -m u:${USER}:rw /dev/kvm + SHELL + end + config.vm.provision "install-firecracker", type: "shell", run: "once" do |sh| sh.inline = <<~SHELL curl -fsSL "https://github.com/weaveworks/reignite/files/7278467/firecracker_macvtap.zip" -o /tmp/firecracker-macvtap.zip