

It's quite common to use bridges with KVM environments. If you prefer bridging a guest over your Ethernet interface, you need to make a bridge. # cat /etc/modules | grep tun || echo tun > /etc/modules To make the tun module load on boot, use this command: If you want to use the default configuration, you need to load the tun module.Īdd tun to autostart: # echo "tun" > /etc/modules-load.d/tun.conf
#Libvirt qemu apk#
# apk add libvirt-daemon qemu-img qemu-system-x86_64 qemu-modules openrcīy default, libvirt uses NAT for VM connectivity. In versions of Alpine before 3.13.0 these features were covered by QEMU with emulation for x86_64. It also provides the metapackage qemu-modules, which provides subpackages needed for special features. It can also convert images between several formats like vhdx and vmdk. Without qemu-img, only raw disks are available.

The following commands provide libvirt as well as QEMU with emulation for x86_64 and qemu-img, a necessary component for using various disk formats such as qcow2. Libvirt is a management framework that integrates with QEMU/KVM, LXC, Xen and others. QEMU can virtualize x86, PowerPC, and S390 guests, amongst others. QEMU runs from user-space, but can integrate with KVM, providing better performance by leveraging the hardware from kernel-space. Although it is often simply referred to as KVM, the actual hypervisor is QEMU. KVM is an free and open source virtualization solution in a kernel module.
