I can't get vagrant working with libvirt.
I first used the distro packages, but it produced the same error you see in my description below. Then I removed every distro vagrant package and installed the packages provided by 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
then I installed the libvirt-vagrant plugin:
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)'!
However the vagrant up --provider=libvirt still fails:
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
Any ideas?