[Bug 1186228] Re: guestmount does not work

2013-12-25 Thread Richard Jones
The kernel permissions problem is an Ubuntu bug
(https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725).

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to seabios in Ubuntu.
https://bugs.launchpad.net/bugs/1186228

Title:
  guestmount does not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1186228/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1186228] Re: guestmount does not work

2013-12-24 Thread Thiago Jung Bauermann
I still get the following warning though:

warning: Unable to get device geometry for /var/tmp/guestfs.BxDbcl/root

It appears to be harmless. I can still use guestfish to access disk
images.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to seabios in Ubuntu.
https://bugs.launchpad.net/bugs/1186228

Title:
  guestmount does not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1186228/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1186228] Re: guestmount does not work

2013-12-24 Thread Thiago Jung Bauermann
Thanks for the quick response!

After running update-guestfs-appliance the error message changed, so I
was probably hitting a bug that was fixed already.

Now the failure is:

hactar% LANG= libguestfs-test-tool
= Test starts here =
LIBGUESTFS_DEBUG=1
TMPDIR=(not set)
libguestfs: new guestfs handle 0x808cd20
library version: 1.14.8
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/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: [0ms] febootstrap-supermin-helper --verbose -f checksum 
'/usr/lib/guestfs/supermin.d' i686
supermin helper [0ms] whitelist = (not specified), host_cpu = i686, kernel 
= (null), initrd = (null), appliance = (null)
supermin helper [0ms] inputs[0] = /usr/lib/guestfs/supermin.d
checking modpath /lib/modules/3.2.0-54-generic-pae is a directory
picked vmlinuz-3.2.0-54-generic-pae because modpath 
/lib/modules/3.2.0-54-generic-pae exists
checking modpath /lib/modules/3.2.0-55-generic-pae is a directory
picked vmlinuz-3.2.0-55-generic-pae because modpath 
/lib/modules/3.2.0-55-generic-pae exists
checking modpath /lib/modules/3.2.0-51-generic-pae is a directory
picked vmlinuz-3.2.0-51-generic-pae because modpath 
/lib/modules/3.2.0-51-generic-pae exists
checking modpath /lib/modules/3.2.0-57-generic-pae is a directory
picked vmlinuz-3.2.0-57-generic-pae because modpath 
/lib/modules/3.2.0-57-generic-pae exists
checking modpath /lib/modules/3.2.0-56-generic-pae is a directory
picked vmlinuz-3.2.0-56-generic-pae because modpath 
/lib/modules/3.2.0-56-generic-pae exists
checking modpath /lib/modules/3.2.0-52-generic-pae is a directory
picked vmlinuz-3.2.0-52-generic-pae because modpath 
/lib/modules/3.2.0-52-generic-pae exists
checking modpath /lib/modules/3.2.0-53-generic-pae is a directory
picked vmlinuz-3.2.0-53-generic-pae because modpath 
/lib/modules/3.2.0-53-generic-pae exists
supermin helper [0ms] finished creating kernel
supermin helper [0ms] visiting /usr/lib/guestfs/supermin.d
supermin helper [0ms] visiting /usr/lib/guestfs/supermin.d/base.img
supermin helper [0ms] visiting /usr/lib/guestfs/supermin.d/daemon.img
supermin helper [0ms] visiting /usr/lib/guestfs/supermin.d/hostfiles
supermin helper [00026ms] visiting /usr/lib/guestfs/supermin.d/init.img
supermin helper [00026ms] adding kernel modules
supermin helper [00071ms] finished creating appliance
libguestfs: [00073ms] begin testing qemu features
libguestfs: [00102ms] finished testing qemu features
libguestfs: accept_from_daemon: 0x808cd20 g->state = 1
[00103ms] /usr/bin/kvm \
-global virtio-blk-pci.scsi=off \
-drive 
file=/tmp/libguestfs-test-tool-sda-zaN1Cj,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/libguestfswgp32L/guestfsd.sock,id=channel0 \
-device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
-kernel /var/tmp/.guestfs-1000/kernel.16390 \
-initrd /var/tmp/.guestfs-1000/initrd.16390 \
-append 'panic=1 console=ttyS0 udevtimeout=300 no_timer_check acpi=off 
printk.time=1 cgroup_disable=memory selinux=0 guestfs_verbose=1 TERM=screen ' \
-drive 
file=/var/tmp/.guestfs-1000/root.16390,snapshot=on,if=virtio,cache=unsafeqemu: 
could not load kernel '/var/tmp/.guestfs-1000/kernel.16390': 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: 0x808cd20: child process died
libguestfs-test-tool: failed to launch appliance
libguestfs: closing guestfs handle 0x808cd20 (state 0)

