Libguestfs & ubuntu 11.10 problems
HI, All. I face problems when try to use libguestfs in new ubuntu 11.10. 1) My current version of libguest (1.12.0, binaries taken from libguestfs site) can't boot vm with new kernel. You can find log of libguest-test-tool in attachment. I try force it to boot 2.6.38-11 kernel instead of 3.0.0-12 (which is default), but get the same result (error) 2) I can't compile libguestfs from sources: make libguestfs-1.12.7 leads to: ......... CC libguestfs_la-virt.lo In file included from virt.c:38:0: guestfs.h:1737:51: error: unknown type name 'virDomainPtr' make[3]: *** [libguestfs_la-virt.lo] Error 1 make[3]: Leaving directory `/home/koder/tmp/libguestfs-1.12.7/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/koder/tmp/libguestfs-1.12.7/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/koder/tmp/libguestfs-1.12.7' make: *** [all] Error 2 make libguestfs-1.13.21 leads to: .... CCLD create_disk ../src/.libs/libguestfs.so: undefined reference to `guestfs___case_sensitive_path_silently' ../src/.libs/libguestfs.so: undefined reference to `guestfs___search_for_root' ../src/.libs/libguestfs.so: undefined reference to `guestfs___download_to_tmp' collect2: ld returned 1 exit status make[2]: *** [create_disk] Error 1 make[2]: Leaving directory `/home/koder/tmp/libguestfs-1.13.21/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/koder/tmp/libguestfs-1.13.21' make: *** [all] Error 2 System info: koder@koder-laptop:~/tmp/libguestfs-1.13.21$ virsh --version 0.9.2 koder@koder-laptop:~/tmp/libguestfs-1.13.21$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) koder@koder-laptop:~/tmp/libguestfs-1.13.21$ uname -a Linux koder-laptop 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Both versions of libguestfs configured with: ./configure --disable-ocaml --disable-perl --disable-ruby --disable-haskell --disable-php --with-java-home=no Thanks -- K.Danilov aka koder ICQ:214286120 Skype:koder.ua Tel:+38-050-4030512
On Sat, Oct 15, 2011 at 04:06:15PM +0300, KoDer wrote:
HI, All.
I face problems when try to use libguestfs in new ubuntu 11.10.
Hi: I'll just say I haven't yet had time to play with 11.10 (hey, it only came out a few days ago, ok!)
1) My current version of libguest (1.12.0, binaries taken from libguestfs site) can't boot vm with new kernel.
This isn't really surprising. Because of the supermin appliance, the binaries only work on the precise distro they are compiled for. The libguestfs-test-tool output seems to confirm this.
2) I can't compile libguestfs from sources: make libguestfs-1.12.7 leads to: ......... CC libguestfs_la-virt.lo In file included from virt.c:38:0: guestfs.h:1737:51: error: unknown type name 'virDomainPtr'
This is a proper bug though. You should not need 'libvirt-dev' to compile libguestfs. You can try installing 'libvirt-dev' as a workaround, but really we should fix this. [...]
../src/.libs/libguestfs.so: undefined reference to `guestfs___case_sensitive_path_silently' ../src/.libs/libguestfs.so: undefined reference to `guestfs___search_for_root' ../src/.libs/libguestfs.so: undefined reference to `guestfs___download_to_tmp'
... and possibly 'libhivex-dev' and 'libpcre-dev' too. 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
Hi, Richard. Sure, ubuntu 11.10 is a quite new so treat this a beta-tester report :) I already have libvirt-dev, libpcre3-dev and libhivex-dev koder@koder-laptop:~/tmp/libguestfs-1.13.21$ dpkg -l | grep libvirt ii libvirt-bin 0.9.2-4ubuntu15 the programs for the libvirt library ii libvirt-dev 0.9.2-4ubuntu15 development files for the libvirt library ii libvirt0 0.9.2-4ubuntu15 library for interfacing with different virtualization systems ii libvirtodbc0 6.1.3+dfsg1-1ubuntu1 high-performance database - ODBC libraries ii python-libvirt 0.9.2-4ubuntu15 libvirt Python bindings koder@koder-laptop:~/tmp/libguestfs-1.13.21$ dpkg -l | grep libpcre ii libpcre3 8.12-3ubuntu2 Perl 5 Compatible Regular Expression Library - runtime files ii libpcre3:i386 8.12-3ubuntu2 Perl 5 Compatible Regular Expression Library - runtime files ii libpcre3-dev 8.12-3ubuntu2 Perl 5 Compatible Regular Expression Library - development files ii libpcrecpp0 8.12-3ubuntu2 Perl 5 Compatible Regular Expression Library - C++ runtime files koder@koder-laptop:~/tmp/libguestfs-1.13.21$ dpkg -l | grep libhive ii libhivex-dev 1.2.7-1build1 library for reading and writing Windows Registry hives ii libhivex0 1.2.7-1build1 library for reading and writing Windows Registry hives Thanks 2011/10/15 Richard W.M. Jones <rjones@redhat.com>:
On Sat, Oct 15, 2011 at 04:06:15PM +0300, KoDer wrote:
HI, All.
I face problems when try to use libguestfs in new ubuntu 11.10.
Hi:
I'll just say I haven't yet had time to play with 11.10 (hey, it only came out a few days ago, ok!)
1) My current version of libguest (1.12.0, binaries taken from libguestfs site) can't boot vm with new kernel.
This isn't really surprising. Because of the supermin appliance, the binaries only work on the precise distro they are compiled for. The libguestfs-test-tool output seems to confirm this.
2) I can't compile libguestfs from sources: make libguestfs-1.12.7 leads to: ......... CC libguestfs_la-virt.lo In file included from virt.c:38:0: guestfs.h:1737:51: error: unknown type name 'virDomainPtr'
This is a proper bug though. You should not need 'libvirt-dev' to compile libguestfs. You can try installing 'libvirt-dev' as a workaround, but really we should fix this.
[...]
../src/.libs/libguestfs.so: undefined reference to `guestfs___case_sensitive_path_silently' ../src/.libs/libguestfs.so: undefined reference to `guestfs___search_for_root' ../src/.libs/libguestfs.so: undefined reference to `guestfs___download_to_tmp'
... and possibly 'libhivex-dev' and 'libpcre-dev' too.
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
-- K.Danilov aka koder ICQ:214286120 Skype:koder.ua Tel:+38-050-4030512
On Sun, Oct 16, 2011 at 04:41:37AM +0300, KoDer wrote:
Hi, Richard.
Sure, ubuntu 11.10 is a quite new so treat this a beta-tester report :)
I already have libvirt-dev, libpcre3-dev and libhivex-dev
I got it working fine over here. Some patches may be required to febootstrap, which I CC'd you on. No patches were needed to libguestfs. It just compiled from source. Attached is the complete list of packages that I have installed on the Ubuntu machine, in case that helps. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
In fact one small patch is needed in order to pass the LVM tests: http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=6d7d645cdd4a9c94c4d9... Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
participants (2)
-
KoDer -
Richard W.M. Jones