Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save David7ce/1e96272e52822ac67690e562e7635abf to your computer and use it in GitHub Desktop.
Save David7ce/1e96272e52822ac67690e562e7635abf to your computer and use it in GitHub Desktop.
KVM_QEMU_Virt_Manager_installation_on_Arch_Linux

Author: Keyitdev
Source: Keyitdev/notes
Last edited on: 9 Sep 2023

KVM, QEMU and Virt Manager installation on Arch Linux

Install packages

sudo pacman -S qemu-full virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat dmidecode
sudo pacman -S ebtables iptables

Enable the libvirtd service

sudo systemctl start libvirtd.service
sudo systemctl enable libvirtd.service

Configure the libvirtd service

Uncomment unix_sock_group = "libvirt" and unix_sock_rw_perms = "0770" in /etc/libvirt/libvirtd.conf.

sudo sed -i 's/^#unix_sock_group = "libvirt"/unix_sock_group = "libvirt"/' /etc/libvirt/libvirtd.conf
sudo sed -i 's/^#unix_sock_rw_perms = "0770"/unix_sock_rw_perms = "0770"/' /etc/libvirt/libvirtd.conf

Add user to libvirt group

sudo usermod -aG libvirt $(whoami)

Restart the libvirtd service

sudo systemctl restart libvirtd.service

Start virtual network

Run this command every time you use a virtual machine that uses the Internet.

sudo virsh net-start default

Sources

https://computingforgeeks.com/install-kvm-qemu-virt-manager-arch-manjar/

https://www.makeuseof.com/how-to-install-arch-linux-kvm-configure-virtual-machine/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment