⚙️ Setup Virt Manager for Artix Linux

🔧 Installation

sudo pacman -S virt-manager libvirt-dinit qemu dnsmasq-dinit bridge-utils openbsd-netcat vde2

Note: Please ensure that you replace 'Dinit' with the specific init system you are using, as this step is essential for proper configuration and functionality.

🔧 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 default URI for libvirt

sudo vim /etc/libvirt/libvirt.conf

2. Configure QEMU user permissions

sudo vim /etc/libvirt/qemu.conf

🚀 Enable Services

sudo dinitctl enable libvirtd
sudo reboot

Note: After rebooting, you can start by creating the VM using the plus button. However, before that, you need to check the box to start the virtual network on boot.

Go to the menu bar and click on Edit → Connection Details. A window will open; go to Virtual Networks and check the box for Autostart.

🎉 Finish



Et voilà