guestmount - unable to get device geometry
Hi, i am trying to use libguestfs (libvirt/kvm etc) into archlinux. But it seems that i am keep getting this error warning: Unable to get device geometry for /var/tmp/guestfs.NwkQVJ/root In the attached file, i've written some debug info. If someone can give me some pointer, i would appreciate it Evaggelos Balaskas Unix System Engineer - http://ebalaskas.gr.
On Tue, Dec 06, 2011 at 06:44:51PM +0200, Evaggelos Balaskas wrote:
Hi,
i am trying to use libguestfs (libvirt/kvm etc) into archlinux.
I think there is a warning and possible two different errors here.
But it seems that i am keep getting this error
warning: Unable to get device geometry for /var/tmp/guestfs.NwkQVJ/root
This seems to be a warning, but it's unexpected. What version of qemu is this?
In the attached file, i've written some debug info. If someone can give me some pointer, i would appreciate it [...] guestfsd: error while loading shared libraries: libaugeas.so.0: cannot open shared object file: No such file or directory
We're not copying libaugeas.* into the appliance for some reason. Could be a bug in febootstrap. What does this say? grep augeas appliance/supermin.d/hostfiles If the supermin appliance was built correctly, it should list all the files and symbolic links required to have libaugeas.* in the appliance. (ref: http://libguestfs.org/febootstrap.8.html#supermin_appliances )
$ ldd guestfsd linux-gate.so.1 => (0xb773a000) libaugeas.so.0 => /usr/local/lib/libaugeas.so.0 (0xb76f6000) libfa.so.1 => /usr/local/lib/libfa.so.1 (0xb76e5000) librt.so.1 => /lib/librt.so.1 (0xb76c1000) libc.so.6 => /lib/libc.so.6 (0xb7545000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb741d000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7400000) libpthread.so.0 => /lib/libpthread.so.0 (0xb73e5000) /lib/ld-linux.so.2 (0xb773b000) libdl.so.2 => /lib/libdl.so.2 (0xb73e0000) libz.so.1 => /usr/lib/libz.so.1 (0xb73c8000) libm.so.6 => /lib/libm.so.6 (0xb739d000)
$ file /usr/local/lib/libaugeas.so.0 /usr/local/lib/libaugeas.so.0: symbolic link to `libaugeas.so.0.15.0'
$ ldd /usr/local/lib/libaugeas.so.0.15.0 linux-gate.so.1 => (0xb7865000) libfa.so.1 => /usr/local/lib/libfa.so.1 (0xb7810000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb76ce000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb76b1000) libc.so.6 => /lib/libc.so.6 (0xb7535000) libdl.so.2 => /lib/libdl.so.2 (0xb752f000) libz.so.1 => /usr/lib/libz.so.1 (0xb7517000) libm.so.6 => /lib/libm.so.6 (0xb74ed000) /lib/ld-linux.so.2 (0xb7866000)
The error below may also indicate a problem, but I'd concentrate on getting the above working first.
/init: line 132: /sbin/reboot: No such file or directory
Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
I have: qemu-kvm 0.15.1 $ grep -i augeas /opt/dnl/sw/kvm/libguestfs-1.14.5/appliance/supermin.d/hostfiles [ empty ] $ grep -i augeas /usr/local/lib/guestfs/supermin.d/hostfiles [ empty ] It seems that libguestfs includes [appliance/make.sh.in]: /usr/share/augeas/lenses/*.aug but in my linux box i have: /usr/local/share/augeas/lenses [built from source] In augeas.pc exist the prefix=/usr/local, so i believe, that must be a relative path to above. Evaggelos Balaskas Unix System Engineer - http://ebalaskas.gr.
On Tue, Dec 06, 2011 at 09:33:46PM +0200, Evaggelos Balaskas wrote:
I have:
qemu-kvm 0.15.1
$ grep -i augeas /opt/dnl/sw/kvm/libguestfs-1.14.5/appliance/supermin.d/hostfiles [ empty ]
$ grep -i augeas /usr/local/lib/guestfs/supermin.d/hostfiles [ empty ]
This is surprising. Assuming: (1) augeas is listed in appliance/packagelist _and_ (2) the ArchLinux package is called 'augeas' _and_ (3) augeas is available as a package in whatever ArchLinux repo that febootstrap connects to then this is a bug in febootstrap's ArchLinux support. I don't have an ArchLinux VM around right now, but you can have to have a look at: http://git.annexia.org/?p=febootstrap.git;a=blob;f=src/febootstrap_pacman.ml... or ask Thomas Hatch who I think added support originally. It'll probably help first to run febootstrap with all verbosity enabled (febootstrap -v) and take a close look at the messages it prints. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
On Tue, Dec 6, 2011 at 9:47 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
(1) augeas is listed in appliance/packagelist _and_
confirmed #ifdef ARCHLINUX ... augeas ... #endif /* ARCHLINUX */
(2) the ArchLinux package is called 'augeas' _and_
confirmed $ pacman -Ss augeas community/augeas 0.9.0-1 [0,36 MB] A configuration editing tool that parses config files and transforms them into a tree
(3) augeas is available as a package in whatever ArchLinux repo that febootstrap connects to
confirmed :: Retrieving packages from community... augeas-0.9.0-1-i686 2.4M 500.4K/s 00:00:05 [------------------------------------] 100%
run febootstrap with all verbosity enabled (febootstrap -v) and take a close look at the messages it prints.
febootstrap -v -o supermin.d --names linux vim btrfs-progs-unstable cryptsetup diffutils augeas zfs-fuse e2fsprogs grub iputils nilfs-utils ntfsprogs ntfs-3g reiserfsprogs udev util-linux-ng xz acl attr bash binutils coreutils cpio dosfstools file findutils gawk grep gzip jfsutils lsof lvm2 lzop mdadm module-init-tools net-tools parted procps scrub strace tar xfsprogs zerofree --exclude ^perl --exclude ^python --exclude ^plymouth --exclude ^linux-firmware --exclude ^kbd-misc
Rich.
Evaggelos Balaskas Unix System Engineer - http://ebalaskas.gr.
On Tue, Dec 06, 2011 at 11:29:35PM +0200, Evaggelos Balaskas wrote:
On Tue, Dec 6, 2011 at 9:47 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
(1) augeas is listed in appliance/packagelist _and_
confirmed
#ifdef ARCHLINUX ... augeas ... #endif /* ARCHLINUX */
and that's in appliance/packagelist (not .in)?
(2) the ArchLinux package is called 'augeas' _and_
confirmed
$ pacman -Ss augeas community/augeas 0.9.0-1 [0,36 MB] A configuration editing tool that parses config files and transforms them into a tree
(3) augeas is available as a package in whatever ArchLinux repo that febootstrap connects to
confirmed
:: Retrieving packages from community... augeas-0.9.0-1-i686 2.4M 500.4K/s 00:00:05 [------------------------------------] 100%
run febootstrap with all verbosity enabled (febootstrap -v) and take a close look at the messages it prints.
febootstrap -v -o supermin.d --names linux vim btrfs-progs-unstable cryptsetup diffutils augeas zfs-fuse e2fsprogs grub iputils nilfs-utils ntfsprogs ntfs-3g reiserfsprogs udev util-linux-ng xz acl attr bash binutils coreutils cpio dosfstools file findutils gawk grep gzip jfsutils lsof lvm2 lzop mdadm module-init-tools net-tools parted procps scrub strace tar xfsprogs zerofree --exclude ^perl --exclude ^python --exclude ^plymouth --exclude ^linux-firmware --exclude ^kbd-misc
No messages at all? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
I'm downloading and installing ArchLinux again, but I can't promise I'll be able to fix this. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
On Tue, Dec 6, 2011 at 11:47 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
#ifdef ARCHLINUX ... augeas ... #endif /* ARCHLINUX */
and that's in appliance/packagelist (not .in)?
both
febootstrap -v -o supermin.d --names linux vim btrfs-progs-unstable cryptsetup diffutils augeas zfs-fuse e2fsprogs grub iputils nilfs-utils ntfsprogs ntfs-3g reiserfsprogs udev util-linux-ng xz acl attr bash binutils coreutils cpio dosfstools file findutils gawk grep gzip jfsutils lsof lvm2 lzop mdadm module-init-tools net-tools parted procps scrub strace tar xfsprogs zerofree --exclude ^perl --exclude ^python --exclude ^plymouth --exclude ^linux-firmware --exclude ^kbd-misc
No messages at all?
The output is the creation of a febootstrap directory with the above packages (after download them). find ./febootstrap499c4455f9bd404d2891cbb2fc1f2c79.tmp/ | grep augeas ./febootstrap499c4455f9bd404d2891cbb2fc1f2c79.tmp/augeas-0.9.0-1-i686.pkg.tar.xz I am not so sure that the problem exists in febootstrap or archlinux. Keep in mind that i use sources in my linux box. But perhaps i am missing something at the moment & i need some sleep. PS: Again, thanks for your help dude. Evaggelos Balaskas Unix System Engineer - http://ebalaskas.gr.
After a lot of try & errors, i think i figured it out. If i am wrong, plz be kind with me. I have removed every file from augeas & libguestfs installation. I installed augeas 0.9.0 and changed the prefix path from /usr/local/ to /usr reinstalled libguestfs 1.14.5 (./configure && make && make install) and it seems that is working. I'll try to get a clean archlinux box and re-trace my footsteps Evaggelos Balaskas Unix System Engineer - http://ebalaskas.gr.
On 12/07/2011 03:28 PM, Evaggelos Balaskas wrote:
After a lot of try & errors, i think i figured it out.
If i am wrong, plz be kind with me.
I have removed every file from augeas & libguestfs installation.
I installed augeas 0.9.0 and changed the prefix path from /usr/local/ to /usr
reinstalled libguestfs 1.14.5 (./configure && make && make install)
and it seems that is working.
I'll try to get a clean archlinux box and re-trace my footsteps
Yeah, as I guessed, the issue is below like you said:
It seems that libguestfs includes [appliance/make.sh.in]:
/usr/share/augeas/lenses/*.aug
but in my linux box i have:
/usr/local/share/augeas/lenses
[built from source]
In augeas.pc exist the prefix=/usr/local, so i believe, that must be a relative path to above.
Thanks -Wanlong Gao
Evaggelos Balaskas Unix System Engineer - http://ebalaskas.gr.
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
participants (3)
-
Evaggelos Balaskas -
Richard W.M. Jones -
Wanlong Gao