Skip to contentSkip to conversation

Booting Linux in Windows XP

Qemu-devel Aaron Feng 6 participants 9 messages Jun 16, 2005 – Jun 17, 2005

lore
Share & tools
lore

Aaron Feng

author
#0 lore raw

Yesterday I tried QEMU for the first time, I downloaded the 0.70 Windows installer package, and everything installed just fine. I also downloaded Mandrake 10 image from freeoszoo.org, but I'm having trouble to get Mandrake to boot. Here is the command I used:

qemu.exe -L "path_to_my_mandrake_image"

Nothing happened, I just get the prompt back without any errors. Is there any way for me to get a more informative error messages when I'm trying to boot?

Thanx in advance....

Aaron Feng

#1 lore raw

[Qemu-devel] re: Nothing happens

I have already sent this, but just before I was confirmed on the list, so I don't think it went through. If it did, please forgive me for a double post - and if you can let me have a ref to any replies it may have received.

I have just joined the mail list after coming up with a problem similar to one I googled here and perhaps to which I can add a bit more information. Unfortunatly, I can only add a little more prescision to the problem rather than any answers, but perhaps Rudi Lippert can verify if this is happening to him too.

I have a problem after compiling qemu with SDL-devel and KQemu support.

The problem seems similar to what has been posted and replied to in the following messages
http://www.mail-archive.com/[email protected]/msg00540.html

but I did find the following with the -monitor stdio; that when I did a screen dump qemu was running and dumping valid (linux, win 98 and winxp) screen images. I only had no access to these - in other words the emulator was working fine, both with and without kqemu, but there was no console or visual output with which to manipulate the emulated virtual machine. (ie no visual and no keyboard/mouse access to the (hidden) console.) here is my configure output

using: qemu-0.7.0-i386.tar.gz
and : kqemu-0.6.2-1.tar.gz

downloaded on Sat 11/06/2005 around 22:oo

----------------
joe@anvard:~/qemu-0.7.0> ./configure

Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /home/joe/qemu-0.7.0
C compiler        gcc
make              make
host CPU          i386
host big endian   no
target list       i386-user arm-user armeb-user sparc-user ppc-user i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu
gprof enabled     no
static build      no
SDL support       yes
SDL static link   no
mingw32 support   no
Adlib support     no
FMOD support      no
kqemu support     yes

KQEMU Linux module configuration:
kernel sources /lib/modules/2.6.8-24.16-default/build
kbuild type 2.6
-----------------

I am running under Suse 9.2 and the precompiled binaries work right "out of the box" (even the network stuff which some people seem to be having trouble with) but are just a tad too slow for what I wanted to use qemu for so I wanted to try with kqemu built in.

I first just tried without the SDL-devel libs, but that was the same, and the above mentioned thread suggested that SDL may be a cause (although I suspect we may be talking of different problems). The thing is, once the virtual machine achieves a state of "completion" (ie windows gets to the login promt, or linux gets to the bash prompt - same problem there by the way) the cpu cycles disappear as the virtual machine is not doing any work at all. So perhaps the problem is the same?

Any help would be appreciated...

#8 lore raw
In reply to Aaron Feng

2005/6/16, Aaron Feng <[email protected]>:

Quoted 10 lines

Yesterday I tried QEMU for the first time, I downloaded the 0.70 Windows installer package, and everything installed just fine. I also downloaded Mandrake 10 image from freeoszoo.org, but I'm having trouble to get Mandrake to boot. Here is the command I used:

qemu.exe -L "path_to_my_mandrake_image"

Nothing happened, I just get the prompt back without any errors. Is there any way for me to get a more informative error messages when I'm trying to boot?

Well, I guess you misunderstood the documentation, as you gave QEMU the wrong option. -L is supposed to be fed with the path to the BIOS image, not the OS image. The OS image file should be specified with -hda or -cdrom, depending on the case.

Signature · 2 lines
"I invented the term Object-Oriented, and I can tell you I did not
have C++ in mind"-Alan Kay
#2 lore raw

Re: [Qemu-devel] re: Nothing happens

In reply to Josef Moffett
Quoted 3 lines

