首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >流浪者找不到已安装的libvirt插件(主机Ubuntu20.04.3LTS)

流浪者找不到已安装的libvirt插件(主机Ubuntu20.04.3LTS)
EN

Unix & Linux用户
提问于 2021-11-22 00:58:10
回答 1查看 1.9K关注 0票数 2

我不能让流浪汉和利布维特一起工作。

我首先使用发行版包,但它产生了您在下面的描述中看到的相同的错误。然后,我删除了每个发行版迷途包,并安装了hashicorp提供的包:

代码语言:javascript
复制
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install vagrant

然后我安装了libvirt-迷走性插件:

代码语言:javascript
复制
vagrant plugin install vagrant-libvirt
Installing the 'vagrant-libvirt' plugin. This can take a few minutes...
Fetching formatador-0.3.0.gem
Fetching fog-core-2.2.4.gem
Fetching fog-json-1.2.0.gem
Fetching nokogiri-1.12.5-x86_64-linux.gem
Fetching fog-xml-0.1.4.gem
Fetching ruby-libvirt-0.8.0.gem
Building native extensions. This could take a while...
Fetching fog-libvirt-0.9.0.gem
Fetching vagrant-libvirt-0.7.0.gem
Installed the plugin 'vagrant-libvirt (0.7.0)'!

然而,vagrant up --provider=libvirt仍然失败:

代码语言:javascript
复制
The provider 'libvirt' could not be found, but was requested to
back the machine 'debian11'. Please use a provider that exists.

Vagrant knows about the following providers: virtualbox, hyperv, docker

有什么想法吗?

EN

回答 1

Unix & Linux用户

发布于 2021-11-22 01:45:11

因此,我在一个新的VM上尝试了这个过程,但以下是我遵循的步骤(在我的测试中,我觉得libvirt存储非常慢,是因为我的硬件还是预期的?)

我遵循的步骤

代码语言:javascript
复制
 curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
 sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
 sudo apt-get update && sudo apt-get install vagrant

 apt install vagrant-libvirt
 apt-get build-dep vagrant ruby-libvirt
 apt-get install qemu libvirt-daemon-system libvirt-clients ebtables dnsmasq-base
 apt-get install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev
 apt-get install libguestfs-tools
 vagrant plugin install vagrant-libvirt
 
 vagrant init fedora/32-cloud-base
 vagrant up --provider=libvirt

嗯,我是在云VM中完成这些操作的,在运行过程中,我发现了一些类似于Error while creating domain: Error saving the server: Call to virDomainDefineXML failed: End of file while reading data: Input/output error的错误,我希望它与您的查询无关。

希望能帮上忙。

转介:

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/678543

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档