Here's the kernel symlink and its target permissions:

hactar% LANG= ls -l /var/tmp/.guestfs-1000/kernel.16390 
/boot/vmlinuz-3.2.0-57-generic-pae 
-rw--- 1 root  root  4.8M Nov 12 21:00 
/boot/vmlinuz-3.2.0-57-generic-pae
lrwxrwxrwx 3 bauermann bauermann   34 Dec 24 19:57 
/var/tmp/.guestfs-1000/kernel.16390 -> /boot/vmlinuz-3.2.0-57-generic-pae

So the problem is that vmlinuz is readable only by root. These are the
permissions of the files in /boot on my system:

hactar% LANG= ls -l /boot 
total 201M
-rw--- 1 root root 2.3M Jul 24 18:44 System.map-3.2.0-51-generic-pae
-rw--- 1 root root 2.3M Jul 26 14:46 System.map-3.2.0-52-generic-pae
-rw--- 1 root root 2.3M Aug 22 19:27 System.map-3.2.0-53-generic-pae
-rw--- 1 root root 2.3M Sep 10 18:32 System.map-3.2.0-54-generic-pae
-rw--- 1 root root 2.3M Oct  2 12:04 Syste

[Bug 1186228] Re: guestmount does not work

2013-12-24 Thread Richard Jones
For example, you could add a file /usr/lib/guestfs/supermin.d/00
-missing-dir containing two lines:

/
/lib

(assuming /lib was the missing directory)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to seabios in Ubuntu.
https://bugs.launchpad.net/bugs/1186228

Title:
  guestmount does not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1186228/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1186228] Re: guestmount does not work

2013-12-24 Thread Richard Jones
To diagnose this what you have to do:

(1) Run libguestfs-test-tool

It will (presumably) fail.  It will also print out an febootstrap-
supermin-helper command line (or in newer versions, a supermin-helper
command line).  In the comment above, it printed out:

febootstrap-supermin-helper --verbose -f ext2
/usr/lib/guestfs/supermin.d i686 /var/tmp/guestfs.t3yS8p/kernel
/var/tmp/guestfs.t3yS8p/initrd /var/tmp/guestfs.t3yS8p/root

(But note that your command line will be different).

(2) Modify the command line slightly.  The 'kernel', 'initrd', and
'root' options are *output* files.  You want those to be on /var/tmp.
Also add -v -v -v.  So you'd end up with something like:

febootstrap-supermin-helper --verbose -v -v -v -f ext2
/usr/lib/guestfs/supermin.d i686 /var/tmp/kernel /var/tmp/initrd
/var/tmp/root

Run that command and it will print out lots of very detailed debugging
information about what supermin-helper is trying to do.

Most likely (assuming you've not run out of disk space) it's because
there's some symlink or parent directory missing, which you can fix by
adding the right missing directory to /usr/lib/guestfs/supermin.d/00
-missing-dir (see the supermin-helper man page).

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to seabios in Ubuntu.
https://bugs.launchpad.net/bugs/1186228

Title:
  guestmount does not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1186228/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1186228] Re: guestmount does not work

2013-12-24 Thread Thiago Jung Bauermann
I have the same problem on Ubuntu 12.04.3 LTS on i386. I have plenty of
space both in /tmp and /var/tmp (they're on the same partition):

hactar% LANG= df -h /tmp /var/tmp
Filesystem   Size  Used Avail Use% Mounted on
/dev/mapper/hactar--vg-root  120G  107G  7.1G  94% /
/dev/mapper/hactar--vg-root  120G  107G  7.1G  94% /

I also have the problem that update-guestfs-appliance doesn't work
(reported as bug #1263989).

Package versions:
libguestfs0: 1:1.14.8-1
qemu-kvm: 1.0+noroms-0ubuntu14.12
febootstrap: 3.14-2

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to seabios in Ubuntu.
https://bugs.launchpad.net/bugs/1186228

Title:
  guestmount does not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1186228/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1186228] Re: guestmount does not work

2013-08-07 Thread Serge Hallyn
** Changed in: seabios (Ubuntu)
   Status: New => Incomplete

** Changed in: libguestfs (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to seabios in Ubuntu.
https://bugs.launchpad.net/bugs/1186228

Title:
  guestmount does not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1186228/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs