[Libguestfs] IRC question: qemu-system-arm: -machine accel=kvm:tcg: No machine specified, and there is no default

Richard W.M. Jones rjones at redhat.com
Sun Dec 31 12:56:01 UTC 2017


13:57 < soko> hello. i am getting an error on launch when i set-hv to an arm system. the error appears to be caused by no default machine. here is a log 
              https://pastebin.com/CUBcnG44
13:59 < soko> the default hv works (launch, mount, etc) but fails to emulate (sh, command, etc) the binaries on the fs
14:17 < soko> if i upload qemu-arm-static and then command it works, but seems like changing the hv should work in a more clean way. any advice is appreciated!


The error from the pastebin is:

[00038ms] /usr/local/bin/qemu-system-arm \
    -global virtio-blk-pci.scsi=off \
    -enable-fips \
    -nodefaults \
    -display none \
    -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 \
    -initrd /var/tmp/.guestfs-0/appliance.d/initrd \
    -drive file=/opt/kore_dtf/dropthefw/build_directory/5/rootfs.raw,cache=writeback,id=hd0,if=none \
    -device virtio-blk-pci,drive=hd0 \
    -drive file=/var/tmp/.guestfs-0/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none \
    -device virtio-blk-pci,drive=appliance \
    -device virtio-serial-pci \
    -serial stdio \
    -chardev socket,path=/tmp/libguestfsxlkp01/guestfsd.sock,id=channel0 \
    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
    -append 'panic=1 console=ttyS0 udevtimeout=6000 udev.event-timeout=6000 no_timer_check lpj=8333313 acpi=off printk.time=1 cgroup_disable=memory root=/dev/vdb selinux=0 guestfs_verbose=1 TERM=xterm'
qemu-system-arm: -machine accel=kvm:tcg: No machine specified, and there is no default


Actually what's happening here is that soko is trying to do all of
this on an x86_64 host.  Unfortunately that won't work, because the
appliance that is built is for x86_64 so it cannot run on top of
qemu-system-arm.  But also (for basic file access) it's not necessary
either, just use qemu-system-x86_64.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list