Skip to content

Instantly share code, notes, and snippets.

@alban
Created April 18, 2019 13:54
Show Gist options
  • Save alban/490b39cad4afa7ba0c4182088742f3db to your computer and use it in GitHub Desktop.
Save alban/490b39cad4afa7ba0c4182088742f3db to your computer and use it in GitHub Desktop.
Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby sw=2 ts=2 :
ENV["TERM"] = "xterm-256color"
ENV["LC_ALL"] = "en_US.UTF-8"
Vagrant.configure("2") do |config|
config.vm.box = "fedora/29-cloud-base" # defaults to fedora
config.vm.synced_folder ".", "/vagrant", type: "sshfs"
config.vm.synced_folder "/home/alban/go", "/go", type: "sshfs"
# common parts
if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = false
end
config.vm.provider :libvirt do |libvirt|
libvirt.cpus = 2
libvirt.memory = 4096
end
config.vm.provider :virtualbox do |vb|
vb.check_guest_additions = false
vb.functional_vboxsf = false
vb.customize ["modifyvm", :id, "--memory", "4096"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
end
# Fedora 29
config.vm.define "fedora", primary: true do |fedora|
config.vm.provision "shell", inline: "dnf install -y elfutils-devel elfutils-libelf-devel elfutils-libelf-devel-static gcc git ima-evm-utils libselinux-utils ncurses-devel"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment