Skip to content

Instantly share code, notes, and snippets.

@mohclips
Created July 29, 2022 07:56
Show Gist options
  • Save mohclips/285f1f95022c35a677b1d252d88db84e to your computer and use it in GitHub Desktop.
Save mohclips/285f1f95022c35a677b1d252d88db84e to your computer and use it in GitHub Desktop.
Vagrantfile - enable VirtualBox VNC
# add this to your Vagrantfile
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--vrde", "on"]
vb.customize ["modifyvm", :id, "--vrdeaddress", "0.0.0.0"]
# pick an unused port
vb.customize ["modifyvm", :id, "--vrdeport", "60101"]
# check first with "vboxmanage list extpacks"
vb.customize ["modifyvm", :id, "--vrdeextpack", "VNC"]
# change this cleartext password to something better ;)
vb.customize ["modifyvm", :id, "--vrdeproperty", "VNCPassword=secret"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment