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