KVM磁盘格式转换,raw转qcow2
警告
本文最后更新于 2020-05-30 17:09,文中内容可能已过时。
1.关机
virsh shutdown web01 virsh destroy web01
2.转换磁盘文件格式
qemu-img convert -f raw -O qcow2 /data/web01.raw /data/web01.qcow2
3.修改配置文件的磁盘类型和磁盘路径
virsh edit web01

4.开机
virsh start web01
请我喝杯水

