Issues installing vagrant-libvirt plugin on Ubuntu 20.04
- 
 Following this guide https://github.com/vagrant-libvirt/vagrant-libvirt joel@systemname:~$ vagrant plugin install vagrant-libvirt Installing the 'vagrant-libvirt' plugin. This can take a few minutes... Building native extensions. This could take a while... Building native extensions. This could take a while... Vagrant failed to properly resolve required dependencies. These errors can commonly be caused by misconfigured plugin installations or transient network issues. The reported error is: ERROR: Failed to build gem native extension. current directory: /home/joel/.vagrant.d/gems/2.6.6/gems/ruby-libvirt-0.7.1/ext/libvirt /opt/vagrant/embedded/bin/ruby -I /opt/vagrant/embedded/lib/ruby/2.6.0 -r ./siteconf20200801-37599-172c5bm.rb extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/opt/vagrant/embedded/bin/$(RUBY_BASE_NAME) --with-libvirt-include --without-libvirt-include --with-libvirt-lib --without-libvirt-lib --with-libvirt-config --without-libvirt-config --with-pkg-config --without-pkg-config extconf.rb:73:in `<main>': libvirt library not found in default locations (RuntimeError) To see why this extension failed to compile, please check the mkmf.log which can be found here: /home/joel/.vagrant.d/gems/2.6.6/extensions/x86_64-linux/2.6.0/ruby-libvirt-0.7.1/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /home/joel/.vagrant.d/gems/2.6.6/gems/ruby-libvirt-0.7.1 for inspection. Results logged to /home/joel/.vagrant.d/gems/2.6.6/extensions/x86_64-linux/2.6.0/ruby-libvirt-0.7.1/gem_make.out
- 
 Contents of /home/joel/.vagrant.d/gems/2.6.6/extensions/x86_64-linux/2.6.0/ruby-libvirt-0.7.1/mkmf.log"pkg-config --exists libvirt" package configuration for libvirt is not found
- 
 I just install it with apt. I haven't tried this way in a long time. 
- 
 @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: I just install it with apt. I haven't tried this way in a long time. It installed via apt but its not seeing libvirtas an available provider.
- 
 vagrant up --provider=libvirt The provider 'libvirt' could not be found, but was requested to back the machine 'default'. Please use a provider that exists. Vagrant knows about the following providers: docker, virtualbox, hyperv
- 
 Did you do both vagrant and libvirt-vagrant through apt? 
- 
 @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: Did you do both vagrant and libvirt-vagrant through apt? yes 
- 
 @IRJ said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: Did you do both vagrant and libvirt-vagrant through apt? yes Ok I'll look at my laptop when I get back. 
- 
 Do you have a /usr/share/vagrant-plugins/plugins.d/vagrant-libvirt.json file? 
- 
 @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: Do you have a /usr/share/vagrant-plugins/plugins.d/vagrant-libvirt.json file? Yes { "vagrant-libvirt": { "ruby_version":"2.5.1", "vagrant_version":"2.0.2", "gem_version":"", "require":"", "sources":[] } }
- 
 what if you do a vagrant plugin list
- 
 @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: vagrant plugin list No plugins installed.
- 
 @IRJ said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: vagrant plugin list No plugins installed.So I'm kind of shooting in the dark. Is there a plugins directory under ~/.vagrant.d/? If there is what happens if you delete it? 
- 
 @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: @IRJ said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: vagrant plugin list No plugins installed.So I'm kind of shooting in the dark. Is there a plugins directory under ~/.vagrant.d/? If there is what happens if you delete it? ~/.vagrant.d$ ls boxes data gems insecure_private_key rgloader setup_version tmp
- 
 So no plugins directory 
- 
 joel@systemname:~/.vagrant.d$ sudo apt install vagrant-libvirt [sudo] password for joel: Reading package lists... Done Building dependency tree Reading state information... Done vagrant-libvirt is already the newest version (0.0.45-2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
- 
 @IRJ said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: joel@systemname:~/.vagrant.d$ sudo apt install vagrant-libvirt [sudo] password for joel: Reading package lists... Done Building dependency tree Reading state information... Done vagrant-libvirt is already the newest version (0.0.45-2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.What if you do a reinstall? apt --reinstall vagrant-libvirt? 
- 
 @IRJ said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: Do you have a /usr/share/vagrant-plugins/plugins.d/vagrant-libvirt.json file? Yes { "vagrant-libvirt": { "ruby_version":"2.5.1", "vagrant_version":"2.0.2", "gem_version":"", "require":"", "sources":[] } }Isn't 2.0.2 old as dirt? 2.2.9 is the current version. 
- 
 @Pete-S said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: @IRJ said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: Do you have a /usr/share/vagrant-plugins/plugins.d/vagrant-libvirt.json file? Yes { "vagrant-libvirt": { "ruby_version":"2.5.1", "vagrant_version":"2.0.2", "gem_version":"", "require":"", "sources":[] } }Isn't 2.0.2 old as dirt? 2.2.9 is the current version. I have 2.2.9 installed. Not sure why the config mentions that version 
- 
 @stacksofplates said in Issues installing vagrant-libvirt plugin on Ubuntu 20.04: apt --reinstall vagrant-libvirt Reinstall supposedly worked, but still not seeing plugin 

