Add user to ''libvirt,'' ''libvirt-qemu'' and ''kvm'' groups to use the '''system'''-level virtual machines (qemu:///system).
Add user to ''libvirt'' group to use the '''system'''-level virtual machines (qemu:///system)
{{UserCmd|command=sudo usermod -a -G libvirt,libvirt-qemu,kvm $USER}}
sudo usermod -a -G libvirt $USER
Note that you will need to restart userspace for the groups to become active. To restart userspace
{{UserCmd|command=systemctl soft-reboot}}
{{note|
{{note|
# You don't need this step to run system-level virtual machines. However, virt-manager will prompt for sudoer's password when launch if the user is not in the ''libvirt'' group
# You don't need this step to run system-level virtual machines. However, virt-manager will prompt for sudoer's password when launch if the user is not in the ''libvirt'' group
# You can also create '''user'''-level virtual machines (qemu:///session) and use without sudoer's privelige. However, some features such as [https://libvirt.org/kbase/virtiofs.html VirtioFS file sharing] may be unavailable in qemu:///session}}
# You can also create '''user'''-level virtual machines (qemu:///session) and use without sudoer's privelige. However, some features such as [https://libvirt.org/kbase/virtiofs.html VirtioFS file sharing] may be unavailable in qemu:///session}}
Latest revision as of 15:48, 1 November 2024
Install virt-manager, qemu and all dependencies
From terminal:
user $ sudo pacman -S --needed virt-manager qemu-desktop libvirt edk2-ovmf dnsmasq iptables-nft COPY TO CLIPBOARD
For TPM support:
user $ sudo pacman -S --asdeps swtpm COPY TO CLIPBOARD
Enable and start service
user $ sudo systemctl enable libvirtd.service COPY TO CLIPBOARD
Add user to libvirt,libvirt-qemu and kvm groups to use the system-level virtual machines (qemu:///system).
user $ sudo usermod -a -G libvirt,libvirt-qemu,kvm $USER COPY TO CLIPBOARD
Note that you will need to restart userspace for the groups to become active. To restart userspace
user $ systemctl soft-reboot COPY TO CLIPBOARD
Note
You don't need this step to run system-level virtual machines. However, virt-manager will prompt for sudoer's password when launch if the user is not in the libvirt group
You can also create user-level virtual machines (qemu:///session) and use without sudoer's privelige. However, some features such as VirtioFS file sharing may be unavailable in qemu:///session
Cookies help us deliver our services. By using our services, you agree to our use of cookies.