Issues installing vagrant-libvirt plugin on Ubuntu 20.04
-
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
libvirt
as 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
-
Got it working. Apparently I missed this step
apt-get install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev