Installing QEMU / KVM on Ubuntu¶
Checking Prerequisites¶
Check if CPU supports virtualization¶
:::info if the out put is
Virtualization type: fullthen CPU supports virtualization.Virtualization: AMD-VorVirtualization: VT-xthen CPU supports Virtualization also enabled :::
Confirming CPU Virtualization enabled in BIOS¶
:::info If output is 0 then CPU virtualization is disabled or not supported :::
Checking if KVM modules are loaded¶
:::info If KVM modules are loaded the system starts acting as Hypervisor
If not loaded then performance is slow because of software emulation :::
Manually loading KVM modules¶
for intel CPU¶
for AMD CPU¶
:::info To get more information of kvm module
:::Installing QEMU/KVM¶
sudo apt install \
qemu-kvm \
qemu-system-x86 \
qemu-utils \
libvirt-daemon-system \
bridge-utils \
libvirt-clients \
virtinst \
qemu-utils \
virt-manager \
virt-viewer \
ovmf \
swtpm \
guestfs-tools \
libosinfo-bin
Explanation of the Packages Installed¶
| Package | RHEL / CentOS / Rocky | Debian / Ubuntu |
|---|---|---|
qemu-kvm | qemu-system-x86 | |
libvirt | libvirt-daemon-system | |
virt-install | virtinst | |