You are not logged in.

#1 2021-03-26 03:16:55

goro9922
Member
Registered: 2019-04-12
Posts: 45

Unable to install libvirt plugin for Vagrant

I just came across this article for running Vagrant with kvm

https://www.devopsroles.com/vagrant-usi … m-provider

I've adapted the commands for ArchLinux. The problem is I'm unable to install the libvirt plugin for Vagrant.

```
$ vagrant plugin install vagrant-libvirt
Installing the 'vagrant-libvirt' plugin. This can take a few minutes...
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:

$ vagrant plugin install vagrant-libvirt
Installing the 'vagrant-libvirt' plugin. This can take a few minutes...
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:

conflicting dependencies net-ssh (>= 2.6.5) and net-ssh (= 6.2.0.rc1)
  Activated net-ssh-6.2.0.rc1
  which does not match conflicting dependency (>= 2.6.5)

  Conflicting dependency chains:
    net-ssh (= 6.2.0.rc1), 6.2.0.rc1 activated

  versus:
    net-scp (= 1.2.1), 1.2.1 activated, depends on
    net-ssh (>= 2.6.5)

  Gems matching net-ssh (>= 2.6.5):
    net-ssh-6.2.0.rc1

I've tried installing vagrant-libvirt from AUR, but the KVM can't startup using libvirt plugin.

$ 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, hyperv, virtualbox

Last edited by goro9922 (2021-03-26 03:17:52)

Offline

#2 2021-03-26 03:42:01

loqs
Member
Registered: 2014-03-06
Posts: 19,016

Re: Unable to install libvirt plugin for Vagrant

Looks like https://github.com/hashicorp/vagrant/issues/12202 which should be fixed in vagrant-git or you apply https://github.com/hashicorp/vagrant/pu … 25b18c3949 to vagrant.

Offline

#3 2021-03-26 06:25:17

goro9922
Member
Registered: 2019-04-12
Posts: 45

Re: Unable to install libvirt plugin for Vagrant

Thanks for your feedback! It looks like vagrant-git is out of date and vagrant in main doesn't have the fix yet because vagrant hasn't had a new release to incorporate the changes. Still deciding whether to try to patch it myself or just wait.

Offline

#4 2021-03-26 11:49:36

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,352

Re: Unable to install libvirt plugin for Vagrant

VCS packages in AUR always install the very latest commits upon building but the PKGBUILD is only updated when there are build issues.

An example is https://aur.archlinux.org/packages/libdrm-git/ .

I build it frequently (last time was on march 4 this year)  but it hasn't needed changes for a year now.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB