需要安装的软件
yum install -y qemu-kvm virt-manager libvirt AAVMF.noarch
建立磁盘
qemu-img create -f qcow2 tiantao.qcow2 30G
可能需要修改/etc/libvirt/qemu.conf
# Some examples of valid values are:
#
# user = "qemu" # A user named "qemu"
# user = "+0" # Super user (uid=0)
# user = "100" # A user named "100" or a user with uid=100
#
user = "root"
# The group for QEMU processes run by the system instance. It can be
# specified in a similar way to user.
group = "root"
通过iso 安装虚拟机
virt-install --name debian1.0 --ram 20480 --vcpu=16 --location=/root/debian-1.0.iso --disk path=tao.qcow2