On Mon, Nov 25, 2013 at 05:32:23PM +0100, Gonzalo Aguilar Delgado wrote:
Hello,
I've found a problem running libguestfs on my system.
The system has /var mounted with a symbolic link to /mnt/bigdata/var
root@red1:/var/log/nova# ls -ld /mnt/bigdata/var
drwxrwxr-x 15 root users 4096 jul 7 17:55 /mnt/bigdata/var
root@red1:/var/log/nova# ls -ld /var
lrwxrwxrwx 1 root root 16 oct 30 2012 /var -> /mnt/bigdata/var
Any help here?
This is a bug, basically.
You could try to work around it by creating a file
/usr/lib/guestfs/supermin.d/00-dir containing the following lines:
----------------------------------------------------------------------
/
/mnt
/mnt/bigdata
/mnt/bigdata/var
----------------------------------------------------------------------
(not including the dashes).
If that doesn't work, take the supermin-helper command that is printed
in the debug output, and try adding -v -v -v to the command. That
should make it print plenty of debug. For example
libguestfs-test-tool prints:
libguestfs: command: run: /usr/bin/supermin-helper
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu x86_64
libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d
libguestfs: command: run: \ --output-kernel /var/tmp/guestfs.pGpWYN/kernel
libguestfs: command: run: \ --output-initrd /var/tmp/guestfs.pGpWYN/initrd
libguestfs: command: run: \ --output-appliance /var/tmp/guestfs.pGpWYN/root
I run:
supermin-helper -v -v -v --verbose --copy-kernel -f ext2 --host-cpu x86_64
/usr/lib64/guestfs/supermin.d /tmp/kernel --output-kernel /tmp/kernel --output-initrd
/tmp/initrd --output-appliance /tmp/appliance
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW