You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there. Vagrant is behaving as intended with regards to plugins. Because you are using Vagrant via the official installer, the correct way to use plugins is via the vagrant plugin install command. That is why the libvirt plugin works as expected after you run the install command.
The :plugins group within a Gemfile is for running Vagrant outside the official installer. This allows you to include Vagrant within a bundle, and define plugins for that bundle. When Vagrant is running from the official installer it does not load a Gemfile, and as such, any plugins defined within the Gemfile will not be acknowledged or loaded.
The VAGRANT_DISABLE_PLUGIN_INIT environment variable does not default default to a "0" value. By default it is unset and as such a check for the environment variable within Vagrant will equate to a nil value. Vagrant is just checking for any value in this environment variable, and if any is found it disables the loading and initialization plugins within Vagrant. The disabling of the plugin initialization is only applicable to specific commands and is used to keep Vagrant functioning in the event installed plugins or their configuration is some how corrupted.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
I'm using official Vagrant distribution version 1.9.2 for Debian 64-bit.
I have libvirt Archlinux box and my Vagrantfile is pretty simple:
Also I have Gemfile:
When I run
vagrant up --provider libvirt
I get:VAGRANT_LOG=debug output
I googled a bit and found recent PR #7793 which introduced new
VAGRANT_DISABLE_PLUGIN_INIT
environment variable.I tried the following:
but got the same error.
Debug log.
Next I installed
vagrant-libvirt
plugin manually withvagrant plugin install vagrant-libvirt
, removed Gemfile and tried:executed normally but
failed with:
Debug log.
Next I added another plugin vagrant-reload so my Vagrantfile was:
and Gemfile (I created it again):
Now
failed with
Debug log.
And
failed again with
Debug log.
So does #7793 remove plugin management via Gemfile and why does
VAGRANT_DISABLE_PLUGIN_INIT=0
change Vagrant behavior if zero is default value?The text was updated successfully, but these errors were encountered: