Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qemu can't find x86 definitions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Wed Nov 11, 2009 4:06 pm    Post subject: qemu can't find x86 definitions Reply with quote

Hello,

In my make.conf I put this :

QEMU_SOFTMMU_TARGETS="i386 x86_64"
QEMU_USER_TARGETS="i386 x86_64"


Then I compiled qemu without problems.
But when I want to start qemu with qemu -cpu x86_64 -boot d -m 256 gentoo.img
I get this message :

Unable to find x86 CPU definition

What went wrong here ?

Roelof
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Wed Nov 11, 2009 4:51 pm    Post subject: Reply with quote

Try `qemu-x86_64` rather than just `qemu`.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Wed Nov 11, 2009 4:57 pm    Post subject: Reply with quote

Hello,

Then I get command not found.

Roelof
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Wed Nov 11, 2009 5:16 pm    Post subject: Reply with quote

:?

Is this on a 32- or 64-bit host?

What do `equery f qemu | grep ^/usr/bin/` and `qemu -cpu ?` return?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Wed Nov 11, 2009 5:31 pm    Post subject: Reply with quote

Hello

Equery not found.

qemu: option '-cpu' requires an argument


It's on a 64 bit host.

Roelof
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Wed Nov 11, 2009 5:40 pm    Post subject: Reply with quote

You'll need to emerge gentoolkit for equery, alternatively ` grep /usr/bin/ /var/db/pkg/app-emulation/qemu-*/CONTENTS | cut -d ' ' -f 2` will give the same list.

Did you include the question mark (?) in the `qemu -cpu ?` command?

And what version of qemu is this?
In fact, could you post the `emerge -pv qemu` output?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Wed Nov 11, 2009 5:45 pm    Post subject: Reply with quote

Hello,

The equery gives no output.

qemu -cpu ? gives this :
Code:

x86           qemu32
x86              486
x86          pentium
x86         pentium2
x86         pentium3


Emerge -pv qemu gives this :
Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-emulation/qemu-0.9.1  0 kB


Roelof

/ The grep command gives this command :
Code:

/usr/bin/qemu-system-arm
/usr/bin/qemu-system-mips64
/usr/bin/qemu-system-sparc
/usr/bin/qemu
/usr/bin/qemu-system-mips
/usr/bin/qemu-system-ppcemb
/usr/bin/qemu-system-mips64el
/usr/bin/qemu-system-ppc
/usr/bin/qemu-system-cris
/usr/bin/qemu-system-ppc64
/usr/bin/qemu-system-x86_64
/usr/bin/qemu-system-mipsel
/usr/bin/qemu-img
/usr/bin/qemu-system-sh4eb
/usr/bin/qemu-system-m68k
/usr/bin/qemu-system-sh4
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Wed Nov 11, 2009 6:03 pm    Post subject: Reply with quote

Ah, I have 0.11 installed, may explain why I have differnt options.

See if `qemu-system-x86_64 -cpu ?` lists any 64-bit capable options, and try those if it does.

If not, you may want to upgrade to 0.11.

Also, 64-bit guest support seems to be somewhat experimental, at least with kqemu.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Thu Nov 12, 2009 10:26 am    Post subject: Reply with quote

Oke,

I installed version 0.11.
When I do : qemu-system-x86_64 -boot d -m 256 gentoo.img

I get this message :
[code]
Booting from cdrom
Cdrom boot failure code : 003
Boot failed : could not read the boot disk.
[code]

Im sure the dvd is bootable because I have installed Gentoo with it.

How to solve this ?

Roelof
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Thu Nov 12, 2009 11:01 am    Post subject: Reply with quote

Try this;
Code:
qemu-system-x86_64 -boot d -m 256 -cdrom gentoo.img
Also, you could try qemu-x86_64 rather than qemu-system-x86_64, which you probably have now with 0.11, although honestly don't know wtf the difference between the two are...
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Thu Nov 12, 2009 11:57 am    Post subject: Reply with quote

Hello,

Both no luck.

With these : emu-system-x86_64 -boot d -m 256 -cdrom gentoo.img Im now getting a boot error 5
and when i change it to qemu-x86_64 -boot d -m 256 -cdrom gentoo.img I see only a help screen.


Roelof
Back to top
View user's profile Send private message
chigo29
n00b
n00b


Joined: 13 Nov 2009
Posts: 1

PostPosted: Fri Nov 13, 2009 9:02 am    Post subject: Reply with quote

Ah, tengo 0.11 instalado, puede explicar por qué he opciones differnt.
A ver si `qemu-system-x86_64-CPU?` Listas de 64-bit de opciones capaces, y juzgar a los si lo hace.
Si no, puede que desee actualizar a 0.11.
Además, soporte de 64-bit de resultados parece ser un tanto experimental, por lo menos con kqemu.
_________________
Debt Consolidation Online
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Fri Nov 13, 2009 9:28 am    Post subject: Reply with quote

Hello,

Can you tell me this in English ?

Roelof
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum