Dear Remi Duraffort,I have tried run this command libguestfs-test-tool on LAVA container.Then, I run QEMU job again. It is failed again.The log has shown as below:root@lava-docker:/# sudo libguestfs-test-tool*********************************************************** * * IMPORTANT NOTICE** When reporting bugs, include the COMPLETE, UNEDITED* output below in your bug report.************************************************************ * PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ sbin:/bin SELinux: Disabledguestfs_get_append: (null)guestfs_get_autosync: 1guestfs_get_backend: directguestfs_get_backend_settings: []guestfs_get_cachedir: /var/tmpguestfs_get_direct: 0guestfs_get_hv: /usr/bin/qemu-system-x86_64guestfs_get_memsize: 500guestfs_get_network: 0guestfs_get_path: /usr/lib/x86_64-linux-gnu/guestfs guestfs_get_pgroup: 0guestfs_get_program: libguestfs-test-toolguestfs_get_recovery_proc: 1guestfs_get_smp: 1guestfs_get_sockdir: /tmpguestfs_get_tmpdir: /tmpguestfs_get_trace: 0guestfs_get_verbose: 1host_cpu: x86_64Launching appliance, timeout set to 600 seconds.libguestfs: launch: program=libguestfs-test-toollibguestfs: launch: version=1.34.6libguestfs: launch: backend registered: unixlibguestfs: launch: backend registered: umllibguestfs: launch: backend registered: libvirtlibguestfs: launch: backend registered: directlibguestfs: launch: backend=directlibguestfs: launch: tmpdir=/tmp/libguestfsaWvizYlibguestfs: launch: umask=0022libguestfs: launch: euid=0libguestfs: begin building supermin appliancelibguestfs: run superminlibguestfs: command: run: /usr/bin/superminlibguestfs: command: run: \ --buildlibguestfs: command: run: \ --verboselibguestfs: command: run: \ --if-newerlibguestfs: command: run: \ --lock /var/tmp/.guestfs-0/locklibguestfs: command: run: \ --copy-kernellibguestfs: command: run: \ -f ext2libguestfs: command: run: \ --host-cpu x86_64libguestfs: command: run: \ /usr/lib/x86_64-linux-gnu/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-0/appliance.d supermin: version: 5.1.17supermin: package handler: debian/dpkgsupermin: acquiring lock on /var/tmp/.guestfs-0/locksupermin: if-newer: output does not need rebuildinglibguestfs: finished building supermin appliancelibguestfs: begin testing qemu featureslibguestfs: checking for previously cached test results of /usr/bin/qemu-system-x86_64, in /var/tmp/.guestfs-0libguestfs: loading previously cached test resultslibguestfs: qemu version 2.8libguestfs: finished testing qemu features[00096ms] /usr/bin/qemu-system-x86_64 \-global virtio-blk-pci.scsi=off \-nodefconfig \-enable-fips \-nodefaults \-display none \-machine accel=kvm:tcg \-cpu host \-m 500 \-no-reboot \-rtc driftfix=slew \-no-hpet \-global kvm-pit.lost_tick_policy=discard \ -kernel /var/tmp/.guestfs-0/appliance.d/kernel \ -initrd /var/tmp/.guestfs-0/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/libguestfsaWvizY/scratch.1,cache=unsafe,format= raw,id=hd0,if=none \ -device scsi-hd,drive=hd0 \-drive file=/var/tmp/.guestfs-0/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=/tmp/libguestfsLDfGe0/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=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm'qemu-system-x86_64: /build/qemu-DqynNa/qemu-2.8+dfsg/target-i386/kvm.c:1805: kvm_put_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed. libguestfs: error: appliance closed the connection unexpectedly, see earlier error messageslibguestfs: child_cleanup: 0x7f682bbab170: child process diedlibguestfs: sending SIGTERM to process 621libguestfs: error: /usr/bin/qemu-system-x86_64 killed by signal 6 (Aborted), see debug messages abovelibguestfs: error: guestfs_launch failed, see earlier error messageslibguestfs: closing guestfs handle 0x7f682bbab170 (state 0)libguestfs: command: run: rmlibguestfs: command: run: \ -rf /tmp/libguestfsaWvizYlibguestfs: command: run: rmlibguestfs: command: run: \ -rf /tmp/libguestfsLDfGe02018-05-03 12:58 GMT+07:00 Remi Duraffort <remi.duraffort@linaro.org>:Hello,then can you try to run "libguestfs-test-tool" as asked in the log message?2018-05-02 19:17 GMT+02:00 Nguyễn Phong Cảnh <phongcanhit@gmail.com>:Dear Remi Duraffort,I already have mounted /boot, /lib/modules and --priviledged mode to run docker.I submit QEMU job again. It still failed.Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/lava_dispatcher/action.py" , line 298, in run_actions action_max_end_time, args) File "/usr/lib/python2.7/dist-packa ges/lava_dispatcher/actions/de ploy/apply_overlay.py", line 89, in run self.job.device['actions']['de ploy']['methods']['image']['pa rameters']['guest']['size']) File "/usr/lib/python2.7/dist-packa ges/lava_dispatcher/utils/file system.py", line 131, in prepare_guestfs guest.launch() File "/usr/lib/python2.7/dist-packa ges/guestfs.py", line 5705, in launch r = libguestfsmod.launch(self._o) RuntimeError: 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-libguestf You can also run 'libguestfs-test-tool' and post the *complete* output into a bug report or message to the libguestfs mailing list.s Could you have a check my log?Best regards,Canh Nguyen2018-05-02 22:49 GMT+07:00 Remi Duraffort <remi.duraffort@linaro.org>:Hello,if you want to run qemu jobs inside a docker container, you need to bind /boot and /lib/modules.You then have to run the docker in privileged mode or with --device /dev/kvm:/dev/kvm:rwRegards2018-05-02 17:22 GMT+02:00 Nguyễn Phong Cảnh <phongcanhit@gmail.com>:______________________________Dear all,I'm testing QEMU on LAVA with my first job.I have taken a sample here:But, it's failed at "apply-overlay-guest" action:Overlay: /var/lib/lava/dispatcher/slave/tmp/15/overlay-1.3.4.tar.gz Traceback (most recent call last):File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/a ction.py", line 290, in run_actions new_connection = action.run(connection, args)File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/a ctions/deploy/apply_overlay.py ", line 83, in run self.job.device['actions']['deploy']['methods']['image']['pa rameters']['guest']['size']) File "/usr/lib/python2.7/dist-packages/lava_dispatcher/pipeline/u tils/filesystem.py", line 128, in prepare_guestfs guest.launch()File "/usr/lib/python2.7/dist-packages/guestfs.py", line 5705, in launch r = libguestfsmod.launch(self._o)RuntimeError: /usr/bin/supermin exited with error status 1.To see full error messages you may need to enable debugging.Do:export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1and run the command again. For further information, read:I'm using docker LAVA version 2017.11. And, attached is my log.Do you have idea for this issue?. Thanks in advanceBest regards,Canh NguyenMy contact email:_________________
Lava-users mailing list
Lava-users@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lava-users
--Rémi DuraffortLAVA Team--Rémi DuraffortLAVA Team