LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 07-17-2006, 02:24 PM   #1
crashsystems
Member
 
Registered: May 2006
Location: Tennessee et. al
Distribution: Debian Sid, Etch
Posts: 138

Rep: Reputation: 15
QEMU Accelerator Problems


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.

crashsystem
 
Old 07-17-2006, 02:47 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
You should only need the kernel-headers for your current kernel version to allow the qemu accelerator module to be compiled.
 
Old 07-17-2006, 02:53 PM   #3
crashsystems
Member
 
Registered: May 2006
Location: Tennessee et. al
Distribution: Debian Sid, Etch
Posts: 138

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Matir
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?
 
Old 07-17-2006, 03:21 PM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
Most likely it's a package you need to install from mandriva.
 
Old 07-17-2006, 04:39 PM   #5
crashsystems
Member
 
Registered: May 2006
Location: Tennessee et. al
Distribution: Debian Sid, Etch
Posts: 138

Original Poster
Rep: Reputation: 15
Ok, I've searched through the mandriva package installation program, and I've googled for it a bunch, but I still cannot find the kernel-headers.
 
Old 07-17-2006, 08:44 PM   #6
crashsystems
Member
 
Registered: May 2006
Location: Tennessee et. al
Distribution: Debian Sid, Etch
Posts: 138

Original Poster
Rep: Reputation: 15
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.
 
Old 10-20-2006, 01:32 PM   #7
sindbad1900
LQ Newbie
 
Registered: Oct 2006
Posts: 9

Rep: Reputation: 0
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 02:21 PM.
 
Old 10-20-2006, 07:22 PM   #8
crashsystems
Member
 
Registered: May 2006
Location: Tennessee et. al
Distribution: Debian Sid, Etch
Posts: 138

Original Poster
Rep: Reputation: 15
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.

crashsystems
 
Old 10-21-2006, 02:59 AM   #9
sindbad1900
LQ Newbie
 
Registered: Oct 2006
Posts: 9

Rep: Reputation: 0
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 03:19 AM.
 
Old 11-22-2006, 01:20 PM   #10
YeeHaa4LINUX
LQ Newbie
 
Registered: Sep 2004
Posts: 17

Rep: Reputation: 1
SuSE users will want to read this:

http://en.opensuse.org/Qemu_with_kqe...module_support


I'm still running SuSE 9.1 with qemu and kqemu built from sources and working great.

Unfortunately, they have pulled the plug on 9.1 so I'll be upgrading to 10.2 when it's out and having to go through this hassle to get kqemu working.
 
  


Reply

Tags
kernel headers, kqemu, mandriva, qemu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with windows programs in linux (QEMU, WINE, or linux alternative) bulldogzerofive Linux - Software 2 08-18-2005 05:49 PM
download accelerator darkangel29 Linux - Software 3 07-04-2005 08:41 AM
qemu tun problems Moy Easwaran Linux - Networking 1 05-15-2005 12:20 PM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-04-2005 11:25 PM
download accelerator zaman Linux - Software 5 07-12-2003 11:39 PM


All times are GMT -5. The time now is 03:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration