Prereqs:
sudo apt update
sudo apt install \
build-essential \
gpg \
lsb-release \
wgetInstall libvirt-related prereqs:
sudo apt install virt-manager libvirt-devAdd self to libvirt group:
sudo gpasswd -a $USER libvirt ; newgrp libvirtAdd HashiCorp repo:
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.listInstall vagrant and plugins:
sudo apt update
sudo apt install vagrant
vagrant plugin install vagrant-libvirtPrepare a Vagrant directory:
mkdir vagrant-bullseye
cd vagrant-bullseye
vagrant init debian/bullseye64Install rsync:
sudo apt install rsyncEnable rsync (and disable NFS, which isn’t supported within LXD) for Vagrant by editing the Vagrantfile to include:
config.nfs.verify_installed = false
config.vm.synced_folder '.', '/vagrant', type: 'rsync'
Start the VM:
vagrant upLog in:
vagrant ssh