Bug 12441 - [Anolis23.2][RC1][浪潮信息]libguestfs-tools无法识别anolis23虚拟机系统盘
Summary: [Anolis23.2][RC1][浪潮信息]libguestfs-tools无法识别anolis23虚拟机系统盘
Status: RESOLVED BYDESIGN
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Others (show other bugs) Others
Version: 23.2
Hardware: All Linux
: P2-High S2-major
Target Milestone: ---
Assignee: happy_orange
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-18 15:35 UTC by liuzongyuan
Modified: 2024-12-18 17:10 UTC (History)
1 user (show)

See Also:


Attachments
bug描述 (10.35 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-12-18 15:35 UTC, liuzongyuan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description liuzongyuan 2024-12-18 15:35:39 UTC
Created attachment 1257 [details]
bug描述

Description of problem:
在使用 libguestfs-tools 版本 1.44 对 Anolis OS 23.1、Anolis OS 23.2虚拟机的系统盘进行离线访问时,发现工具无法正确识别和操作该系统的磁盘。具体表现为 virt-ls 和 virt-df 等命令无法列出或获取虚拟机内部文件系统的信息。在其他操作系统(如 Anolis OS 8.4、Anolis OS 23.0等) 则不存在该问题 。

Version-Release number of selected component (if applicable):
23.1 and  23.2

How reproducible:
100%

Steps to Reproduce:
1.使用 yum install libguestfs-tools 安装 libguestfs-tools。
2.创建一台 Anolis OS 23.1或Anolis OS 23.2 的虚拟机。
3.在主机端执行 virt-ls -a <虚拟机系统盘路径> /root/。
4.观察到命令没有输出预期的文件列表。

Actual results:
对于 Anolis OS 23.1及Anolis OS 23.2的虚拟机,virt-ls命令无法正确读取和列出系统盘中的文件和目录信息。报错:无法识别操作系统。virt-ls: no operating system was found on the disk

Expected results:
命令应能正常列出虚拟机内部文件系统中的文件和目录。

Additional info:
将根文件系统从 XFS 更改为 ext4 后,libguestfs 工具能够成功读取和操作 Anolis OS 23.1的系统盘数据。怀疑由6.6 内核中, xfs 新特性导致与宿主机的内核不兼容。
Comment 1 gaochang alibaba_cloud_group 2024-12-18 17:10:53 UTC
该问题是 xfsprogs 6.6 及 6.6 内核中启用 xfs 新特性导致,在 23.1 版本中已经有类似的问题出现。旧版本的 libguestfs 确实无法支持此类新特性。该场景属于已知情况,目前暂无计划兼容旧版本场景。推荐在其他版本发行版中使用 ext4 进行相关操作。