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


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

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

 

解决办法:

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

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

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

    # virsh edit Test_VirtualMachine_NAME

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

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

    

  4. 关闭虚拟机:

    # virsh shutdown Test_VirtualMachine_NAME

  5. 启动虚拟机:

    # virsh start Test_VirtualMachine_NAME

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

    #  virsh dumpxml Test_VirtualMachine_NAME | grep loader

    

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM