April 2019
Intermediate to advanced
384 pages
17h 6m
English
When running vagrant up to start up a virtual machine, Vagrant reads the local file called Vagrantfile to determine the settings.
A useful setting that you can create or change within the section for your provider is the gui one:
v.gui = true
For example, if your provider is VirtualBox, a typical config section might look like this:
Vagrant.configure(2) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 2
v.gui = false
end
end
You could change the v.gui line’s false setting to true (or add it if it isn’t already there) before running vagrant up to get a GUI for the running VM.
A provider within Vagrant is the name of the program that provides the VM environment. ...
Read now
Unlock full access