⚙️ Setup Virt Manager for Void Linux

🔧 Installation

sudo xbps-install -S virt-manager libvirt qemu openbsd-netcat dnsmasq vde2 bridge-utils

🔧 Setup

sudo usermod -aG kvm <username>
modprobe kvm-<your CPU>    # For AMD use `kvm-amd` and for Intel `kvm-intel`
sudo usermod -a -G libvirt <username>

🔧 Configuration

1. Edit libvirt configuration

sudo vim /etc/libvirt/libvirtd.conf

2. Edit default URI for libvirt

sudo vim /etc/libvirt/libvirt.conf

3. Configure QEMU user permissions

sudo vim /etc/libvirt/qemu.conf

🚀 Enable Services

sudo ln -s /etc/sv/libvirtd /var/service/
sudo ln -s /etc/sv/virtlogd /var/service/
sudo reboot
Note: If you have dhcpcd for networking and want to use SSH, you need to switch to NetworkManager.

Switch to NetworkManager

sudo xbps-install -S NetworkManager
sudo sv down dhcpcd
sudo rm /var/service/dhcpcd
sudo ln -s /etc/sv/NetworkManager /var/service/
sudo ln -s /etc/sv/dbus /var/service/
sudo reboot

🎉 Finish

Et voilà – you've successfully set up Virt Manager on Void Linux!