Closed mloskot closed 1 year ago
Hi there,
By default Vagrant will attempt to auto-detect the guest platform. The "linux" guest is the generic guest which all other linux type guests inherit. In the example you have provided, since the guest you are running is ubuntu, the guest should be set to ubuntu (config.vm.guest = :ubuntu
).
The linux guest implementation provides some basic capabilities that are common on among linux guests. The debian guest inherits capabilities from the linux guest and adds/modifies capabilities that are specific to debian. The ubuntu guest then inherits capabilities from the ubuntu guest and adds/modifies capabilities that are specific to ubuntu.
Hope that clears things up. Cheers!
@chrisroberts Thank you for the clarification. It makes perfect sense now.
By the way, it looks like there is nothing to find on that in the docs and learn about allowed values for config.vm.guest
https://developer.hashicorp.com/vagrant/docs/vagrantfile/machine_settings#config-vm-guest says:
but if I add the explicit guest declaration for an Ubuntu-based box (see complete
Vagrantfile
below):then
vagrant up
is failing withI guess, no user ever is so explicit declaring guest for Linux machine, hence there seem to be no reports about it.
Vagrantfile
Environment