View previous topic :: View next topic |
Author |
Message |
doctor0 n00b


Joined: 16 Jan 2006 Posts: 11
|
Posted: Mon Jan 16, 2006 10:42 pm Post subject: Non mi funziona l'accelerazione su qemu |
|
|
Il modulo kqemu è caricato, ma qemu non parte con l'accelerazione perchè afferma che non riesce ad aprire il device /dev/kqemu
Cosa devo fare?
Incollo qui qualcosa di più esplicativo:
Code: |
renzocasa ~ # whoami
root
renzocasa ~ # emerge -pv kqemu qemu-softmmu
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] app-emulation/kqemu-0.7.2 USE="sdl" 0 kB
[ebuild R ] app-emulation/qemu-softmmu-0.8.0 USE="kqemu sdl" 0 kB
Total size of downloads: 0 kB
renzocasa ~ # lsmod |grep kqemu
kqemu 38920 0
renzocasa ~ # ls -l /dev/kqemu
crwxrwxrwx 1 root root 250, 0 Jan 15 01:52 /dev/kqemu
renzocasa ~ # qemu -hda test.img
Could not open '/dev/kqemu' - QEMU acceleration layer not activated
|
Se può essere utile come dato... uso la versione del kernel 2.6.15 |
|
Back to top |
|
 |
makoomba Bodhisattva


Joined: 03 Jun 2004 Posts: 1856
|
Posted: Tue Jan 17, 2006 10:40 am Post subject: |
|
|
per caso ti dà qualche errore relativo alla dimensione di /dev/shm ?
controlla anche l'output di dmesg _________________ When all else fails, read the instructions. |
|
Back to top |
|
 |
doctor0 n00b


Joined: 16 Jan 2006 Posts: 11
|
Posted: Tue Jan 17, 2006 11:53 am Post subject: |
|
|
Non sembra esserci niente di anomalo.
Ho scaricato e ricaricato il modulo...
Code: |
renzocasa ~ # dmesg|tail
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode
QEMU Accelerator Module version 1.2.0, Copyright (c) 2005 Fabrice Bellard
This is a proprietary product. Read the LICENSE file for more information
Redistribution of this module is prohibited without authorization
KQEMU installed, max_instances=4 max_locked_mem=113168kB.
QEMU Accelerator Module version 1.2.0, Copyright (c) 2005 Fabrice Bellard
This is a proprietary product. Read the LICENSE file for more information
Redistribution of this module is prohibited without authorization
KQEMU installed, max_instances=4 max_locked_mem=113168kB.
renzocasa ~ #
|
|
|
Back to top |
|
 |
Sparker l33t


Joined: 28 Aug 2003 Posts: 992
|
Posted: Tue Jan 17, 2006 12:58 pm Post subject: |
|
|
kqemu necessita di un parametro per creare il device.
A mano:
modprobe kqemu major=0
In automatico:
echo "kqemu major=0" >> /etc/modules.autoload.d/kernel-2.6 && modules-update |
|
Back to top |
|
 |
doctor0 n00b


Joined: 16 Jan 2006 Posts: 11
|
Posted: Tue Jan 17, 2006 2:16 pm Post subject: |
|
|
Il device era già creato, infatti dentro al file /etc/modules.d/kqemu c'era scritto options kqemu major=0
Comunque ho fatto come hai detto ed ho ricaricato il modulo con l'opzione apportando le modifiche a /etc/modules.autoload.d/kernel-2.6 e riavviando addirittura il pc (non si sa mai).
Code: |
renzocasa ~ # ls -la /dev/kqemu
crwxrwxrwx 1 root root 250, 0 Jan 15 01:52 /dev/kqemu
|
Non cambia niente... il device c'è ma sembra non funzionare...
Code: |
renzocasa ~ # qemu -hda test.img
(qemu) Could not open '/dev/kqemu' - QEMU acceleration layer not activated
|
C'è qualcuno che usa kqemu con successo e che mi possa dire che versioni di kernel, qemu, kqemu usa esattamente?
Ho fatto un sacco di prove e non riesco proprio a saltarne fuori.... boh |
|
Back to top |
|
 |
Sparker l33t


Joined: 28 Aug 2003 Posts: 992
|
Posted: Tue Jan 17, 2006 6:47 pm Post subject: |
|
|
Strano...
L'errore sembra un errore di permessi, il tuo utente deve essere nel gruppo qemu. Però il device è rw da tutti...
Mi sembra assurdo, ma prova a togliere il permesso di esecuzione dal device, sul mio sistema ho:
diego@alkadia ~ $ ls -al /dev/kqemu
crw-rw---- 1 root qemu 10, 62 17 gen 2006 /dev/kqemu
e funziona perfettamente. (E anche su un laptop amd64...) |
|
Back to top |
|
 |
doctor0 n00b


Joined: 16 Jan 2006 Posts: 11
|
Posted: Wed Jan 18, 2006 6:07 pm Post subject: |
|
|
Non so cosa ho fatto.... ho cancellato tutto, riemerso tutto dall'inizio e non c'è più il neanche device /dev/kqemu.
Sto per rinunciarci.
Comunque poteva essere un problema di privilegi anche se ero root ? |
|
Back to top |
|
 |
doctor0 n00b


Joined: 16 Jan 2006 Posts: 11
|
Posted: Wed Jan 18, 2006 6:31 pm Post subject: |
|
|
Scusa Sparker.... che versione di qemu hai installato esattamente?
L'hai compilata a mano o emersa? |
|
Back to top |
|
 |
fikiz Apprentice

Joined: 07 Mar 2005 Posts: 282 Location: Italy
|
Posted: Sat Jan 21, 2006 2:15 pm Post subject: |
|
|
doctor0 wrote: |
C'è qualcuno che usa kqemu con successo e che mi possa dire che versioni di kernel, qemu, kqemu usa esattamente? |
a me qemu+kqemu funziona benissimo. va alla grande anche la rete virtuale con la macchina simulata.
ti dico cosa uso:
kernel 2.6.13-gentoo-r5
gcc version 3.3.6
qemu-softmmu-0.7.1-r1
qemu-0.7.1
qemu-user-0.7.1
il mio /etc/modules.autoload.d/kernel-2.6 contiene:
spero che ti sia d'aiuto.
ciao! |
|
Back to top |
|
 |
|