Work :)

Mac OS X running under QEMU

Work :)

Postby qemu_user on Sun Aug 14, 2005 6:12 pm

Qemu can run Mac OS X x86.
Screenshot:
Image

You need to edit target-i386/helper2.c, search it :
Code: Select all
#ifdef TARGET_X86_64
        /* currently not enabled for std i386 because not fully tested */
        env->cpuid_features |= CPUID_APIC;
        env->cpuid_ext2_features = (env->cpuid_features & 0x0183F3FF);
        env->cpuid_ext2_features |= CPUID_EXT2_LM | CPUID_EXT2_SYSCALL;
        env->cpuid_xlevel = 0x80000008;

        /* these features are needed for Win64 and aren't fully implemented */
        env->cpuid_features |= CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA;
#endif

and comment #ifdef TARGET_X86_64 and #endif .
qemu_user
 

Postby rejser (guest) on Wed Aug 17, 2005 2:37 pm

do you run it from the tiger-x86-flat.img?
if so, how do you run i, which parameters? ( i guess qemu-syster-x86-64 -hda /*****/tiger-x86-flat.img ....)
I tried to but get "warning: could not open /dev/net/tun:"

/Oscar
rejser (guest)
 

Postby arnoct on Sun Aug 21, 2005 5:40 pm

Yeah, I'm quite interested to see how you got this to work.
arnoct
 

Postby popo on Mon Aug 22, 2005 1:05 am

excuses me but can you be more explicit plz?

I have an error when I compile qemu:
Code: Select all
/qemu-0.7.1/target-i386/helper2.c:136:2: #endif sans #if
make[1]: *** [helper2.o] Erreur 1
make[1]: Leaving directory `/qemu-0.7.1/i386-user'
make: *** [all] Erreur 1

thx
popo
 

Postby Guest on Mon Aug 22, 2005 7:50 pm

rejser (guest) wrote:do you run it from the tiger-x86-flat.img?
if so, how do you run i, which parameters? ( i guess qemu-syster-x86-64 -hda /*****/tiger-x86-flat.img ....)
I tried to but get "warning: could not open /dev/net/tun:"

/Oscar

Boot Parameters:
platform=x86pc -v


My target-i386/helper2.c's file
Attachments
qemu_can_run_tiger_x86.jpeg
Another screenshot
Guest
 

Postby Guest on Mon Aug 22, 2005 7:52 pm

popo wrote:excuses me but can you be more explicit plz?

I have an error when I compile qemu:
Code: Select all
/qemu-0.7.1/target-i386/helper2.c:136:2: #endif sans #if
make[1]: *** [helper2.o] Erreur 1
make[1]: Leaving directory `/qemu-0.7.1/i386-user'
make: *** [all] Erreur 1

thx


It seem you are french so :

Tu as oublié de commenter une ligne.
Utilise le fichier que j'ai posté ...
Guest
 

Postby popo on Tue Aug 23, 2005 5:18 am

I finally succeeded to run macox86 with Qemu on winxp.

i have a big lagg of died! the loading is 100x longer than pearpc!

Image Image

I used the boot options of my fellow-member and used a standard version (not modified) of Qemu.

how i start qemu:

Code: Select all
"C:\Qemu-20050724\qemu-system-x86_64.exe" -L "C:\Qemu-20050724\bios" -m 512 -hda "C:\Qemu-20050724\tiger-x86-flat.img" -boot c

Boot options:
Code: Select all
platform=x86pc -v


it is very slow but it's work :)

merci pour l'astuce !

******************************************************
AMD Athlon XP 3200+ (not SSE2) 1,00 Go of RAM
popo
 

Postby popo on Tue Aug 23, 2005 7:26 pm

work on my linux box with the modified helper2.c file

Image

:P
popo
 

which bios file do you use

Postby smeagol on Tue Aug 23, 2005 8:15 pm

When i start qemu i get some errors and qemu hangs.
i followed the instructions above with the call:

qemu-system-x86_64 /imagefile.img

also i have edited the helper2.c file as shown above and then compiled qemu again. Your call of qemu has the option -L, but i dont know what bios you give
as parameter.

maybe the problem is another one. I think with qemu i can run osx without having a real sse2 capable cpu? is that right?
smeagol
 

Postby popo on Tue Aug 23, 2005 10:17 pm

i think it's necessary to use qemu bios.

if qemu is installed in /opt/qemu then the VGA bios is in /opt/qemu/share/qemu

add this line in qemu boot options: -L "/opt/qemu/share/qemu"
popo
 

Postby patjeremlinux on Wed Aug 24, 2005 8:22 am

that patch is that for display to work because I haven't use the patch for qemu and tiger-x86 boots but I only got a blue screen when display goes on.I have tried with a lot of graphics modes but still the same.
patjeremlinux
 
Posts: 10
Joined: Tue Jun 28, 2005 5:47 pm

Postby popo on Wed Aug 24, 2005 10:35 pm

popo
 

Postby Guest on Thu Aug 25, 2005 9:52 am

I don't use the x86_64 emulation.
Mac OS X dev kit is not compiled for x86_64 so use qemu :D
Guest
 

Postby phsource on Tue Sep 13, 2005 11:47 pm

You got it working with out setting the x86_64 option? How?

Edit: Never mind, only if you do a custom compilation.
phsource
 
Posts: 1
Joined: Tue Sep 13, 2005 11:42 pm

OSX with Athlon XP 2800+

Postby tjost on Thu Nov 24, 2005 4:17 pm

Hey, it make no sense but finally it works.
O.K. my Real Mac with 1.2Ghz G4 is about 67822 times faster then this but it works.

It was fun to do but now im finished. what do i now? OSX on my Amiga? Only a joke

It is sooooo slow, it take more than 2 hours to boot and for show the System Profiler. i hope there comes a faster Qemu out soon or a SSE2 path for vmware?

i used popo´s startup but then, couse of display errors i typed "platform=acpi"

and it works without a pathed .c file.

here a pic

Image

this one so u can see my real proz.


but for more its way to slow. how about your speed expirience?

Sorry for bad English
tjost
 
Posts: 3
Joined: Thu Nov 24, 2005 4:03 pm

Next

Return to Mac OS X under QEMU

Who is online

Users browsing this forum: No registered users and 1 guest