ubuntu 安装与使用 kvm 虚拟机

1. ubuntu 安装与使用 kvm 虚拟机

1.1. Check KVM Compatibility With Your System

1.1.1. 使用命令行

egrep -c '(vmx|svm)' /proc/cpuinfo

From the above output, you can deduce that virtualization is enabled since the result printed is greater than 0. If Virtualization is not enabled, be sure to enable the virtualization feature in your system’s BIOS settings.

1.1.2. 使用工具

$ apt install -y cpu-checker

$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

1.2. 安装 kvm

apt update
apt -y install qemu-kvm libvirt-daemon bridge-utils virtinst libvirt-daemon-system

1.3. 配置网络

1.4. 启动虚拟机

https://www.server-world.info/en/note?os=Ubuntu_22.04&p=kvm&f=2
https://ubuntu.com/blog/kvm-hyphervisor
https://linuxhint.com/install-kvm-ubuntu-22-04/
https://computingforgeeks.com/install-kvm-hypervisor-on-ubuntu-linux/
https://www.linuxtechi.com/how-to-install-kvm-on-ubuntu-22-04/

猜你喜欢

转载自blog.csdn.net/wan212000/article/details/130110806