1.创建文件夹 /opt/image
mkdir /opt/image
2.使用qemu-img create命令创建10G的虚拟机硬盘
qemu-img create -f qcow2 /opt/image/centos7.qocw2 10g
3.查看镜像信息
du -h /opt/image/centos7.qocw2
qemu-img info /opt/image/centos7.qocw2
1.创建文件夹 /opt/image
mkdir /opt/image
2.使用qemu-img create命令创建10G的虚拟机硬盘
qemu-img create -f qcow2 /opt/image/centos7.qocw2 10g
3.查看镜像信息
du -h /opt/image/centos7.qocw2
qemu-img info /opt/image/centos7.qocw2