Introduction
This document describes how to install QEMU-KVM virtualization on a Kunpeng server running openEuler 22.03 and how to create a VM.
KVM is a
KVM implements CPU and memory virtualization, but it cannot simulate other devices. A tool running in the user space is required to implement complete virtualization. KVM developers choose the virtualization software QEMU as the tool which is common and open source, and improve it so it can simulate I/O devices (such as NICs and drives). Therefore, QEMU-KVM becomes a solution of complete virtualization.
In QEMU-KVM, KVM runs in the kernel space. QEMU runs in the user space and simulates the creation and management of virtual hardware. Invoking the /dev/kvm interface through ioctl, QEMU integrates KVM and enables some CPU instructions to be executed by kernel modules. KVM implements the CPU and memory virtualization, and QEMU simulates I/O devices (such as drives, NICs, and graphics cards). In this way, KVM and QEMU together implement server virtualization.