Richard W.M. Jones
2010-Mar-31 18:32 UTC
[Libguestfs] libguestfs-1.0.85-1.el5.5 - seems no KVM acceleration support included
On Wed, Mar 31, 2010 at 09:26:24PM +0300, Active Systems O? wrote:> Hi, > > As I couldnt find any appropriate bugzilla - so I'll post directly to you. There seems to be a problem with EPEL repo libguestfs-1.0.85-1.el5.5 rpm (x86_64) - for example it is very slow with VM filesystem copy as it does not make use of KVM acceleration (running plain qemu). > Running libguestfs-test-tool reveals that libguestfs is looking for /dev/kqemu and ofcourse its not there in case of CentOS/RHEL (5.4). Im not yet entirely sure why it does not use KVM - but I guess it can be missing from build already. We are trying to rebuild src rpm on CentOS 5.4 but encountering still some (probably dependency) problems. >Does this help? http://libguestfs.org/FAQ.html#slow Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
Richard W.M. Jones
2010-Mar-31 19:29 UTC
[Libguestfs] libguestfs-1.0.85-1.el5.5 - seems no KVM acceleration support included
On Wed, Mar 31, 2010 at 10:17:13PM +0300, Active Systems O? wrote:> No - /dev/kvm is already with right perms: > ls -l /dev/kvm > crw-rw-rw- 1 root kvm 10, 232 26. m?rts 10:01 /dev/kvm >[...]> Here is the libguestfs-test-tool log example (first block):[...]> /usr/bin/qemu-system-x86_64 \As you noted, the answer is this line -- it's running the wrong qemu. The simplest fix is just to change qemu by setting LIBGUESTFS_QEMU=/usr/bin/qemu-kvm (see: http://libguestfs.org/guestfs.3.html#qemu_wrappers) In broader terms, I think this is an issue with how libguestfs is built: http://cvs.fedoraproject.org/viewvc/EL-5/libguestfs/libguestfs.spec?view=markup http://kojipkgs.fedoraproject.org/packages/libguestfs/1.0.85/1.el5.9/data/logs/x86_64/build.log checking for qemu-kvm... no checking for qemu-system-x86_64... /usr/bin/qemu-system-x86_64 checking for guestfwd support in /usr/bin/qemu-system-x86_64... no Apparently we need to BuildRequire kvm (not qemu-system-x86) on EL-5. I'll have a look at fixing this. 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
Richard W.M. Jones
2010-Mar-31 19:30 UTC
[Libguestfs] libguestfs-1.0.85-1.el5.5 - seems no KVM acceleration support included
On Wed, Mar 31, 2010 at 10:24:42PM +0300, Active Systems O? wrote:> About libguestfs-1.0.85-1.el5.5.src.rpm rebuilding - dependecy rpm > packages seem be all there as checked from spec file but rpmbuild > -ba fails with some simple cp error. When I cd into BUILD/libguestfs > dir and do manual ./configure and make - they seem to work. So > something wrong with spec file probably.In your ~/.rpmmacros file, add this line: %libguestfs_buildnet 1 Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
Richard W.M. Jones
2010-Mar-31 21:18 UTC
[Libguestfs] libguestfs-1.0.85-1.el5.5 - seems no KVM acceleration support included
On Wed, Mar 31, 2010 at 11:24:30PM +0300, Active Systems O? wrote: [Please CC your messages to libguestfs mailing list, since the answer may help others in future.]> One more error popped up during building - any clues what might be wrong or how to bypass that test? It might be related to locale - Im using by default: > LANG=et_EE.utf8 > LC_CTYPE="et_EE.utf8" > LC_NUMERIC="et_EE.utf8" > LC_TIME="et_EE.utf8" > LC_COLLATE="et_EE.utf8" > LC_MONETARY="et_EE.utf8" > LC_MESSAGES="et_EE.utf8" > LC_PAPER="et_EE.utf8" > LC_NAME="et_EE.utf8" > LC_ADDRESS="et_EE.utf8" > LC_TELEPHONE="et_EE.utf8" > LC_MEASUREMENT="et_EE.utf8" > LC_IDENTIFICATION="et_EE.utf8" > LC_ALL> > Ill try to change back to en_US. > > Build log: > > PASS: test-getdtablesize > PASS: test-getgroups > PASS: test-getline > test-getlogin_r.c:55: assertion failed > /bin/sh: line 5: 7764 Aborted EXEEXT='' srcdir='.' LOCALE_FR='fr_FR' LOCALE_FR_UTF8='fr_FR.UTF-8' LOCALE_JA='ja_JP' LOCALE_ZH_CN='zh_CN.GB18030' LOCALE_FR_UTF8='fr_FR.UTF-8' LOCALE_FR='fr_FR' LOCALE_FR_UTF8='fr_FR.UTF-8' LOCALE_JA='ja_JP' LOCALE_ZH_CN='zh_CN.GB18030' ${dir}$tst > FAIL: test-getlogin_r > PASS: test-gettimeofday > PASS: test-glob > PASS: test-hash > PASS: test-inet_ntop > PASS: test-inet_pton > PASS: test-lchown > PASS: test-lseek.sh > PASS: test-lstat > PASS: test-mbrtowc1.sh > PASS: test-mbrtowc2.sh > PASS: test-mbrtowc3.sh > PASS: test-mbrtowc4.sh > PASS: test-mbsinit.sh > PASS: test-mbsrtowcs1.sh > PASS: test-mbsrtowcs2.sh > PASS: test-mbsrtowcs3.sh > PASS: test-mbsrtowcs4.sh > PASS: test-memchr > PASS: test-memrchr > PASS: test-mkdir > PASS: test-netdb > PASS: test-netinet_in > PASS: test-open > PASS: test-fchownat > PASS: test-fstatat > PASS: test-mkdirat > PASS: test-openat > PASS: test-unlinkat > PASS: test-perror.sh > PASS: test-pread.sh > PASS: test-priv-set > PASS: test-rawmemchr > PASS: test-readlink > PASS: test-rmdir > Unconnected socket test... passed > Connected sockets test... passed > General socket test with fork... passed > Pipe test... passed > PASS: test-select > ./test-select-in.sh: line 21: echo: write error: Broken pipe > PASS: test-select-in.sh > PASS: test-select-out.sh > PASS: test-sleep > PASS: test-snprintf > PASS: test-sockets > PASS: test-stat > PASS: test-stat-time > PASS: test-stdbool > PASS: test-stddef > PASS: test-stdint > PASS: test-stdio > PASS: test-stdlib > PASS: test-strchrnul > PASS: test-strerror > PASS: test-string > PASS: test-symlink > PASS: test-symlinkat > PASS: test-sys_ioctl > PASS: test-sys_select > PASS: test-sys_socket > PASS: test-sys_stat > PASS: test-sys_time > PASS: test-sys_wait > PASS: test-time > PASS: test-dup-safer > PASS: test-unistd > PASS: test-unlink > PASS: test-usleep > skipping test: setting symlink time not supported on this file system > SKIP: test-utimens > PASS: test-vasnprintf > PASS: test-vasprintf > PASS: test-wchar > PASS: test-wctype > PASS: test-xalloc-die.sh > ===================> 1 of 93 tests failed > (1 test was not run) > ===================> make[6]: *** [check-TESTS] Error 1 > make[6]: Leaving directory `/home/rpmbuilder/redhat/BUILD/libguestfs-1.0.85/daemon/tests' > make[5]: *** [check-am] Error 2 > make[5]: Leaving directory `/home/rpmbuilder/redhat/BUILD/libguestfs-1.0.85/daemon/tests' > make[4]: *** [check-recursive] Error 1 > make[4]: Leaving directory `/home/rpmbuilder/redhat/BUILD/libguestfs-1.0.85/daemon/tests' > make[3]: *** [check] Error 2 > make[3]: Leaving directory `/home/rpmbuilder/redhat/BUILD/libguestfs-1.0.85/daemon/tests' > make[2]: *** [check-recursive] Error 1 > make[2]: Leaving directory `/home/rpmbuilder/redhat/BUILD/libguestfs-1.0.85/daemon' > make[1]: *** [check] Error 2 > make[1]: Leaving directory `/home/rpmbuilder/redhat/BUILD/libguestfs-1.0.85/daemon' > make: *** [check-recursive] Error 1 > error: Bad exit status from /home/rpmbuilder/redhat/tmp/rpm-tmp.68538 (%check) > > > RPM build errors: > Bad exit status from /home/rpmbuilder/redhat/tmp/rpm-tmp.68538 (%check)It's a gnulib bug. I'm not sure what, but you can generally skip these, or report the bug directly to the gnulib upstream: http://www.gnu.org/software/gnulib/ 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