Created
July 29, 2022 07:56
-
-
Save mohclips/285f1f95022c35a677b1d252d88db84e to your computer and use it in GitHub Desktop.
Vagrantfile - enable VirtualBox VNC
This file contains 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
# 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