Vagrant-libvirt: Error occurred: uninitialized constant VagrantPlugins::GuestLinux::Guest

Created on 13 May 2021  路  3Comments  路  Source: vagrant-libvirt/vagrant-libvirt

Hi All

Having some issues getting vagrant-libvirt to work. I have tried manually upgrade to Vagrant 2.2.16 which didn't work and also tried downgrading vagrant version down and stopped at 0.3.0.

I have also tried the following boxes and I get the same error.

  • Centos7
  • Arch
  • Debian

Steps to reproduce

  1. export VAGRANT_DEFAULT_PROVIDER=libvirt
  2. vagrant init centos/7
  3. vagrant up

Expected behaviour

I should get a running libvirt VM

Actual behaviour

Destroys the instance with uninitialized constant VagrantPlugins::GuestLinux::Guest (NameError)

System configuration

OS/Distro version::
ArchLinux

Libvirt version:
libvirt 1:7.1.0-3

Output of vagrant version; vagrant plugin list:

vagrant version                                                                                                                                                                                                                                                                 
Installed Version: 2.2.15

vagrant plugin list                                                                                                                                                                                                                                                             
vagrant-libvirt (0.4.1, global)

Attach Output of VAGRANT_LOG=debug vagrant ... --provider=libvirt >vagrant.log 2>&1
vagrant.log

A Vagrantfile to reproduce the issue:

Vagrant.configure("2") do |config|
  config.vm.box = "centos/7"
end

Are you using upstream vagrant package or your distros package?
Yes

All 3 comments

Looks like hashicorp/vagrant#12325, I'd suggest downgrading to vagrant itself to v2.2.14 based on what I'm reading upstream.

Going to close this issue as anything with VagrantPlugins::GuestLinux where the first part after VagrantPlugins isn't VagrantLibvirt means it is either one of the plugins bundled with vagrant itself or another plugin.

Thanks @electrofelix

I have done the downgrade to v2.2.14 and can confirm it's working.

Thanks for your help, appreciate it . :-)

Was this page helpful?
0 / 5 - 0 ratings