mkdir -p /root/vimg
mkdir -p /root/iso
cd /root/iso
wget https://mirrors.aliyun.com/centos/7.7.1908/isos/x86_64/CentOS-7-x86_64-DVD-1908.iso
yum install -y kvm qemu-kvm libvirt virt-install bridge-utils
systemctl start libvirtd
systemctl enable libvirtd
qemu-img create -f raw -o size=10G /root/vimg/centos7.raw
virt-install --name=centos7 --vcpus=1 --ram 1024 --disk path=/root/vimg/centos7.raw --cdrom /root/iso/CentOS-7-x86_64-DVD-1908.iso --network bridge=virbr0,model=virtio --vnc --vncport=5910 --vnclisten=0.0.0.0 --accelerate --noautoconsole