代码拉取完成,页面将自动刷新
版本: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)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
复现步骤:
备注:
1)docker环境中复现有问题
2)test.qcow2文件不要放到/root目录下,不然会报无操作权限,将其放到/home目录下即可
错误理解:/usr/lib64/LIBGUESTFS_PATH中没有合适的supermin
错误原因:libguestfs配置中禁用了appliance,导致supermin未构建supermin.d环境
测试情况 :
在发布版的openEuler-20.03-LTS系统上,验证正常
在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
问题在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]#
登录 后才可以发表评论