I've tried using configure.vm.boot_mode = :gui
in Vegrantfile, but got this error: The following settings shouldn't exist: boot_mode
the way I fixed it now is by using vendor configuration (virtualbox):
config.vm.provider "virtualbox" do |v| v.gui = true end
but I would like to avoid vendor-specific anything when not necessary. what vendor-agnostic alternative is there to this? is there a replacement to boot_mode
?
You can go to display settings and enable the Remote Display Server while it's running (you may want to change the default port), and then use an RDP viewer (On Windows use Remote Desktop Connection) to access the GUI.
5.3 Using a GUIThe next time you start the VM with vagrant up, it will open a VirtualBox 3 Page 4 CS168 Using the Vagrant VM Fall 2019 window and start the VM in GUI mode. Note that the VM may take a few minutes to boot the first time you start in this mode.
Just set VAGRANT_DEFAULT_PROVIDER to the provider you wish to be the default. For example, if you use Vagrant with VMware Fusion, you can set the environmental variable to vmware_desktop and it will be your default.
vm.boot_mode
is gone with Vagrant 1.1, but you can still use it if you enclose it in a V1 configuration block:
Vagrant.configure("1") do |config| config.vm.boot_mode = :gui end Vagrant.configure("2") do |config| # V2 Config... end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With