Jump to content

Fast OS X in QEMU -only Compilers needed-


  • Please log in to reply
13 replies to this topic

#1
joostpossemiers

joostpossemiers

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts
http://m2.dad-answer...topic.php?t=223

People have managed to run OS X in QEMU rather fast. The only thing we need at the moment is someone to compile a modified version of QEMU on Linux and Windows. As i -a noob- don't know how to compile an application, someone has to help me.

1. First, download the QEMU source code http://fabrice.bella...7.2-i386.tar.gz
2. Follow these instructions:

You need to edit target-i386/helper2.c, search it :
Code:

#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 .

3. compile (see this: http://fabrice.bella...-doc.html#SEC47 )

Can anywone make a preconfigured image of this for Windows?

A screenshot:

http://img360.images...acosx1512rb.jpg

EDIT: AN OTHER (BETTER) GUIDE: http://www.win2osx.n...hread.php?t=431

#2
Zeph

Zeph

    InsanelyMac Protégé

  • Members
  • PipPip
  • 91 posts
I think if u use search, this is already on the site somewhere.

#3
joostpossemiers

joostpossemiers

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts
Note: this is a modified version of QEMU which will emulate SSE2 in normal PC mode, it's FASTER than using the x86_64-mode.

#4
Mr. Bond

Mr. Bond

    The man with the golden gun.

  • Retired
  • 881 posts
  • Gender:Male
  • Location:Canada
Yes Zeph, I thought the same thing as you at first, but then after a closer look, realised what he was asking. He realises there is a Windows version of Qemu out there, just not one specifically compiled with the code changes above. So, not being experienced in this sort of stuff, I leave it to whoever is... ;)

#5
joostpossemiers

joostpossemiers

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts

Yes Zeph, I thought the same thing as you at first, but then after a closer look, realised what he was asking. He realises there is a Windows version of Qemu out there, just not one specifically compiled with the code changes above. So, not being experienced in this sort of stuff, I leave it to whoever is... ;)


The problem is: there isn't a Linux version avaiable eider. You've got to compile it yourself on Linux. Can't someone make a binary installer for Linux and Windows so SSE-users can use OSX86 on a fast(er) way?

#6
darkhooda

darkhooda

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
I'll try to compile it and post a RAR on here, unfortunately the instructions seem slightly out of date, so I'll try.

Edit: Can't get it working, the instructions don't work or are too ambiguous for me.

#7
joostpossemiers

joostpossemiers

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts
Be sure to follow these instructions:

http://m2.dad-answer...topic.php?t=223

#8
joostpossemiers

joostpossemiers

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts
Note: those folks are using QEMU 0.7.1

You can compile Bochs with SSE2 emulation using:

--enable-sse=LEVEL no Add support for SSE instructions, written by Stanislav Shwartsman. For SSE only, use --enable-sse=1. For SSE and SSE2, use --enable-sse=2.


which means: in a terminal window, cd to Bochs source, type "sh configure --enable-cpu-level=6 --enable-sse=2" ,"make" and "make install".

http://bochs.sourcef...user/book1.html

#9
joostpossemiers

joostpossemiers

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts
Another Guide!!!!

http://www.win2osx.n...hread.php?t=431

#10
joostpossemiers

joostpossemiers

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts
The correct helper2.c file: http://xavia.thenico...~nico/helper2.c
:D

#11
darkhooda

darkhooda

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
Can anyone upload the patched qemu.exe? The other site seem to have stopped hosting it, and it seems to be down. Anyone? Thanks.

#12
DrJgermeister

DrJgermeister

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,028 posts
  • Location:Somewhere in France
  • Interests:Sex, drugs and rock & roll

Can anyone upload the patched qemu.exe? The other site seem to have stopped hosting it, and it seems to be down. Anyone? Thanks.

Here (for Linux):
http://forum.osx86pr...?showtopic=5055

#13
cyrana

cyrana

    Prophetess of Doom

  • Retired
  • 1,462 posts
  • Gender:Female
  • Location:Somewhere out there
Might want to say 'fast', though. I have a kqemu-enabled qemu build here on linux, and it runs windows 2000 tolerably, but it feels slower than vmware does. Useable though.

#14
joostpossemiers

joostpossemiers

    InsanelyMac Protégé

  • Members
  • Pip
  • 47 posts
http://forum.osx86pr...?showtopic=5132
Here for Windows-users.

Thx, DrJgermeister!!!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy