Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I recently put QEMU on my computer running Mandriva 2006, which was probably one of the easiest installs I've ever done (I used the pre-compiled binaries). Once I installed the program, it was quite simple for me to make a blank image file, and then once I was able to get my hands on a bootable copy of XP, installing XP into the image went well. However, when I tried to get the Accelerator module for QEMU, thats when I started to run into problems. After unpacking the source, I ran ./configure in the terminal as root, and here is the resulting output:
Quote:
[crashsystems@localhost kqemu-1.3.0pre9]$ su
Password:
[root@localhost kqemu-1.3.0pre9]# ./configure
Could not find kernel includes in /lib/modules or /usr/src/linux - cannot build the kqemu module
Source path /home/crashsystems/Temp/qemu/kqemu-1.3.0pre9
C compiler gcc
Host C compiler gcc
make make
host CPU i386
./configure: line 344: test: =: unary operator expected
FYI my kernel is 2.6.12-12. I read in the documentation that some older kernels can have problems with the module, but I also read in the same place that if you have a 2.6 kernel, that all the necessary kernel modules should be fine. I'm hoping that this won't mean I have to re-compile my kernel. If anyone has some advice, it would be greatly appreciated. Thanks for you help.
You should only need the kernel-headers for your current kernel version to allow the qemu accelerator module to be compiled.
Ok, but where could I get the kernel-headers for my 2.6.12-12 kernel, or if they are on my computer and I just don't know about it, how would I point the ./configure script to them?
After spending an insane amount of time working on this, I was finaly able to find a copy of my kernel source with the kernel-headers needed to make the configure script work. So I hopped onto the termenal, su to root, then went into the kqemu dir and ran the configure script, then make and make install, and all that worked smoothly. However, when I ran qemu to open my winxp image, this is what happend.
[root@localhost qemu]# qemu winxp.img
Version mismatch between kqemu module and qemu (00010100 00010300) - disabling kqemu use
Thanks for your help in getting me this far. If you have any ideas how to fix this, that would be great.
i'm kind of a newbie and i didn't find the kernel-headers for my suse 10.1. i'd like to run qemu at the faster rate it should, so could anyone please give me some hints about where i could find those headers?
Last edited by sindbad1900; 10-20-2006 at 03:21 PM..
I don't have that distro, so I'm not sure where you would find them. However, the first place I would check is your install cd. If you don't find it there, you can post a question about it in the suse distro sub-forum, and you could also check the suse website.
i thought to myself: every header used for the compilation of the kernel is in ... the kernel source. there's even a package called like that on the dvd.
now i have the same problem as you. i'm looking for a newer qemu now, it should do the trick
btw u should get a newer qemu (mine is newer than yours anyway)
Last edited by sindbad1900; 10-21-2006 at 04:19 AM..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.