From 168c39ed3bd212728e2a9f1ed3eb3717b1946ee4 Mon Sep 17 00:00:00 2001 From: summer's father Date: Wed, 6 Oct 2021 15:53:28 +0000 Subject: [PATCH] =?UTF-8?q?add=20docs/zh/docs/Virtualization/virt-manager-?= =?UTF-8?q?uefi-pflash-KVM=E5=88=9B=E5=BB=BA=E5=BF=AB=E7=85=A7=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E8=A7=A3=E5=86=B3=E5=8A=9E=E6=B3=95.=20virt-manager-e?= =?UTF-8?q?ufi-pflash-KVM=E5=88=9B=E5=BB=BA=E5=BF=AB=E7=85=A7=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=20=E2=80=9COperation=20not=20supported:=20internal=20?= =?UTF-8?q?snapshots=20of=20a=20VM=20with=20pflash=20based=20firmware=20ar?= =?UTF-8?q?e=20not=20supported=E2=80=9D=E8=A7=A3=E5=86=B3=E5=8A=9E?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...7\243\345\206\263\345\212\236\346\263\225" | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 "docs/zh/docs/Virtualization/virt-manager-uefi-pflash-KVM\345\210\233\345\273\272\345\277\253\347\205\247\345\244\261\350\264\245\350\247\243\345\206\263\345\212\236\346\263\225" diff --git "a/docs/zh/docs/Virtualization/virt-manager-uefi-pflash-KVM\345\210\233\345\273\272\345\277\253\347\205\247\345\244\261\350\264\245\350\247\243\345\206\263\345\212\236\346\263\225" "b/docs/zh/docs/Virtualization/virt-manager-uefi-pflash-KVM\345\210\233\345\273\272\345\277\253\347\205\247\345\244\261\350\264\245\350\247\243\345\206\263\345\212\236\346\263\225" new file mode 100644 index 000000000..6552576f1 --- /dev/null +++ "b/docs/zh/docs/Virtualization/virt-manager-uefi-pflash-KVM\345\210\233\345\273\272\345\277\253\347\205\247\345\244\261\350\264\245\350\247\243\345\206\263\345\212\236\346\263\225" @@ -0,0 +1,257 @@ +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. 再次创建虚拟机快照成功! + + + +Xml 标黄部分把pflash 改成rom + + + + openeuler21.09 + + 453cbce3-d928-4521-aa86-bdcd1ef2dd00 + + 8216576 + + 8216576 + + 4 + + + + hvm + + /usr/share/OVMF/OVMF_CODE.fd + +#UEFI x86_64: /usr/share/OVMF/OVMF_CODE.fd 目前测试仅仅支持这个uefi路径。 + + /var/lib/libvirt/qemu/nvram/openeuler21.09_VARS.fd + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + destroy + + restart + + destroy + + + + + + + + + + + + /usr/bin/qemu-system-x86_64 + + + + + + + + + +
+ + + + + + + + + + + +
+ + + + + + + +
+ + + + + +
+ + + + + +
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + +