Description of problem: virt-manager 虚拟机快照运行失败,libvirt报错 libvirt 报错信息: libvirt.libvirtError: End of file while reading data: Input/output error Version-Release number of selected component (if applicable): kernel版本 5.10.134-16.2_rc1.an23.loongarch64 qemu版本 6.2.0-4.an23 libvirt版本 9.9.0 virt-manager版本 4.1.0 Steps to Reproduce: 1. virt-manager默认配置虚拟机启动 2. 创建快照 3. 运行快照 Actual results: libvirt 报错 libvirt.libvirtError: End of file while reading data: Input/output error Expected results: 成功运行快照 Additional info: x86 AnolisOS-23 也有此问题
创建快照、运行快照的命令麻烦提供一下
(In reply to gaochang from comment #1) > 创建快照、运行快照的命令麻烦提供一下 创建快照、运行快照是用 virt-manager 图形界面点击操作
https://gitee.com/src-anolis-os/libvirt/pulls/25 https://gitee.com/src-anolis-os/qemu/pulls/14
*** Bug 7940 has been marked as a duplicate of this bug. ***
使用 RC2 iso 环境测试,快照依然不能运行。 报错信息: Error running snapshot 'snapshot1': internal error: QEMU unexpectedly closed the monitor (vm='vm1'): /sys/devices/system/cpu/cpu0/cpufreq/ cpuinfo_max_freq not exist! Trying /proc/cpuinfo... qemu-system-loongarch64: ../block/io.c:1991: bdrv_co_write_req_prepare: Assertion `!(bs->open_flags & BDRV_O_INACTIVE)' failed. 备注: loongarch64 架构的 qemu 代码分支为 a23-loongarch, 请将https://gitee.com/src-anolis-os/qemu/pulls/14 提交一份到 a23-loongarch 分支。
https://gitee.com/src-anolis-os/qemu/pulls/14 在loongarch上添加上面的patch,仍然不能解决快照问题
通过如下修改,可以解决libvirt快照恢复错误问题,在本地loongarch和x86架构下均验证通过: https://gitee.com/src-anolis-os/libvirt/pulls/26
well... 明明更新版本就能解决的。。。 https://gitee.com/src-anolis-os/libvirt/pulls/23
嗯,你说的对,但是iso已经发布到rc2了,现在更新版本已经来不及吧?
(In reply to lixianglai from comment #9) > 嗯,你说的对,但是iso已经发布到rc2了,现在更新版本已经来不及吧? 那就不是我能做主的了。
版本进入测试阶段的话软件包版本就不能调整了,尽量通过 patch 方式修复,除非实在没有办法修复。这样主要是控制引入的变量,保障版本发布的稳定性。 不过现在因为版本节奏出现变动,现在是可以升级版本了
(In reply to gaochang from comment #11) > 版本进入测试阶段的话软件包版本就不能调整了,尽量通过 patch 方式修复,除非实在没有办法修复。这样主要是控制引入的变量,保障版本发布的稳定性。 > 不过现在因为版本节奏出现变动,现在是可以升级版本了 当你的项目有百人以上团队,其中50%以上是熟练的高级工程师,那可以尽情打patch。现在 release SIG没有高级工程师,人数就更别说,选择解决问题最快的方式,尽快交付,才是唯一的选择。
已升级 9.10.0 版本