You are not logged in.

#1 2021-04-08 14:58:59

PapuaXXL
Member
Registered: 2021-04-08
Posts: 2

Problem when execute libguestfs-test-tool and virt-customize

I installed the community/libguestfs 1.42.0-5 packages, but when I run the command  libguestfs-test-tool the result is not the expected

I try to modify the qcow2 images using the  virt-customize -a CentOS-7-x86_64-GenericCloud-2009.qcow2 --root-password password:xpto and the result is the same

Can someone help me?


     ************************************************************
     *                    IMPORTANT NOTICE
     *
     * When reporting bugs, include the COMPLETE, UNEDITED
     * output below in your bug report.
     *
     ************************************************************
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
XDG_RUNTIME_DIR=/run/user/1000
SELinux: sh: line 1: getenforce: command not found
guestfs_get_append: (null)
guestfs_get_autosync: 1
guestfs_get_backend: direct
guestfs_get_backend_settings: []
guestfs_get_cachedir: /var/tmp
guestfs_get_hv: /usr/bin/qemu-system-x86_64
guestfs_get_memsize: 768
guestfs_get_network: 0
guestfs_get_path: /usr/lib/guestfs
guestfs_get_pgroup: 0
guestfs_get_program: libguestfs-test-tool
guestfs_get_recovery_proc: 1
guestfs_get_smp: 1
guestfs_get_sockdir: /run/user/1000
guestfs_get_tmpdir: /tmp
guestfs_get_trace: 0
guestfs_get_verbose: 1
host_cpu: x86_64
Launching appliance, timeout set to 600 seconds.
libguestfs: launch: program=libguestfs-test-tool
libguestfs: launch: version=1.42.0
libguestfs: launch: backend registered: unix
libguestfs: launch: backend registered: uml
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend registered: direct
libguestfs: launch: backend=direct
libguestfs: launch: tmpdir=/tmp/libguestfsX7gkDQ
libguestfs: launch: umask=0022
libguestfs: launch: euid=1000
libguestfs: begin building supermin appliance
libguestfs: run supermin
libguestfs: command: run: /usr/bin/supermin
libguestfs: command: run: \ --build
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --if-newer
libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu x86_64
libguestfs: command: run: \ /usr/lib/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d
supermin: version: 5.2.0
supermin: package handler: arch/pacman
supermin: acquiring lock on /var/tmp/.guestfs-1000/lock
supermin: if-newer: output does not need rebuilding
libguestfs: finished building supermin appliance
libguestfs: begin testing qemu features
libguestfs: checking for previously cached test results of /usr/bin/qemu-system-x86_64, in /var/tmp/.guestfs-1000
libguestfs: loading previously cached test results
libguestfs: qemu version: 5.2
libguestfs: qemu mandatory locking: yes
libguestfs: qemu KVM: enabled
libguestfs: finished testing qemu features
libguestfs: command: run: file
libguestfs: command: run: \ -- /var/tmp/.guestfs-1000/appliance.d/root
/usr/bin/qemu-system-x86_64 \
    -global virtio-blk-pci.scsi=off \
    -no-user-config \
    -enable-fips \
    -nodefaults \
    -display none \
    -machine accel=kvm:tcg \
    -cpu host \
    -m 768 \
    -no-reboot \
    -rtc driftfix=slew \
    -no-hpet \
    -global kvm-pit.lost_tick_policy=discard \
    -kernel /var/tmp/.guestfs-1000/appliance.d/kernel \
    -initrd /var/tmp/.guestfs-1000/appliance.d/initrd \
    -object rng-random,filename=/dev/urandom,id=rng0 \
    -device virtio-rng-pci,rng=rng0 \
    -device virtio-scsi-pci,id=scsi \
    -drive file=/tmp/libguestfsX7gkDQ/scratch1.img,cache=unsafe,format=raw,id=hd0,if=none \
    -device scsi-hd,drive=hd0 \
    -drive file=/var/tmp/.guestfs-1000/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none,format=raw \
    -device scsi-hd,drive=appliance \
    -device virtio-serial-pci \
    -serial stdio \
    -device sga \
    -chardev socket,path=/run/user/1000/libguestfsoOwJMW/guestfsd.sock,id=channel0 \
    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
    -append "panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=UUID=d1b20073-49a7-428b-ffffa7e6-c57ca94b31d2 selinux=0 guestfs_verbose=1 TERM=xterm-256color"
libguestfs: responding to serial console Device Status Report
\x1b[1;256r\x1b[256;256H\x1b[6n
Google, Inc.
Serial Graphics Adapter 04/27/17
SGABIOS $Id$ (pbonzini@donizetti) gio 27 apr 2017, 08.36.57, UTC
Term: 80x24
4 0
SeaBIOS (version ArchLinux 1.14.0-1)
Booting from ROM...
\x1b[2J[    0.207899] usbserial: usb_serial_init - registering generic driver failed
[    0.209382] usbserial: usb_serial_init - returning with error -19
supermin: mounting /proc
supermin: ext2 mini initrd starting up: 5.2.0 glibc
supermin: cmdline: panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=UUID=d1b20073-49a7-428b-ffffa7e6-c57ca94b31d2 selinux=0 guestfs_verbose=1 TERM=xterm-256color
supermin: uptime: 0.31 0.00
supermin: mounting /sys
supermin: internal insmod crc32-pclmul.ko
supermin: internal insmod crc32c-intel.ko
supermin: internal insmod crct10dif-pclmul.ko
supermin: internal insmod crc32_generic.ko
supermin: internal insmod crc32c_generic.ko
supermin: internal insmod nfit.ko
supermin: internal insmod ata_piix.ko
supermin: internal insmod virtio_blk.ko
supermin: internal insmod rng-core.ko
supermin: internal insmod virtio-rng.ko
supermin: internal insmod virtio_console.ko
supermin: internal insmod crypto_engine.ko
supermin: internal insmod virtio_crypto.ko
supermin: internal insmod failover.ko
supermin: internal insmod net_failover.ko
supermin: internal insmod virtio_net.ko
supermin: internal insmod nd_btt.ko
supermin: internal insmod nd_pmem.ko
supermin: internal insmod nd_virtio.ko
supermin: internal insmod virtio_pmem.ko
supermin: internal insmod rpmsg_core.ko
supermin: internal insmod rpmsg_ns.ko
supermin: internal insmod virtio_rpmsg_bus.ko
supermin: internal insmod virtio_scsi.ko
supermin: internal insmod virtio_balloon.ko
supermin: internal insmod virtio_dma_buf.ko
supermin: internal insmod virtio_input.ko
supermin: internal insmod virtio_mem.ko
supermin: internal insmod virtio_mmio.ko
supermin: internal insmod virtio_pci.ko
supermin: internal insmod vdpa.ko
supermin: internal insmod virtio_vdpa.ko
supermin: internal insmod jbd2.ko
supermin: internal insmod mbcache.ko
supermin: internal insmod crc16.ko
supermin: internal insmod ext4.ko
supermin: internal insmod fuse.ko
supermin: internal insmod virtiofs.ko
supermin: internal insmod crc-itu-t.ko
supermin: internal insmod crc4.ko
supermin: internal insmod crc64.ko
supermin: internal insmod crc7.ko
supermin: internal insmod crc8.ko
supermin: internal insmod libcrc32c.ko
supermin: root UUID is longer than 16 bytes
[    1.023134] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[    1.024783] CPU: 0 PID: 1 Comm: init Not tainted 5.11.11-arch1-1 #1
[    1.026162] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS ArchLinux 1.14.0-1 04/01/2014
[    1.027906] Call Trace:
[    1.028389]  dump_stack+0x6b/0x83
[    1.029103]  panic+0x112/0x2e8
[    1.029660]  do_exit.cold+0xa7/0xb3
[    1.030286]  ? vfs_write+0x153/0x2a0
[    1.030932]  do_group_exit+0x33/0xa0
[    1.031644]  __x64_sys_exit_group+0x14/0x20
[    1.032772]  do_syscall_64+0x33/0x40
[    1.033519]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    1.034520] RIP: 0033:0x441221
[    1.035217] Code: c0 ff ff ff be e7 00 00 00 ba 3c 00 00 00 eb 16 66 0f 1f 84 00 00 00 00 00 89 d0 0f 05 48 3d 00 f0 ff ff 77 1c f4 89 f0 0f 05 <48> 3d 00 f0 ff ff 76 e7 f7 d8 64 41 89 00 eb df 0f 1f 80 00 00 00
[    1.039412] RSP: 002b:00007fff82a20d18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
[    1.041084] RAX: ffffffffffffffda RBX: 00000000004b3230 RCX: 0000000000441221
[    1.042495] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
[    1.044466] RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 00000000004b3600
[    1.046156] R10: 0000000000441fb7 R11: 0000000000000246 R12: 00000000004b3230
[    1.047494] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
[    1.049123] Kernel Offset: 0x2aa00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    1.051576] Rebooting in 1 seconds..
libguestfs: error: appliance closed the connection unexpectedly, see earlier error messages
libguestfs: child_cleanup: 0x55fc3efd6e50: child process died
libguestfs: sending SIGTERM to process 30374
libguestfs: qemu maxrss 179528K
libguestfs: error: guestfs_launch failed, see earlier error messages
libguestfs: closing guestfs handle 0x55fc3efd6e50 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsX7gkDQ
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /run/user/1000/libguestfsoOwJMW

Best Regards,

Offline

#2 2021-04-09 18:31:53

nunopenim
Member
From: Portugal
Registered: 2021-03-06
Posts: 22

Re: Problem when execute libguestfs-test-tool and virt-customize

Having the same issue here too. libguestfs-test-tool returns this:

supermin: internal insmod crc64.ko
supermin: internal insmod crc7.ko
supermin: internal insmod crc8.ko
supermin: internal insmod libcrc32c.ko
supermin: root UUID is longer than 16 bytes
[    0.521205] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[    0.522189] CPU: 0 PID: 1 Comm: init Not tainted 5.11.12-arch1-1 #1
[    0.522624] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS ArchLinux 1.14.0-1 04/01/2014
[    0.522624] Call Trace:
[    0.522624]  dump_stack+0x6b/0x83
[    0.522624]  panic+0x112/0x2e8
[    0.522624]  do_exit.cold+0xa7/0xb3
[    0.522624]  ? vfs_write+0x153/0x2a0
[    0.522624]  do_group_exit+0x33/0xa0
[    0.522624]  __x64_sys_exit_group+0x14/0x20
[    0.522624]  do_syscall_64+0x33/0x40
[    0.522624]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    0.522624] RIP: 0033:0x441221
[    0.522624] Code: c0 ff ff ff be e7 00 00 00 ba 3c 00 00 00 eb 16 66 0f 1f 84 00 00 00 00 00 89 d0 0f 05 48 3d 00 f0 ff ff 77 1c f4 89 f0 0f 05 <48> 3d 00 f0 ff ff 76 e7 f7 d8 64 41 89 00 eb df 0f 1f 80 00 00 00
[    0.522624] RSP: 002b:00007ffc0dd40eb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
[    0.522624] RAX: ffffffffffffffda RBX: 00000000004b3230 RCX: 0000000000441221
[    0.522624] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
[    0.522624] RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 0000000000000000
[    0.522624] R10: 0000000000441fb7 R11: 0000000000000246 R12: 00000000004b3230
[    0.522624] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
[    0.522624] Kernel Offset: 0xa400000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[    0.522624] Rebooting in 1 seconds..
libguestfs: error: appliance closed the connection unexpectedly, see earlier error messages
libguestfs: child_cleanup: 0x5576aec46f40: child process died
libguestfs: sending SIGTERM to process 3434
libguestfs: qemu maxrss 178544K
libguestfs: error: guestfs_launch failed, see earlier error messages
libguestfs: trace: launch = -1 (error)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x5576aec46f40 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfs0UkjIi
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsZSRG6U

Although I don't think this is the right place to post it

Last edited by nunopenim (2021-04-09 18:33:52)


Check my GitHub here: github.com/nunopenim

I apologize in advance if some of my comments or replies don't make any sense, English is not my main language, although I try! Thank you for understanding, you can also point out stuff I misspell or just doesn't sound right.

Offline

#3 2021-04-11 17:29:04

nedved
Member
From: St P, RU
Registered: 2021-04-11
Posts: 1

Re: Problem when execute libguestfs-test-tool and virt-customize

Same thing happened.
Dudes, https://www.mail-archive.com/libguestfs … 21721.html
Temporary downgrade of file utility works

pacman  -U https://archive.archlinux.org/packages/f/file/file-5.39-1-x86_64.pkg.tar.zst

Offline

#4 2021-04-12 08:36:06

PapuaXXL
Member
Registered: 2021-04-08
Posts: 2

Re: Problem when execute libguestfs-test-tool and virt-customize

Thanks so much for the help.

The solution work perfect

Offline

Board footer

Powered by FluxBB