Last active
          March 14, 2022 19:53 
        
      - 
      
- 
        Save smijar/d26cc8556c37979bd4f17069b9760d20 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # 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