安装 kvm (ubuntu 20.04)
确认 cpu 支持虚拟化
grep -Eoc '(vmx|svm)' /proc/cpuinfo
如果支持,会输出 >0 的数字,否则就是不支持
确认 cpu 虚拟化功能(VT) 是否有被开启
sudo apt install cpu-checker
vivi@vivi:~$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
安装 kvm
sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virtinst virt-manager
各模块说明
qemu-kvm - software that provides hardware emulation for the KVM hypervisor.
libvirt-daemon-system - configuration files to run the libvirt daemon as a system service.
libvirt-clients - software for managing virtualization platforms.
bridge-utils - a set of command-line tools for configuring ethernet bridges.
virtinst - a set of command-line tools for creating virtual machines.
virt