1.环境
win10系统上 -》 通过vmware装 -》 CentOS 7.4 -》装qemu虚拟出一台指定cpu的CentOS 7.9
2.安装基本命令
yum install -y net-tools
yum install -y wget
3.安装基础依赖
yum groupinstall 'Development Tools' -y
yum groupinstall "Virtualization Host" -y
yum install -y kvm qemu virt-viewer virt-manager libvirt libvirt-python python-virtinst
yum install libguestfs-tools -y
yum install virt-install.noarch -y
systemctl enable libvirtd
systemctl start libvirtd
usermod -aG libvirt $(whoami)
yum install virt-install virt-viewer virt-manager -y
4.修改qemu配置文件
vi /etc/libvirt/qemu.conf
将如下两行的注释去掉
这里需要装完以上执行重启一次Centos 7.4虚拟机
reboot
5.下载qemu
cd /opt/qemu/
wget --no-check-certificate https://download.qemu.org/qem