我不能让流浪汉和利布维特一起工作。
我首先使用发行版包,但它产生了您在下面的描述中看到的相同的错误。然后,我删除了每个发行版迷途包,并安装了hashicorp提供的包:
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-迷走性插件:
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仍然失败:
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有什么想法吗?
发布于 2021-11-22 01:45:11
因此,我在一个新的VM上尝试了这个过程,但以下是我遵循的步骤(在我的测试中,我觉得libvirt存储非常慢,是因为我的硬件还是预期的?)
我遵循的步骤
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的错误,我希望它与您的查询无关。
希望能帮上忙。
转介:
https://unix.stackexchange.com/questions/678543
复制相似问题