vagrantはインストールされたlibvirtプラグインを見つけることができません(ホストUbuntu 20.04.3 LTS)。

vagrantはインストールされたlibvirtプラグインを見つけることができません(ホストUbuntu 20.04.3 LTS)。

私はlibvirtを使用するために放浪者を取得することはできません。

最初にdistroパッケージを使用しましたが、以下の説明に示されているのと同じエラーが発生しました。その後、すべての配布放浪パッケージを削除し、hashcorpが提供するパッケージをインストールしました。

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プラグインをインストールしました。

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

どんなアイデアがありますか?

ベストアンサー1

だから私は新しい仮想マシンでこのプロセスを試しましたが、私が従ったステップは次のとおりです。 (テストで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

さて、私はこのすべての作業をクラウド仮想マシンで実行していますが、実行中にエラーが発生します。あたかもError while creating domain: Error saving the server: Call to virDomainDefineXML failed: End of file while reading data: Input/output errorあなたのクエリとは関係がないことを願っています。

お役に立てば幸いです。

引用:

おすすめ記事