I first just tried without the SDL-devel libs, but that was the same, and the above mentioned thread suggested that SDL may be a cause (although I suspect we may be talking of different problems).

Did you actually do a clean build after installing sdl-devel? You need to either delete your build directory or do "make clean" before rebuilding. Otherwise qemu will reuse the old (output disabled) object files.

Quoted 5 lines

The thing
is, once the virtual machine achieves a state of "completion" (ie windows gets to the login promt, or linux gets to the bash prompt - same problem there by the way) the cpu cycles disappear as the virtual machine is not doing any work at all.

That's normal. When the guest suspends the CPU (via the HLT instruction) there's no need to qemu to do anything, so it doesn't. Real CPUs do the same thing.

Paul

#3 lore raw

Re: [Qemu-devel] re: Nothing happens

Quoted 7 lines · Paul Brook
Quoted 3 lines

I first just tried without the SDL-devel libs, but that was the same, and the above mentioned thread suggested that SDL may be a cause (although I suspect we may be talking of different problems).

Did you actually do a clean build after installing sdl-devel? You need to either delete your build directory or do "make clean" before rebuilding. Otherwise qemu will reuse the old (output disabled) object files.

Don't forget that configure needs to be re-run so that SDL can be re-detected.

#5 lore raw

Re: [Qemu-devel] re: Nothing happens

In reply to Josef Moffett
Quoted 1 line · Josef Moffett

but I did find the following with the -monitor stdio; that when I did a screen dump qemu was running and dumping valid (linux, win 98 and winxp) screen images. I only had no access to these - in other words the emulator was working fine, both with and without kqemu, but there was no console or visual output with which to manipulate the emulated virtual machine. (ie no visual and no keyboard/mouse access to the (hidden) console.)

Sounds very much like the SDL driver didn't get compiled for whatever reason, or you are using the -nographic qemu command line flag do disable graphic output..

Quoted 1 line

I first just tried without the SDL-devel libs, but that was the same

If you don't have SDL development libs then only "dumb" (hidden) graphics mode is available.

Try

make clean
./configure
make

In your configure output I notice you didn't have static versions of the SDL libraries available. This will limit the availability of the SDL support somewhat.

Use the following to verify which modes have SDL support after you ran configure:

grep CONFIG_SDL */config.h

You should at least see CONFIG_SDL for i386-softmmu.

Regards
Henrik

#6 lore raw

Re: [Qemu-devel] re: Nothing happens

Quoted 3 lines

In your configure output I notice you didn't have static versions of the SDL libraries available. This will limit the availability of the SDL support somewhat.

In most cases it doesn't make any difference. Static SDL is only needed if you're building qemu-fast or you're building everything as static libraries, neither of which are the default.

Paul

#4 lore raw

Re: [Qemu-devel] re: Nothing happens

In reply to Thayne Harbaugh
Quoted 10 lines · Thayne Harbaugh
Quoted 3 lines

Did you actually do a clean build after installing sdl-devel? You need to either delete your build directory or do "make clean" before rebuilding. Otherwise qemu will reuse the old (output disabled) object files.

Don't forget that configure needs to be re-run so that SDL can be re-detected.

Quoted 6 lines

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Oh dear, what a silly bunt.

I threw the make clean out of the window, so of course it didn't work.

I cringe with shame! ;-)

Sorry to have wasted your time on something that mind bendingly simple!

Cheers

Joe

#7 lore raw

Re: [Qemu-devel] re: Nothing happens

In reply to Paul Brook
Quoted 8 lines · Paul Brook
Quoted 5 lines

In your configure output I notice you didn't have static versions of the SDL libraries available. This will limit the availability of the SDL support somewhat.

In most cases it doesn't make any difference. Static SDL is only needed if you're building qemu-fast or you're building everything as static libraries, neither of which are the default.

Quoted 9 lines

Paul

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Okay - a flood of replies.

I am going to try the make clean, etc again.

I seem to remember doing it, but can't be 100% sure so better try that. I did do the ./configure though because that gave me the option for SDL or no SDL.

Thanks for all the replies, I'll report back on that as soon as I've tried it - ie in about 10mins ;-)

Cheers

Joe