Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

enabling gui in Vagrantfile settings

Tags:

vagrant

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?

like image 752
GuiDocs Avatar asked Sep 25 '13 19:09

GuiDocs


People also ask

How do I enable vagrant GUI?

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.

Does vagrant have a 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.

How do I set up a vagrant provider?

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.


1 Answers

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 
like image 116
Emyl Avatar answered Nov 23 '22 01:11

Emyl