New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install vagrant-libvirt on Ubuntu 22.04 (Jammy Jellyfish)
#1498
Comments
|
Did you also run the first line to install all of the build dependencies of vagrant and ruby-libvirt? I see that you've got the following lines covered, but not the above: Also if that doesn't solve you're problem, when you perform the plugin install with debug enabled it should reference addition log files that capture more details of what went wrong during the install, your existing log contains the following lines, can you attach the mkmf.log and gem_make.log mentioned below: |
|
Thank you for your fast response!
Everything should be available.
Sure. and |
|
Well that is odd to see it can't find the libvirt.pc file for pkg-config. That sounds like a distro bug since you've installed libvirt-dev which should contain the necessary files according to https://packages.ubuntu.com/jammy/amd64/libvirt-dev/filelist Can you run Btw, I'm presuming you are x86_64 arch for distro and vagrant package? |
|
I also saw that there's a So I guess that libvirt isn't recognized in general?
Yes. It would be great if at least the Podman solution would be running. Purging and reinstalling didn't help. |
|
If you use the distro package of vagrant-libvirt you'll need to use the distro package of vagrant as well, as the install location won't be picked up by the upstream vagrant. I'm a little rusty on pkg-config, so not sure what verbose or debug options there are, but need to find out why it's not finding them given you have libvirt-dev installed. Can you check if the files actually appear at the location reported by the page listing the files installed by libvirt-dev https://packages.ubuntu.com/jammy/amd64/libvirt-dev/filelist And then check if there are other pkg-config files under the same directory and see if pkg-config will report success if you query for the associated package. I'll have a look at the podman issue shortly, it could be a simple group permission issue or possibly starting the container before the service has created the required sockets to open resulting in the directory being created with the wrong permissions/owner/group |
|
Running trying As I'm using gentoo, the paths will be different, however I would expect that pkg-config should see the libvirt.pc file under |
I would love to but then I'm running into another bug that other users described on StackOverflow.
Okay, I got it. Homebrew is breaking pkgconfig paths: $ pkg-config --variable pc_path pkg-config
/home/linuxbrew/.linuxbrew/lib/pkgconfig:/home/linuxbrew/.linuxbrew/share/pkgconfig:/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/os/linux/pkgconfigWith that information I found an issue on Homebrew that I created on Homebrew in 2017 So I did $ brew remove --ignore-dependencies pkg-configAfterwards paths looked fine again: pkg-config --variable pc_path pkg-config
/usr/local/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfigAfterwards installing I'm sorry for the fuss. If Vagrant would also be installable via homebrew on Linux this wouldn't have happened because I would have installed it via Homebrew then. Thank you for your support. I really appreciate it! |

Describe the bug
This is probably similar to #1403 and #1476: I cannot install the plugin since Vagrant complains that libvirt is missing.
To Reproduce
Steps to reproduce the behaviour:
Using the official Vagrant repo doesn't for 22.04 work and the workaround for installing seem to be using the current deb directory: https://stackoverflow.com/questions/71987581/openssl-3-0-error-when-booting-vagrantbox
But if it is installed this way, installing
vagrant-libvirtdoesn't work:Installed dependencies before with:
Expected behaviour
vagrant-libvirtshould recognizelibvirtinstallationScreenshots
Versions (please complete the following information)::
8.0.0vagrant version]:2.2.19vagrant plugin list]:Debug Log
Attach Output of
VAGRANT_LOG=debug vagrant ... --provider=libvirt >vagrant.log 2>&1vagrant.log
The text was updated successfully, but these errors were encountered: