当试图安装ruby以启用对迷航者的libvirt管理时,安装失败,因为它依赖于当前未安装的库: libvirt。
Libvirt正在工作,我能够手动编译流浪者-libvirt,甚至可以使用virsh启动和配置qemu VM。
主机是VMWare主机,但启用了嵌套虚拟化。虚拟化vmx通过lscpu可见,vmx/ svm功能在/proc/cpuinfo中显示。
Vagrant failed to install the requested plugin because it depends
on a library which is not currently installed on this system. The
following library is required by the 'vagrant-libvirt' plugin:
libvirt
Please install the library and then run the command again.我已经安装了所有的包/ gems https://computingforgeeks.com/use-vagrant-with-libvirt-kvm-on-centos/,并且不知道ruby是如何尝试与libvirt对话的,而这个库可能会丢失。
尝试了RHEL,Centos8 (alma),Debian。
发布于 2022-11-29 20:17:55
发布于 2022-11-30 09:32:50
对于https://GitHub.com/vagrant-libvirt/vagrant-libvirt/issues/1104,问题实际上是一个未定义的库路径。
对于Hashicorp发布的迷航包来说,解决这个问题的真正方法是强制库迁移:
CONFIGURE_ARGS='with-ldflags=-L/opt/vagrant/embedded/lib with-libvirt-include=/usr/include/libvirt with-libvirt-lib=/usr/lib64' GEM_HOME=~/.vagrant.d/gems GEM_PATH=$GEM_HOME:/opt/vagrant/embedded/gems PATH=/opt/vagrant/embedded/bin:$PATH vagrant plugin install vagrant-libvirthttps://stackoverflow.com/questions/74615763
复制相似问题