Skip to content

Instantly share code, notes, and snippets.

@xotonic
Last active August 22, 2018 02:07
Show Gist options
  • Save xotonic/1611cf4d137848a975671dbb79372520 to your computer and use it in GitHub Desktop.
Save xotonic/1611cf4d137848a975671dbb79372520 to your computer and use it in GitHub Desktop.
vagrant

Troubleshooting

VirtualBox is complaining that the kernel module is not loaded. Please
run `VBoxManage --version` or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.

solve with sudo /etc/init.d/vboxdrv setup

Sample Vagrantfile

Vagrant.configure("2") do |config|

  config.vm.box = "ubuntu/xenial64"

  # fix network speed (optional)
  config.vm.provider "virtualbox" do |v|
    v.customize ["modifyvm", :id, "--nictype1", "virtio"]
  end

  config.vm.provision "shell", inline: <<-SHELL
    apt-get update && echo "apt-get updated!"
  SHELL

end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment