You are not logged in.

#1 2005-11-14 06:38:29

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

qemu

is there any solution for building qemu+kqemu under Arch? the gcc-compact had been long gone (as i've read the discussion in the ML), and seems there is no way to compile the beast, and none of the patches i found on qemu ML would apply. any ideas? i desperately need qemu for my work.

thanks in advance.

Offline

#2 2005-11-14 13:19:20

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: qemu

I have both qemu and kqemu built and installed...

no problems...

I just took Qemu from community and Kqemu from the Aur (the "new" version of Kqemu for being exact)

compiled fine..


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#3 2005-11-14 22:56:38

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: qemu

it wont compile under gcc4.

if someone has the gcc-compact (3.4) package i would appreciate a link smile

Offline

#4 2005-11-14 23:13:20

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: qemu

but I HAVE it compiling GCC4..it didn't work when arch first switched, but now it worked

[cybertron@cybertron kqemu]$ pacman -Qi kqemu26
Name           : kqemu26
Version        : 0.7.2-3
Groups         : None
Packager       : Arch Linux (http://www.archlinux.org)
URL            : http://fabrice.bellard.free.fr/qemu/
License        : None
Architecture   : i686
Size           : 38085
Build Date     : Mon Nov  7 10:26:27 2005 UTC
Install Date   : Mon Nov  7 10:26:42 2005 UTC
Install Script : Yes
Reason:        : explicitly installed
Provides       : None
Depends On     : qemu
Required By    : None
Conflicts With : kqemu
Description    : The QEMU Accelerator Module increases the speed of QEMU when a
                 PC is emulated on a PC. Binary distribution is not allowed.
[cybertron@cybertron kqemu]$ gcc --version
gcc (GCC) 4.0.3 20051006 (prerelease)
Copyright © 2005 Free Software Foundation, Inc.

http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#5 2005-11-14 23:29:59

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: qemu

i believe you, but it wont compile here, and according to qemu FAQ it wont compile under gcc4 (so i have no idea how u got it compiled). according to qemu ML there is a patch for gcc4 but i couldnt apply it.

Offline

#6 2005-11-15 01:08:23

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: qemu

CyberTron, all you posted is the kqemu26 package from aur.. yes it builds, but it only provides the kernel moduel. We still need qemu with kqemu compiled in and, as z4ziggy says, it doesn't build on gcc4. You must have built qemu+kqemu yourself before the switch to gcc4 or something (show us your pacman -Qi qemu).

z4ziggy: I'd also like some help with figuring out how to compile qemu+kqemu.


I am a gated community.

Offline

#7 2005-11-15 01:38:43

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: qemu

Update: Here's a gcc3.4 Arch package...

Hopefully this will work, testing now..


I am a gated community.

Offline

#8 2005-11-15 02:27:00

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: qemu

... and it worked. 8)


I am a gated community.

Offline

#9 2005-11-15 07:08:38

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: qemu

like I poste in my first post  I got qemu from Community

and for the record, kqemu isn't supposed to compile either..


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#10 2005-11-15 07:09:35

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: qemu

thanks stonecrest for the gcc package.
qemu+kqemu now builds fine, but the kqemu module wont load... it reports the following :

Invalid module format

any ideas why?
[edit]
i am able to load it using "modprobe -f", but i wonder what can be the cause of this err msg...
[edit/2]
loads, but not working :

Offline

#11 2005-11-15 07:15:07

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: qemu

does it use the right kernel when building??


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#12 2005-11-15 07:18:43

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Offline

#13 2005-11-15 08:57:46

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: qemu

I assume the pkg in [community] was built with gcc3.4 - I have installed that and kqemu26 from UNSUPPORTED and it built fine.  I am also using gcc4. 

Please stopping giving CyberTron crap - he is completely correct.

Offline

#14 2005-11-15 14:43:56

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: qemu

dibblethewrecker wrote:

I assume the pkg in [community] was built with gcc3.4 - I have installed that and kqemu26 from UNSUPPORTED and it built fine.  I am also using gcc4. 

Please stopping giving CyberTron crap - he is completely correct.

thanks dtw for backing me up big_smile


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#15 2005-11-15 17:40:57

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: qemu

dtw and CyberTron - There are two parts to gettingn kqemu to work. One, you need the module that kqemu26 provides. Two, you need qemu to be compiled with kqemu - the qemu pkgbuild clearly shows that this isn't done. Heck, read the last comment on the qemu page where someone asks for it to be done.

Either you two have done more than what you're saying or you don't have kqemu properly enabled. Open qemu, press ctrl-alt-2, and type "info kqemu" - what does it say?


I am a gated community.

Offline

#16 2005-11-15 18:05:39

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: qemu

ah stonecrest, you are right, it doesn't have kqemu enabled...

sorry for not seeing this and I apologize to you..


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#17 2005-11-15 18:35:58

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: qemu

No worries CyberTron.. hopefully we can all just figure this out because I still haven't gotten it.

z4ziggy - you're right, it doesn't work sad I just realized that using gcc3.4 won't work because the kernel is obviously built with gcc4, so yes, the kqemu kernel module won't be compatible.

Damn, we're still stuck...


I am a gated community.

Offline

#18 2005-11-15 18:42:26

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: qemu

theres always qvm86 ;-)


Mr Green

Offline

#19 2005-11-15 18:51:41

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: qemu

Alright, I got it to work! Here's what you do:

1. Install gcc 3.4 with pacman.
2. Download kqemu from aur, makepkg, and install with pacman. Do not follow the instructions about modprobing because the kernel module is incompatible with the kernel.
3. Download kqemu26 from aur and edit the PKGBUILD to remove the "depends" and "conflicts" lines. Makepkg, and force install (pacman -Af). This will provide a compatible kernel module.
4. Now modprobe kqemu major=0 and you should be good to go!

(qemu) info kqemu
kqemu is enabled

smile


I am a gated community.

Offline

#20 2005-11-15 18:53:10

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: qemu

Now I'm confused ....

kqemu from AUR builds under gcc4

I understood problem is with qemu  :?

Just built kqemu from AUR np....


Mr Green

Offline

#21 2005-11-15 19:02:03

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: qemu

Mr Green - What? kqemu from AUR simply compiles qemu with kqemu. If there is a problem with qemu compiling under gcc4, then you shouldn't be able to compile the aur kqemu package. Myself and others couldn't...


I am a gated community.

Offline

#22 2005-11-15 19:03:45

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: qemu

Mr Green wrote:

Now I'm confused ....

kqemu from AUR builds under gcc4

I understood problem is with qemu  :?

Just built kqemu from AUR np....

Have I understood correctly, do I need to build qemu from source (having kqemu already isntalled?) will that be sufficent? or do I need to do anything more?


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#23 2005-11-15 19:05:38

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: qemu

installing kqemu26... done.
 
 --> Use the kqemu module option major=0 to have the device '/dev/kqemu'
 --> automatically created:
 --> 
 --> # modprobe kqemu major=0
 -->
 --> or append this to your '/etc/modprobe.conf' like so:
 --> 
 --> # echo "install kqemu modprobe -i kqemu major=0" >> /etc/modprobe.conf

from AUR ... Am I looking at the wrong package then lol

EDIT yes I am lol


Mr Green

Offline

#24 2005-11-15 19:17:23

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: qemu

well, i believe I get it now,...the package kqemu26 ONLY builds the module (not qemu) and the package kqemu  builds qemu with the module...

so if one has built qemu with kqemu support builtin then one may use the kqemu26 module, to do a quick update for the module only..

so if anyone has built just qemu with kqemu suppoort and shares that it would be enough for the rest of us since the module builds fine with gcc4

like the one in community could be built with gcc 3.4 and with kqemu support (but without have it builtin (as that would break the license)

EDIT:

saw this in the aur for qemu pkgbuild:

Comment by: brain0 on 20051026 [10:15:06]
Hi,

as this package is in community, I have a little suggestion. Why not build qemu with kqemu support and distribute it without the kernel module?

When qemu runs, it will find that kqemu is not loaded and proceed w/o acceleration.

This would be an advantage, because everyone using qemu can install the binary package from community and build the kernel module himself afterwards, so there is no need to build the whole package yourself.

This can be achieved easily by building qemu like the kqemu PKGBUILD does, but without installing the module.

AFAIK the license only restricts providing the kernel module itself, not binaries that can make use of it, so there won't be a licensing problem.


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#25 2005-11-16 20:11:42

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: qemu

thanks stonecrest, but i get "kqemu is disabled" on "info keqmu"... though i did compile+install the kqemu as u suggested and then the kqemu26. weird things are happening in here... :
module does load btw, and i have the mknod /dev/kqemu on my rc.local anyway, so it should have worked. maybe im doing something wrong?

Offline

Board footer

Powered by FluxBB