KVM01-KVM安装
centos
1.检测CPU是否支持虚拟化
egrep -o 'vmx|svm' /proc/cpuinfo
出现vmx表示支持
2.安装KVM相关软件
yum install libvirt virt-install qemu-kvm -y
systemctl start libvirtd && systemctl enable libvirtd && systemctl status libvirtd
依赖 | 作用 |
---|---|
libvirt | 用于创建虚拟机 |
virt-install | 虚拟机拷贝 |
qemu-kvm | 管理虚拟机磁盘 |
ubuntu-22
1.检测CPU是否支持虚拟化-同centos
2.安装KVM相关软件
sudo apt-get -y install qemu-kvm
sudo apt-get -y install qemu
sudo apt-get -y install qemu-system
sudo apt-get -y install libvirt-daemon-system
sudo apt-get -y install libvirt-clients
sudo apt-get -y install bridge-utils
sudo apt-get -y install virt-manager
sudo apt-get -y install virt-viewer