虚拟机开启虚拟化VT-x or AMD-v
安装kvm2 参考https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#kvm2-driver
主要步骤如下
- Debian or Ubuntu 18.x:
sudo apt install libvirt-clients libvirt-daemon-system qemu-kvm
- Ubuntu 16.x or older:
sudo apt install libvirt-bin libvirt-daemon-system qemu-kvm
- Fedora/CentOS/RHEL:
sudo yum install libvirt libvirt-daemon-kvm qemu-kvm
- openSUSE/SLES:
sudo zypper install libvirt qemu-kvm
To finish the kvm installation, start and verify the libvirtd
service
sudo systemctl enable libvirtd.service
sudo systemctl start libvirtd.service
sudo systemctl status