KVM创建快照失败 “Operation not supported: internal snapshots of a VM with pflash based firmware are not su

KVM/QEMU创建虚拟机快照时,报如下错误:

Operation not supported: internal snapshots of a VM with pflash based firmware are not supported

KVM创建快照失败 “Operation not supported: internal snapshots of a VM with pflash based firmware are not su

 

解决办法:

  1. 进入宿主机,并切入到root用户

  2. 运行命令“virsh list”,查找虚拟机名称

  3. 运行命令,编辑虚拟机配置文件

    # virsh edit Test_VirtualMachine_NAME

    1)搜索关键字“loader”,定位到需要修改字段所在的行

    2)将字段“type=pflash”修改为“type=rom”,保存":wq!"

    KVM创建快照失败 “Operation not supported: internal snapshots of a VM with pflash based firmware are not su

  4. 关闭虚拟机:

    # virsh shutdown Test_VirtualMachine_NAME

  5. 启动虚拟机:

    # virsh start Test_VirtualMachine_NAME

  6. 查看虚拟机配置文件type,是否已修改为“rom”

    #  virsh dumpxml Test_VirtualMachine_NAME | grep loader

    KVM创建快照失败 “Operation not supported: internal snapshots of a VM with pflash based firmware are not su

  7. 再次创建虚拟机快照成功!

上一篇:实战:MYSQL高级操作和崩溃维护


下一篇:1