120 Star 1 Fork 49

src-openEuler/libguestfs

libguestfs无法使用

待办的
缺陷
创建于  
2020-08-27 17:41

版本:libguestfs-1.40.2-9.oe1.aarch64
架构:aarch64
问题:

[root@localhost var]# guestfish -a /data/river_image/Debian.qcow2

Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: ‘help’ for help on commands
      ‘man’ to read the manual
      ‘quit’ to quit the shell

><fs> run
libguestfs: error: cannot find any suitable libguestfs supermin, fixed or old-style appliance on LIBGUESTFS_PATH (search path: /usr/lib64)

评论 (9)

river 创建了缺陷 5年前
river 关联仓库设置为src-openEuler/libguestfs 5年前
展开全部操作日志
river 修改了描述 5年前
river 修改了描述 5年前
openeuler-ci-bot 负责人设置为Charlie_Li 4年前

复现步骤:

  1. yum install libguestfs
  2. systemctl start libvirtd
  3. qemu-img create -f qcow2 test.qcow2 10M
  4. guestfish -a test.qcow2
  5. run

备注:
1)docker环境中复现有问题
2)test.qcow2文件不要放到/root目录下,不然会报无操作权限,将其放到/home目录下即可

错误理解:/usr/lib64/LIBGUESTFS_PATH中没有合适的supermin
错误原因:libguestfs配置中禁用了appliance,导致supermin未构建supermin.d环境

测试情况

  1. 在发布版的openEuler-20.03-LTS系统上,验证正常
    输入图片说明

  2. 在openEuler-20.09系统上,验证失败

[root@localhost home]# guestfish -a test.qcow2 

Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: ‘help’ for help on commands
      ‘man’ to read the manual
      ‘quit’ to quit the shell

><fs> run
libguestfs: error: appliance closed the connection unexpectedly.
This usually means the libguestfs appliance crashed.
Do:
  export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again.  For further information, read:
  http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.
libguestfs: error: guestfs_launch failed.
This usually means the libguestfs appliance failed to start or crashed.
Do:
  export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again.  For further information, read:
  http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.
><fs> 
[root@localhost home]# systemctl status libvirtd
● libvirtd.service - Virtualization daemon
     Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-12-09 09:57:01 CST; 14s ago
TriggeredBy: ● libvirtd-admin.socket
             ● libvirtd.socket
             ● libvirtd-ro.socket
       Docs: man:libvirtd(8)
             https://libvirt.org
   Main PID: 8568 (libvirtd)
      Tasks: 18 (limit: 32768)
     Memory: 35.8M
     CGroup: /system.slice/libvirtd.service
             └─8568 /usr/sbin/libvirtd --timeout 120

12月 09 09:57:11 localhost.localdomain libvirtd[8568]: internal error: End of file from qemu monitor
12月 09 09:57:11 localhost.localdomain libvirtd[8568]: cannot resolve symlink /tmp/libguestfsZor01f/console.sock: No such file or directory
12月 09 09:57:11 localhost.localdomain libvirtd[8568]: cannot resolve symlink /tmp/libguestfsZor01f/guestfsd.sock: No such file or directory
12月 09 09:57:11 localhost.localdomain libvirtd[8641]: 2020-12-09 01:57:11.315+0000: 8641: info : libvirt version: 6.2.0, package: 13.oe1 (http://openeuler.org, 2020-09-27-15:11:08, )
12月 09 09:57:11 localhost.localdomain libvirtd[8641]: 2020-12-09 01:57:11.315+0000: 8641: info : hostname: localhost.localdomain
12月 09 09:57:11 localhost.localdomain libvirtd[8641]: 2020-12-09 01:57:11.315+0000: 8641: warning : virSecurityDACTransactionRun:291 : Ignoring failed restore attempt on /tmp/libguestfs3yJEXe/overlay1.qcow2
12月 09 09:57:11 localhost.localdomain libvirtd[8641]: 2020-12-09 01:57:11.315+0000: 8641: warning : virSecurityDACTransactionRun:291 : Ignoring failed restore attempt on /home/test.qcow2
12月 09 09:57:11 localhost.localdomain libvirtd[8568]: internal error: child reported (status=125): unable to stat: /tmp/libguestfsZor01f/console.sock: No such file or directory
12月 09 09:57:11 localhost.localdomain libvirtd[8568]: unable to stat: /tmp/libguestfsZor01f/console.sock: No such file or directory
12月 09 09:57:11 localhost.localdomain libvirtd[8568]: Unable to run security manager transaction

使用libguestfs-test-tool检测时,报错如下:

[    0.968105] pciehp 0000:00:01.3:pcie004: Slot #0 AttnBtn+ PwrCtrl+ MRL- AttnInd+ PwrInd+ HotPlug+ Surprise+ Interlock+ NoCompl- LLActRep+
[    0.970704] pciehp 0000:00:01.3:pcie004: Slot(0-3): Link Up
[    0.980191] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.989601] Internal error: Uncorrected hardware memory error in kernel-access 
[    0.989601] : 96000050 [#1] SMP
[    0.990155] Modules linked in:
[    0.990386] Process swapper/0 (pid: 1, stack limit = 0x(____ptrval____))
[    0.990631] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W         4.19.140-2009.4.0.0048.oe1.aarch64 #1
[    0.991000] Hardware name: linux,dummy-virt (DT)
[    0.991215] pstate: 80000005 (Nzcv daif -PAN -UAO)
[    0.991441] pc : logic_outb+0x38/0x98
[    0.991568] lr : init_atmel+0x5c/0x298
[    0.991665] sp : ffff000009a2fcd0
[    0.991767] x29: ffff000009a2fcd0 x28: 0000000000000000 
[    0.992247] x27: ffff000008db6318 x26: ffff000008f51060 
[    0.992407] x25: ffff000008e5f610 x24: 0000000000000006 
[    0.992537] x23: 0000000000000000 x22: ffff000009333000 
[    0.992667] x21: ffff0000093e8860 x20: 0000000000000004 
[    0.992796] x19: ffff7fdffee0004e x18: 0000000000000020 
[    0.992925] x17: 0000000000000000 x16: 0000000000000000 
[    0.993606] x15: ffff000009333000 x14: ffffffffffffffff 
[    0.993750] x13: ffff80001f5d391c x12: ffff80001f5d3168 
[    0.993878] x11: 0101010101010101 x10: 7f7f7f7f7f7f7f7f 
[    0.994006] x9 : fefefefeff727461 x8 : 0000000000000582 
[    0.994138] x7 : ffff80001fe7f200 x6 : ffff7fe00007d740 
[    0.994266] x5 : 0000000000000000 x4 : ffff80001fe60d00 
[    0.994958] x3 : 0000000000000583 x2 : ffff80001f5d3000 
[    0.995100] x1 : ffff7fdffee00000 x0 : 0000000000ffbffe 
[    0.995265] Call trace:
[    0.995347]  logic_outb+0x38/0x98
[    0.995436]  init_atmel+0x5c/0x298
[    0.995533]  do_one_initcall+0x54/0x210
[    0.995634]  kernel_init_freeable+0x2a4/0x38c
[    0.996296]  kernel_init+0x18/0x110
[    0.996403]  ret_from_fork+0x10/0x18
[    0.996767] Code: d2bfdc01 f2cffbe1 f2ffffe1 8b010273 (39000274) 
[    0.997710] ---[ end trace a80614bdab433329 ]---
[    0.998349] Kernel panic - not syncing: Fatal exception* 
[    0.998806] Kernel Offset: disabled
[    0.999116] CPU features: 0x00010,a0006082
[    0.999283] Memory Limit: none
[    0.999575] Rebooting in 1 seconds..
libguestfs: error: appliance closed the connection unexpectedly, see earlier error messages
libguestfs: child_cleanup: 0xaaac5bbac080: child process died
libguestfs: error: guestfs_launch failed, see earlier error messages
libguestfs: closing guestfs handle 0xaaac5bbac080 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfs1iPbZE
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfstY45CI
[root@localhost remote]# uname -r
4.19.140-2009.4.0.0048.oe1.aarch64
maminjie 任务状态待办的 修改为已挂起 4年前
maminjie 任务状态已挂起 修改为待办的 4年前

问题在openEuler-20.03-LTS 上依旧存在

[root@localhost home]# guestfish -a disk.qcow2                                                                                                                                                                       
                                                                                                                                                                                                                     
Welcome to guestfish, the guest filesystem shell for                                                                                                                                                                 
editing virtual machine filesystems and disk images.                                                                                                                                                                 
                                                                                                                                                                                                                     
Type: ‘help’ for help on commands                                                                                                                                                                                    
      ‘man’ to read the manual                                                                                                                                                                                       
      ‘quit’ to quit the shell                                                                                                                                                                                       
   
><fs> run
libguestfs: error: cannot find any suitable libguestfs supermin, fixed or old-style appliance on LIBGUESTFS_PATH (search path: /usr/lib64/guestfs)                                                                  
><fs> exit

[root@localhost home]# cat /etc/os-release
NAME="openEuler"
VERSION="20.03 (LTS-SP1)"
ID="openEuler"
VERSION_ID="20.03"
PRETTY_NAME="openEuler 20.03 (LTS-SP1)"
ANSI_COLOR="0;31"

[root@localhost home]# cat /etc/open
openEuler-latest    openEuler-release   openEuler_security/ openldap/
[root@localhost home]# cat /etc/openEuler-latest
openeulerversion=openEuler-20.03-LTS-SP1
compiletime=2020-12-22-09-16-12
gccversion=7.3.0-20190804.35.oe1
kernelversion=4.19.90-2012.4.0.0053.oe1
openjdkversion=1.8.0.272.b10-4.oe1
[root@localhost home]#
[root@localhost home]# arch
aarch64
[root@localhost home]#

20.03 (LTS-SP1)更新1.40.2-10之后能用了

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
5329419 openeuler ci bot 1632792936 maminjie-maminjie friendpalm-friendpalm Alpha62-alpha62 river-mistyriver
1
https://gitee.com/src-openeuler/libguestfs.git
git@gitee.com:src-openeuler/libguestfs.git
src-openeuler
libguestfs
libguestfs

搜索帮助