Hi,<br>I have a problem when i run java examples of libguestfs. It needs root privileges. This is the output of libguestfs-test-tool:<br><br><a href="mailto:libguestfs@redhat.com"></a>===== Test starts here =====<br>LIBGUESTFS_DEBUG=1<br>
TMPDIR=(not set)<br>libguestfs: new guestfs handle 0x9871c80<br>library version: 1.14.10<br>guestfs_get_append: (null)<br>guestfs_get_attach_method: appliance<br>guestfs_get_autosync: 1<br>guestfs_get_direct: 0<br>guestfs_get_memsize: 500<br>
guestfs_get_network: 0<br>guestfs_get_path: /usr/local/lib/guestfs<br>guestfs_get_pgroup: 0<br>guestfs_get_qemu: /usr/bin/kvm<br>guestfs_get_recovery_proc: 1<br>guestfs_get_selinux: 0<br>guestfs_get_smp: 1<br>guestfs_get_trace: 0<br>
guestfs_get_verbose: 1<br>host_cpu: i686<br>Launching appliance, timeout set to 600 seconds.<br>libguestfs: [00000ms] febootstrap-supermin-helper --verbose -f checksum '/usr/local/lib/guestfs/supermin.d' i686<br>supermin helper [00000ms] whitelist = (not specified), host_cpu = i686, kernel = (null), initrd = (null), appliance = (null)<br>
supermin helper [00000ms] inputs[0] = /usr/local/lib/guestfs/supermin.d<br>checking modpath /lib/modules/3.2.0-23-generic-pae is a directory<br>picked vmlinuz-3.2.0-23-generic-pae because modpath /lib/modules/3.2.0-23-generic-pae exists<br>
checking modpath /lib/modules/3.2.0-24-generic-pae is a directory<br>picked vmlinuz-3.2.0-24-generic-pae because modpath /lib/modules/3.2.0-24-generic-pae exists<br>checking modpath /lib/modules/3.2.0-26-generic-pae is a directory<br>
picked vmlinuz-3.2.0-26-generic-pae because modpath /lib/modules/3.2.0-26-generic-pae exists<br>supermin helper [00000ms] finished creating kernel<br>supermin helper [00000ms] visiting /usr/local/lib/guestfs/supermin.d<br>
supermin helper [00000ms] visiting /usr/local/lib/guestfs/supermin.d/base.img<br>supermin helper [00000ms] visiting /usr/local/lib/guestfs/supermin.d/daemon.img<br>supermin helper [00000ms] visiting /usr/local/lib/guestfs/supermin.d/hostfiles<br>
supermin helper [00022ms] visiting /usr/local/lib/guestfs/supermin.d/init.img<br>supermin helper [00022ms] adding kernel modules<br>supermin helper [00198ms] finished creating appliance<br>libguestfs: [00200ms] begin testing qemu features<br>
libguestfs: [00229ms] finished testing qemu features<br>libguestfs: accept_from_daemon: 0x9871c80 g->state = 1<br>[00234ms] /usr/bin/kvm \<br>    -global virtio-blk-pci.scsi=off \<br>    -drive file=/tmp/libguestfs-test-tool-sda-AGg9Vg,cache=off,format=raw,if=virtio \<br>
    -nodefconfig \<br>    -machine accel=kvm:tcg \<br>    -nodefaults \<br>    -nographic \<br>    -m 500 \<br>    -no-reboot \<br>    -no-hpet \<br>    -device virtio-serial \<br>    -serial stdio \<br>    -chardev socket,path=/tmp/libguestfsZJquQh/guestfsd.sock,id=channel0 \<br>
    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \<br>    -kernel /var/tmp/.guestfs-1000/kernel.9392 \<br>    -initrd /var/tmp/.guestfs-1000/initrd.9392 \<br>    -append 'panic=1 console=ttyS0 udevtimeout=300 no_timer_check acpi=off printk.time=1 cgroup_disable=memory selinux=0 guestfs_verbose=1 TERM=xterm ' \<br>
    -drive file=/var/tmp/.guestfs-1000/root.9392,snapshot=on,if=virtio,cache=unsafeCould not access KVM kernel module: No such file or directory<br>failed to initialize KVM: No such file or directory<br>Back to tcg accelerator.<br>
qemu: could not load kernel '/var/tmp/.guestfs-1000/kernel.9392': Permission denied<br>libguestfs: error: unexpected end of file when reading from daemon.<br>See earlier debug messages.<br>Or you can run 'libguestfs-test-tool' and post the complete output into<br>
a bug report or message to the libguestfs mailing list.<br>libguestfs: child_cleanup: 0x9871c80: child process died<br>libguestfs-test-tool: failed to launch appliance<br>libguestfs: closing guestfs handle 0x9871c80 (state 0)<br>
<br><br>I hope that help me. Thanks in advance.<br>Giuseppe<br>