Bug 7939 - [Anolis23.1][RC1][loongarch64]virt-manager 虚拟机快照运行失败,libvirt报错
Summary: [Anolis23.1][RC1][loongarch64]virt-manager 虚拟机快照运行失败,libvirt报错
Status: RESOLVED FIXED
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.1
Hardware: loongarch Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
: 7940 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-01-18 17:53 UTC by wuzhiguo
Modified: 2024-05-23 14:25 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wuzhiguo loongson_group 2024-01-18 17:53:08 UTC
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 也有此问题
Comment 1 gaochang alibaba_cloud_group 2024-01-18 18:32:58 UTC
创建快照、运行快照的命令麻烦提供一下
Comment 2 wuzhiguo loongson_group 2024-01-18 19:07:16 UTC
(In reply to gaochang from comment #1)
> 创建快照、运行快照的命令麻烦提供一下

创建快照、运行快照是用 virt-manager 图形界面点击操作
Comment 4 gaochang alibaba_cloud_group 2024-01-20 15:18:16 UTC
*** Bug 7940 has been marked as a duplicate of this bug. ***
Comment 5 wuzhiguo loongson_group 2024-01-30 11:49:35 UTC
使用 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 分支。
Comment 6 lixianglai loongson_group 2024-01-31 16:47:51 UTC
https://gitee.com/src-anolis-os/qemu/pulls/14
在loongarch上添加上面的patch,仍然不能解决快照问题
Comment 7 lixianglai loongson_group 2024-02-01 14:25:02 UTC
通过如下修改,可以解决libvirt快照恢复错误问题,在本地loongarch和x86架构下均验证通过:
https://gitee.com/src-anolis-os/libvirt/pulls/26
Comment 8 扣肉 2024-02-02 09:21:47 UTC
well... 明明更新版本就能解决的。。。

https://gitee.com/src-anolis-os/libvirt/pulls/23
Comment 9 lixianglai loongson_group 2024-02-02 09:50:59 UTC
嗯,你说的对,但是iso已经发布到rc2了,现在更新版本已经来不及吧?
Comment 10 扣肉 2024-02-02 11:03:52 UTC
(In reply to lixianglai from comment #9)
> 嗯,你说的对,但是iso已经发布到rc2了,现在更新版本已经来不及吧?
那就不是我能做主的了。
Comment 11 gaochang alibaba_cloud_group 2024-02-05 11:33:44 UTC
版本进入测试阶段的话软件包版本就不能调整了,尽量通过 patch 方式修复,除非实在没有办法修复。这样主要是控制引入的变量,保障版本发布的稳定性。
不过现在因为版本节奏出现变动,现在是可以升级版本了
Comment 12 扣肉 2024-02-05 11:43:18 UTC
(In reply to gaochang from comment #11)
> 版本进入测试阶段的话软件包版本就不能调整了,尽量通过 patch 方式修复,除非实在没有办法修复。这样主要是控制引入的变量,保障版本发布的稳定性。
> 不过现在因为版本节奏出现变动,现在是可以升级版本了
当你的项目有百人以上团队,其中50%以上是熟练的高级工程师,那可以尽情打patch。现在 release SIG没有高级工程师,人数就更别说,选择解决问题最快的方式,尽快交付,才是唯一的选择。
Comment 13 gaochang alibaba_cloud_group 2024-05-23 14:25:46 UTC
已升级 9.10.0 版本