On Mon, Feb 22, 2016 at 12:59:47PM +0100, Kashyap Chamarthy wrote:
> root@cubietruck:~# /usr/bin/libguestfs-test-tool -V
> libguestfs-test-tool 1.30.6
[...]
> [00633ms] /usr/bin/qemu-system-arm \
> -global virtio-blk-device.scsi=off \
> -nodefconfig \
> -enable-fips \
> -nodefaults \
> -display none \
> -M virt \
> -cpu host \
> -machine accel=kvm:tcg \
> -m 500 \
> -no-reboot \
> -rtc driftfix=slew \
> -global kvm-pit.lost_tick_policy=discard \
> -kernel /var/tmp/.guestfs-0/appliance.d/kernel \
> -dtb /var/tmp/.guestfs-0/appliance.d/dtb \
> -initrd /var/tmp/.guestfs-0/appliance.d/initrd \
> -device virtio-scsi-device,id=scsi \
> -drive
> file=/tmp/libguestfssaEUV0/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
> \
> -device scsi-hd,drive=appliance \
> -device virtio-serial-device \
> -serial stdio \
> -chardev socket,path=/tmp/libguestfssaEUV0/guestfsd.sock,id=channel0 \
> -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
> -append 'panic=1 mem=500M console=ttyAMA0 udevtimeout=6000
> udev.event-timeout=6000 no_timer_check acpi=off printk.time=1
> cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1
> TERM=xterm-256color'
> qemu-system-arm: Warning: global kvm-pit.lost_tick_policy has invalid class
> name
> Alarm clock
The main problem is that the original poster's kernel doesn't boot on
top of qemu. I can't see from the logs what kernel they are trying to
use, but that's going to be a problem.
Strongly suggest:
(a) Switch to libguestfs from git, since the version you are using is
8 months old, and I completely changed how DTBs are handled in the
latest version.
(b) Don't run stuff as root.
(c) With the version from git, do:
./configure
rm -rf tmp/.guestfs-*
make clean
make
make quickcheck
and let us see the complete log of that.
Instructions for building libguestfs from source can be found here:
http://libguestfs.org/guestfs-building.1.html
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top