sudo xbps-install -S virt-manager libvirt qemu openbsd-netcat dnsmasq vde2 bridge-utils
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>
sudo vim /etc/libvirt/libvirtd.conf
listen_tls = 0
unix_sock_group = "libvirt"
unix_sock_ro_perms = "0777"
unix_sock_rw_perms = "0770"
unix_sock_dir = "/run/libvirt"
auto_unix_ro = "polkit" → auto_unix_ro = "none"
auto_unix_rw = "polkit" → auto_unix_rw = "none"
sudo vim /etc/libvirt/libvirt.conf
uri_default = "qemu:///system"
sudo vim /etc/libvirt/qemu.conf
user = "your username"
group = "libvirt"
sudo ln -s /etc/sv/libvirtd /var/service/
sudo ln -s /etc/sv/virtlogd /var/service/
sudo reboot
dhcpcd
for networking and want to use SSH, you need to 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
Et voilà – you've successfully set up Virt Manager on Void Linux!