KVM无法创建快照解决

简介: KVM无法创建快照解决

报错:

[root@qfedu.com ~]# virsh snapshot-create-as vm8 vm8.snap
error: unsupported configuration: internal snapshot for disk vda
unsupported for storage type raw

原因:

       raw格式,不支持创建快照,需要做格式转换


扩充:


qcow2 现在⽐较主流的⼀种虚拟化镜像格式,经过⼀代的优化,⽬前qcow2的性能上接近raw裸格式的性能, 这个也算是redhat的官⽅渠道了


对于qcow2的格式,⼏点还是⽐较突出的,qcow2的snapshot,可以在镜像上做N多个快照:


•更⼩的存储空间


•Copy-on-write support


•⽀持多个snapshot,对历史snapshot进⾏管理


•⽀持zlib的磁盘压缩


•⽀持AES的加密


解决:


1.查看镜像文件格式:

[root@qfedu.com ~]# qemu-img info /var/lib/libvirt/images/vm8.img
image: /var/lib/libvirt/images/vm8.img
file format: raw
virtual size: 10G (10737418240 bytes)
disk size: 10G

2.格式转换

把raw格式转换成qcow2格式

[root@qfedu.com ~]# qemu-img convert -f raw -O qcow2
/var/lib/libvirt/images/vm8.img /var/lib/libvirt/images/vm8_qcow2.img
目录
相关文章
|
11月前
|
KVM 虚拟化
KVM管理克隆+快照管理命令
KVM管理克隆+快照管理命令
75 0
|
Linux 虚拟化 Windows
【Linux基础篇一】如何使用虚拟机对其进行克隆、快照、迁移和删除
【Linux基础篇一】如何使用虚拟机对其进行克隆、快照、迁移和删除
【Linux基础篇一】如何使用虚拟机对其进行克隆、快照、迁移和删除