08 Sep 2020, 10:01am TZ +05:30
KVM is an inherently better way to work with Virtual Machines. It sands for Kernel Virtual Machine.
After many tries, I finally managed to get it right.
All Thanks to this video : https://www.youtube.com/watch?v=itZf5FpDcV0
Let’s Look at what steps I followed.
1. Get the Dependencies right #
sudo pacman -S qemu qemu-arch-extra virt-manager ovmf bridge-utils dnsmasq vde2 bridge-utils \ openbsd-netcat ebtables iptables
ovmfis required for UEFI and Secure Boot setups.
2. Start the Service #
# Enable Auto-Start of the Service sudo systemctl enable libvirtd.service # Start the Service Right now sudo systemctl start libvirtd.service
In case you wish to see if the
libvirtd.servicehas actually started or not:
sudo systemctl status libvirtd.service
3. Configure the KVM #
/etc/libvirt/libvirtd.conf for editing
sudo nano -cl /etc/libvirt/libvirtd.conf
nanowould help you see line numbers and how many lines are actually remaining.
Here are the Lines to Edit:
- Uncomment the line 81 or so:
unix_sock_group = "libvirt"
- Uncomment the line 98 or so:
unix_sock_rw_perms = "0770"
Make sure to save the file before you exit.
4. Permissions for Current User #
In-order to be able to use the
virt-manager as normal user,
we need to add the user to the
sudo usermod -a -G libvirt $(whoami)
Reboot the PC or Computer after changing the options.
5. Reboot #
Yes, for all this to take effect we need to reboot the computer.
Wish you All the Best #
Hope this would helpful to get you stared on KVM using QEMU and
virt-manager as the front-end.
As always, I look forward to your suggestion and comments. DM me on Twitter .
Even Better Expanation https://ermannoferrari.net/kvm-on-arch-linux
Video Explaining the Install Process https://www.youtube.com/watch?v=t-VpMbWzPZI
Arch WiKi explaining the things to have QEMU Install working correctly https://wiki.archlinux.org/index.php/QEMU#Installation