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