Skip to main content

Installing Required Packages

Let's install the essential packages. Each of these plays a key role in getting virtualization up and running smoothly.

We'll be using virt-manager, which provides a user-friendly interface for managing virtual machines. qemu is a robust emulator that handles hardware virtualization.

Core Virtualization Packages

PackageDescription
virt-managerA desktop user interface for managing virtual machines
qemu-baseA basic QEMU setup for headless environments
vde2Virtual Distributed Ethernet for emulators like QEMU
iptables-nftA Linux kernel packet control tool, using the nft interface
nftablesUserspace tools for Netfilter tables
dnsmasqA lightweight, easy-to-configure DNS forwarder and DHCP server
bridge-utilsUtilities for configuring the Linux Ethernet bridge
edk2-ovmfFirmware for Virtual Machines (x86_64, i686)
dmidecodeUtilities for Desktop Management Interface tables

To install these packages, run the following command in your terminal:

Install Core Packages
sudo pacman -S virt-manager qemu-base vde2 iptables-nft nftables dnsmasq bridge-utils edk2-ovmf dmidecode

Additional QEMU Packages

I've noticed that the qemu package names have changed over time. Previously, installing qemu was straightforward, but now it's split into several packages. Although the names have changed, the package manager should automatically handle these updates for you.

To ensure we cover all the requirements, you should also install the following packages:

PackagePurpose
qemu-hw-display-qxlQXL display support
qemu-hw-display-virtio-vgaVirtIO VGA display support
qemu-hw-usb-redirectUSB redirection support
qemu-audio-spiceSPICE audio support
qemu-hw-usb-hostUSB host device support
qemu-chardev-spiceSPICE character device support
Install Additional QEMU Packages
sudo pacman -S qemu-hw-display-qxl qemu-hw-display-virtio-vga qemu-hw-usb-redirect qemu-audio-spice qemu-hw-usb-host qemu-chardev-spice

These packages provide support for display QXL, VGA, USB redirection, audio spice and spicevmc. Without these, you might encounter errors or find that some functions don't work properly.