Vagrant 2.3.4 fails to work with libvirt

I cannot start a virtual machine with libvirt. Any help/direction is greatly appreciated. The following are the steps I took to setup vagrant with libvirt.

I’m using Ubuntu 22.04.2 jammy

I have installed the necessary kvm related files in order to work with vagrant.

$ uname -a
Linux myhost 5.19.0-41-generic #42~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

$ sudo apt-get install libvirt-daemon libvirt-clients virt-manager python3-libvirt vagrant vagrant-libvirt
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-libvirt is already the newest version (8.0.0-1build1).
vagrant-libvirt is already the newest version (0.7.0-1).
virt-manager is already the newest version (1:4.0.0-1).
libvirt-clients is already the newest version (8.0.0-1ubuntu7.4).
libvirt-daemon is already the newest version (8.0.0-1ubuntu7.4).
vagrant is already the newest version (2.3.4).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

The vagrant I installed is the latest from Install | Vagrant | HashiCorp Developer

$ vagrant --version
Vagrant 2.3.4

$ mkdir vagrant_dir
$ cd vagrant_dir

$ vagrant init alvistack/ubuntu-23.04
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`` for more information on using Vagrant.

-modified Vagrantfile …

Vagrant.configure(“2”) do |config| = “alvistack/ubuntu-23.04”
config.vm.provider :libvirt do |v|
v.memory = “1024”

$ vagrant box add alvistack/ubuntu-23.04 --provider=libvirt
==> box: Loading metadata for box 'alvistack/ubuntu-23.04'
    box: URL:
==> box: Adding box 'alvistack/ubuntu-23.04' (v20230514.1.2) for provider: libvirt
    box: Downloading:
    box: Calculating and comparing box checksum...
==> box: Successfully added box 'alvistack/ubuntu-23.04' (v20230514.1.2) for 'libvirt'!

$ vagrant global-status
id       name   provider state  directory                           
There are no active Vagrant environments on this computer! Or,
you haven't destroyed and recreated Vagrant environments that were
started with an older version of Vagrant.

$ vagrant up
No usable default provider could be found for your system.

Vagrant relies on interactions with 3rd party systems, known as
"providers", to provide Vagrant with resources to run development
environments. Examples are VirtualBox, VMware, Hyper-V.

The easiest solution to this message is to install VirtualBox, which
is available for free on all major platforms.

If you believe you already have a provider available, make sure it
is properly installed and configured. You can see more details about
why a particular provider isn't working by forcing usage with
`vagrant up --provider=PROVIDER`, which should give you a more specific
error message for that particular provider.

$ vagrant up --provider=libvirt
The provider 'libvirt' could not be found, but was requested to
back the machine 'default'. Please use a provider that exists.

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

Hi there,

Vagrant plugins should be installed via the vagrant plugin command. Running:

vagrant plugin install vagrant-libvirt

will properly install the plugin for Vagrant to use.