sudo pacman -S --needed qemu-desktop
sudo pacman -S --needed qemu-full
More about QEMU
sudo pacman -S --needed virt-manager qemu-desktop libvirt edk2-ovmf dnsmasq iptables-nft libguestfs
sudo systemctl enable --now libvirtd.service
sudo nano /etc/libvirt/libvirtd.conf
...
unix_sock_group = 'libvirt'
...
unix_sock_rw_perms = '0770'
...
sudo usermod -a -G libvirt $(whoami)
newgrp libvirt
sudo systemctl restart libvirtd.service
Add your user to /etc/libvirt/qemu.conf
. Otherwise, QEMU will give a permission denied error when trying to access local drives.
Search for user = "libvirt-qemu"
or group = "libvirt-qemu"
, uncomment both entries and change libvirt-qemu
to your user name or ID. Once edited it should look something like below.
You can get your user by this command
echo $USER
orwhoami
, if you want to get user ID use this commandid -u
.
sudo nano /etc/libvirt/qemu.conf
# Some examples of valid values are:
#
# user = "qemu" # A user named "qemu"
# user = "+0" # Super user (uid=0)
# user = "100" # A user named "100" or a user with uid=100
#
user = "username"
# The group for QEMU processes run by the system instance. It can be
# specified in a similar way to user.
group = "username"