Skip to content

Commit

Permalink
chore: add kvm install and config to vagrantfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jmickey committed Oct 12, 2021
1 parent 7d0f857 commit 0215530
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0215530

Please sign in to comment.