Skip to content

Instantly share code, notes, and snippets.

@smijar
Last active March 14, 2022 19:53
Show Gist options
  • Save smijar/d26cc8556c37979bd4f17069b9760d20 to your computer and use it in GitHub Desktop.
Save smijar/d26cc8556c37979bd4f17069b9760d20 to your computer and use it in GitHub Desktop.
# ref
# https://computingforgeeks.com/how-to-install-virtualbox-on-fedora-linux/
# tweak below for Mac OS X
# https://stefanwrobel.com/how-to-make-vagrant-performance-not-suck
# vagrantfile
```shell
testbox_script = <<-SHELL
#!/bin/bash
set -euxo pipefail
SHELL
Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu2004"
config.vm.hostname = "testbox"
config.vm.provider "virtualbox" do |vb|
vb.customize ['modifyvm', :id, '--nested-hw-virt', 'on']
vb.memory = "4096"
vb.cpus = "4"
end
args = []
config.vm.provision "shell", inline: testbox_script
end
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment