vagrant-libvirt: Fedora 30 server: version `OPENSSL_1_1_1b' not found
Steps to reproduce
Use Fedora 30 server up-to-datesudo dnf -y install qemu libvirt libvirt-devel ruby-devel gccsudo dnf install -y https://releases.hashicorp.com/vagrant/2.2.5/vagrant_2.2.5_x86_64.rpmCONFIGURE_ARGS='with-ldflags=-L/opt/vagrant/embedded/lib with-libvirt-include=/usr/include/libvirt with-libvirt-lib=/usr/lib' GEM_HOME=~/.vagrant.d/gems GEM_PATH=$GEM_HOME:/opt/vagrant/embedded/gems PATH=/opt/vagrant/embedded/bin:$PATH vagrant plugin install vagrant-libvirtvagrant init centos/7vagrant up --provider=libvirt
Expected behaviour
It should work
Actual behaviour
It crashes
System configuration
OS/Distro version:: Fedora 30 server edition up-to-date
Libvirt version: Libvirt 5.1.0
Output of vagrant version; vagrant plugin list:
vagrant-libvirt (0.0.45, global)
Output of VAGRANT_LOG=debug vagrant up --provider=libvirt
/opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': /opt/vagrant/embedded/lib64/libcrypto.so.1.1: version `OPENSSL_1_1_1b' not found (required by /lib64/libssh.so.4) - /home/testuser/.vagrant.d/gems/2.4.6/gems/ruby-libvirt-0.7.1/lib/_libvirt.so (LoadError)
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/testuser/.vagrant.d/gems/2.4.6/gems/ruby-libvirt-0.7.1/lib/libvirt.rb:11:in `<top (required)>'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/testuser/.vagrant.d/gems/2.4.6/gems/fog-libvirt-0.6.0/lib/fog/libvirt.rb:4:in `<top (required)>'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/testuser/.vagrant.d/gems/2.4.6/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/driver.rb:1:in `<top (required)>'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/testuser/.vagrant.d/gems/2.4.6/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/provider.rb:29:in `driver'
from /home/testuser/.vagrant.d/gems/2.4.6/gems/vagrant-libvirt-0.0.45/lib/vagrant-libvirt/provider.rb:101:in `state'
from /opt/vagrant/embedded/gems/2.2.5/gems/vagrant-2.2.5/lib/vagrant/machine.rb:532:in `state'
from /opt/vagrant/embedded/gems/2.2.5/gems/vagrant-2.2.5/lib/vagrant/machine.rb:146:in `initialize'
from /opt/vagrant/embedded/gems/2.2.5/gems/vagrant-2.2.5/lib/vagrant/vagrantfile.rb:81:in `new'
from /opt/vagrant/embedded/gems/2.2.5/gems/vagrant-2.2.5/lib/vagrant/vagrantfile.rb:81:in `machine'
from /opt/vagrant/embedded/gems/2.2.5/gems/vagrant-2.2.5/lib/vagrant/environment.rb:715:in `machine'
from /opt/vagrant/embedded/gems/2.2.5/gems/vagrant-2.2.5/lib/vagrant/plugin/v2/command.rb:180:in `block in with_target_vms'
from /opt/vagrant/embedded/gems/2.2.5/gems/vagrant-2.2.5/lib/vagrant/plugin/v2/command.rb:204:in `block in with_target_vms'
from /opt/vagrant/embedded/gems/2.2.5/gems/vagrant-2.2.5/lib/vagrant/plugin/v2/command.rb:186:in `each'
from /opt/vagrant/embedded/gems/2.2.5/gems/vagrant-2.2.5/lib/vagrant/plugin/v2/command.rb:186:in `with_target_vms'
from /opt/vagrant/embedded/gems/2.2.5/gems/vagrant-2.2.5/plugins/commands/up/command.rb:87:in `execute'
from /opt/vagrant/embedded/gems/2.2.5/gems/vagrant-2.2.5/lib/vagrant/cli.rb:66:in `execute'
from /opt/vagrant/embedded/gems/2.2.5/gems/vagrant-2.2.5/lib/vagrant/environment.rb:290:in `cli'
from /opt/vagrant/embedded/gems/2.2.5/gems/vagrant-2.2.5/bin/vagrant:182:in `<main>`
A Vagrantfile to reproduce the issue:
vagrant init centos/7
Are you using upstream vagrant package or your distros package? Vagrant is upstream Libvirt is distro
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 38 (13 by maintainers)
This workaround worked for me
@ikke-t I got it running on Oracle Linux 8 using @JamesReynolds workaround from https://github.com/hashicorp/vagrant/issues/11020#issuecomment-540043472
My build script:
Just for your info.
Current
vagrantversion is shipped with Fedora 31. Also thevagrant-libvirtis shipped as a package and seems to work ootb. Manual setup as described in theREADMEis currently not neccessary.Temporal workaround:
Remove HashiCorp package: sudo dnf remove vagrant
Install Fedora vagrant package: sudo dnf install vagrant
Remove vagrant-libvirt package from Fedora: sudo dnf remove vagrant-libvirt sudo dnf remove rubygem-fog-core (conflict with plugin building)
Build the upstream vagrant-libvirt: vagrant plugin install vagrant-libvirt
A workaround - the Fedora team just release vagrant 2.2.5. I did a clean install of vagrant using the Fedora version of 2.2.5. This will, by default, also install the Fedora package for vagrant-libvirt as a weak dependency. This combination will now start VMs that were previously throwing the error that is the focus of this thread.
I found, however, that several plugins I use as part of my workflow would not install (e.g. vagrant-bolt). As a second workaround, I uninstalled the vagrant-libvirt Fedora rpm, and installed the vagrant-libvirt plugin using the instructions from this project. I can now also install additional plugins.
Brad