Pages

Monday, August 22, 2011

[GUIDE] OS X Lion VMware

I am not going to write an article on how to run Mac OS X Lion on the HP G62 or the HP xw4600 natively. Instead, I will show you how to install Mac OS X Lion on your computer with VMware.









What do you need?

  1. VMware Player
  2. The configuration files and patch
  3. A processor with virtualization technology (look here for Linux, and here for Windows)
  4. AT LEAST 2GB of memory
  5. AT LEAST 15GB of free Hard Disk space
  6. A file de-compressor capable of decompressing 7zip files
  7. Torrent downloader
What do you need to do?
  1. Download this file (4.72 GB may take a while)
  2. Extract the files
  3. Go to the VMware hack folder
  4. Read the README file and run the file that corresponds to your OS
  5. Open VMware player
  6. Select Open a Virtual Machine
  7. Select the .vmx file in the Mac OS X Lion VMware Files folder
  8. Configure the settings for your computer like memory
  9. Select Options, and Shared Folders, and then tick Always Enabled. You can now add your own folders.
  10. Close that window and start the virtual machine
  11. You now have Mac OS X Lion on your PC!
UPDATE: If it doesn't work on your computer at first, open the .vmx file in the VMware files folder with notepad and change from smc.present = "FALSE" to smc.present = "TRUE"

108 comments:

  1. Lol it asks for password when installing what is it?

    ReplyDelete
  2. It does? You don't install it, you run the virtual machine on VMware Player. When does it ask for a password?

    ReplyDelete
  3. The hack is for vmware workstation and does not work with vmware player. Is there a way to get it to work with vmware player? Player is free, workstation is not

    ReplyDelete
  4. @Jim I understand. I have Workstation, but also have player. I compiled the virtual machine in workstation and then ran it in player. It worked just fine. Did you try it on player? If it didn't work, try running the patch one more time and read over the instructions carefully.

    ReplyDelete
  5. @Jim Almost forgot, run as administrator and make sure all VMware apps are closed.

    ReplyDelete
  6. downloading the torrent now. Will this work on amd 64bit machines?

    ReplyDelete
  7. @Mike No it doesn't. Apple doesn't support it natively. Although if you have AMD virtualization technology, then there might be a shot at trying. What model AMD processor do you have?

    ReplyDelete
  8. @mishanet AMD Phenom x6 1035t

    ReplyDelete
  9. @mishanet i checked and my processor supports AMD-V technology.

    ReplyDelete
  10. @Mike It's well worth the try. Check back here once you've tried.

    ReplyDelete
  11. @mishanet i tried binary translation i got "max os x is not supported with software virtualization" when i tried amd-v i got "cpu has been disabled by guest operating system" :(

    ReplyDelete
  12. @Mike Is AMD-V enabled in bios? Detection software only detects if the processor is capable ov Intel-vt or AMD-v. I didn't have it enabled at first. Mine was under security in the bios.

    ReplyDelete
  13. Why, when i run this on Linux, it doesn't works?

    ... /MacOSXLion/VMwarehack$ sudo sh linux_64
    linux_64: 1: : not found
    linux_64: 1: 8 : not found
    linux_64: 1: ELF : not found
    linux_64: 2: Syntax error: ")" unexpected

    ReplyDelete
  14. @Raimon Ribera You need to run the linux file and it decides which file to execute by itself.

    ReplyDelete
  15. Everybody check the update in the post!

    ReplyDelete
  16. Is it possible to use a whole external disk, like a USB external drive, as the OS drive for the virtual machine?

    ReplyDelete
  17. @Jesse You could copy the VM files onto the flash drive and run them from there?

    ReplyDelete
  18. Does the featured VMWare image have Xcode installed, and if so, which version of Xcode?
    Cheers.

    ReplyDelete
  19. @D4ve No. I didn't install Xcode. You can get it for free on the Mac App Store.

    ReplyDelete
  20. @mishanet Thanks for the fast response. Your help is much appreciated. I would like to thank you for taking the time to create this excellent guide.

    ReplyDelete
  21. Ran on VMPlayer in Ubuntu. Got following error. Any help that one of you can offer - 'linux: 10: linux_64: not found'

    ReplyDelete
  22. @jagan Well, for the linux file to work the following things need to happen:

    1. All three linux files are in the same directory
    2. Run the "linux" file with super user\
    3. DONT RUN THE LINUX_32 OR LINUX_64 FILE!!! RUN THE LINUX FILE!!!

    If it still doesn't work, try re-downloading the hack file from here.(http://tinyurl.com/vmwarehack)

    ReplyDelete
  23. Misha - If I want to do su or sudo, what's the password for that?

    ReplyDelete
  24. Hey! Thanks for the tutorial. I'll be installing this on my dell laptop with core i7 processor. I was trying to download the torrent file but the download speed is very low. so can i download the torrent file from here instead? http://thepiratebay.org/torrent/6562848 This torrent seems well-seeded. but there is some difference in the file size which made me thinking. so please tell me whether should i use the torrent file from here or from this link instead? thanks

    ReplyDelete
  25. any chance the hardware serial number in "About" might be changeable?

    ReplyDelete
  26. @Chuck Brick su (super user)As I recall, the password is your password.

    ReplyDelete
  27. @Affinity I cannot vouch for the workability of that torrent because I did not make it myself. For this to work, you need a VMware guest patch so you can run an OS X guest. I don't know how that torrent will work. You can try it if you like though.

    ReplyDelete
  28. @Ronny I don't think so. Why do you want to change the SN?

    ReplyDelete
  29. On VirtualBox the serial would be 0 and on VMWare it is VMW.....

    I am using a software (which I bought) that is activated for my Mac (serial). Now, I'd like to use that in the VM.

    I read about smbios injection and those complicated things but that might only work with another boot loader like chameleon.

    I'd be happy if you had some thoughts on this.

    thanks.
    R

    ReplyDelete
  30. I cannot update the VMware tools.

    How can i do this ? please help

    ReplyDelete
  31. @shekhardiptiman You cannot update the VMware tools.

    ReplyDelete
  32. @mishanet finally used the torrent file that you provided..luckily download finished on the same day..and guess what..everything worked perfectly..!! thanks a ton. even i installed xcode so that i could learn iOS development. ;)

    ReplyDelete
  33. Where can I change the smc.present = "FALSE" to smc.present = "TRUE" ?

    ReplyDelete
  34. Hi Mishanet,

    Thanks for response. The purpose of updating the VMware tools was ot be able to invoke Unity to use the guest Lion in a full screen mode. At present it gives two errors :

    a. The VMWare tools need to be updated.
    b. The screen resolution of the guest OS cannot ne changed.
    Is it possible through any other way?

    ReplyDelete
  35. @Chezire open the .vmx file in the VMware configuration files with notepad, and the line will be in there.

    ReplyDelete
  36. @SD Go into system preferences in lion, set it to the resolution of your host desktop, and then go into full screen mode. It works for me. Tell me if that doesn't work.

    ReplyDelete
  37. hi mishanet,

    great help you are offering here!

    i have tried both settings of changing smc_present to true or false, it does not work. It still gives me the error of "virtual machine has entered a shutdown state" everytime i run the vm image.

    i am running a Windows 7 x64 with vmplayer.

    thanks in advance!

    ReplyDelete
  38. Hi, on Windows 7 x64 I had to rename the VMWare Player folder to VMWare Workstation to get the VMWare hack to take. I then renamed it back and it is all working fine.

    ReplyDelete
  39. @xiaodouya I don't know why this isn't working, please post some specs, and screenshots. also make sure true, false is in capitals.

    ReplyDelete
  40. @Tom Raggett: Hey Tom, that was brilliant! I think in my case, my vmware player has not been hacked yet. However, I am still facing error from getting the hack work. My error is shown at this image url: http://tinyurl.com/3bp74h8

    @mishanet: yup, i have made sure the capitals are there. What specs do you need?

    ReplyDelete
  41. I get to the grey apple logo loading screen and then nothing .....it simply continues to load

    ReplyDelete
  42. Hi,

    is there a way to use the VMware hack if vm IS NOT install in the default folder (d:\programs instead of c:\programs) ?

    Thanks

    ReplyDelete
  43. Thanks for the vmware image.

    Got it working on the following spec

    Ubuntu Linux 11.04 64-bit
    Intel core 2 duo 2.13Ghz
    6Gb RAM
    Vmware Workstation 7.1

    Got 128mb video ram in vmware, don't think I can get anymore? (have got a 1gb graphics card).

    Everything works so far, not sure about the software updates, but Xcode installed ok and iTunes is fine (recognizes my iPhone!).

    Cheers

    ReplyDelete
  44. I get this..

    ep 21 20:26:01.155: vcpu-1| [msg.dictionary.load.openFailed] Cannot open file "C:\ProgramData\VMware\dndlogs\dndlog.conf": The system cannot find the path specified.

    ReplyDelete
  45. Hi,

    Thanks for this awesome blog.. it works a treat :)

    Can you tell me what the OSX user Admin password is so I can change it and add new users.

    Thanks

    ReplyDelete
  46. @Garanth1 the password should be blank. (not the word blank, there is no password. When It needs authentication, just hit enter w/o a password.

    ReplyDelete
  47. @mrnicke Sounds like an extraction error or a download error. What did u use to extract?

    ReplyDelete
  48. @grapatu Try running the hack on that hdd. Copy the file to that hdd and run it.

    ReplyDelete
  49. I have a peculiar issue with audio. The sound is out of sync and crackly... I'm not sure what the issue is exactly. I guess it could be that my machine is lagging? I tried installing Ensoniq Audio v1.0.3 but still no luck. Any recommendations? I'm just using standard motherboard sound on windows and VM Player only shows Digital S/PDIF but is set to auto.

    ReplyDelete
  50. What is the root password for the image?

    ReplyDelete
  51. @alkos333 No password for the image. I have already explained that the password for admin is blank. Just hit enter with the username inputted.

    ReplyDelete
  52. jagan said...

    Ran on VMPlayer in Ubuntu. Got following error. Any help that one of you can offer - 'linux: 10: linux_64: not found'
    September 8, 2011 9:10 AM
    mishanet said...

    @jagan Well, for the linux file to work the following things need to happen:

    1. All three linux files are in the same directory
    2. Run the "linux" file with super user\
    3. DONT RUN THE LINUX_32 OR LINUX_64 FILE!!! RUN THE LINUX FILE!!!

    If it still doesn't work, try re-downloading the hack file from here.(http://tinyurl.com/vmwarehack)
    September 8, 2011 4:42 PM


    I am having this same problem even after re downloading the hack. Thanks in advance.

    ReplyDelete
  53. Can confirm this worked on Linux 64-bit Debian Squeeze

    Used another VMX I already downloaded with the VMHack file here: http://tinyurl.com/vmwarehack

    Had to sudo chmod +x the linux_64 file and ran that, works like a charm!

    ReplyDelete
  54. I use OpenSUSE 11.14 64bit and I got the same error :'linux: line 5: linux_64: not found'
    Does anyone have the answer for it?

    ReplyDelete
  55. I'm getting the error "guest operating system is not mac osx server" im guessing it has something to do with the patch not working right, how do i fix this?

    ReplyDelete
  56. @Unknown Rerun the patch, make sure to run as administrator. Reread the instructions and look in the comments for tips.

    ReplyDelete
  57. @Sam and anyone else w/ this problem

    Re-download the patch from here (http://tinyurl.com/vmwarehack).

    ReplyDelete
  58. @shinjuma Sounds like an audio card problem. You shouldn't need to install a seperate driver, VMware tools is installed.

    ReplyDelete
  59. Anyone with the "linux: 10: linux_64: not found"

    run the linux file using "sudo ./linux"

    I also had this issue and had tried everything previously posted

    ReplyDelete
  60. Okay so, I've tried everything and am completely lost. I really hope you still check this. I keep getting the "cpu has been disabled by guest operating system". I have tried changing the line between TRUE and FALSE. I even tried Snow Leopard with the same error. I do have virtualization and turned it on. Here are my specs:
    HP G62-340US 64-Bit
    AMD Athlon II P340 dual-Core Processor 2.20GHz
    3.00GB RAM
    SSE(1, 2, 3, 4A)
    Plenty of space (at least 50 GB)
    VMware version 7.1.3 (have also tried with latest)

    HELP! :(

    And thank you

    ReplyDelete
  61. AMD Processors currently do not work, Sorry.

    ReplyDelete
  62. One question is if KVM (and therefore vmx/smx virtualization chip support) is needed for a genuin intel processor. I have a socket 478 Intel pentium 4/Celeron processor (P4C800 delux asus MB).

    I'm asking and not just trying it since this motherboard is so old and the concern is that it would be a lot of wasted time in the case I have to update a centos 5 2.6.18 kernel and add the KVM module.

    ReplyDelete
  63. Hey mishanet,

    Thanks for helping all of us with this. I am very close to buying a G62-237US on eBay. Are you 100% sure it will run Lion with everything working (except wifi I assume)?

    Thank you!

    ReplyDelete
  64. Hi mishanet,

    Just to let you know the update to mac os x lion10.7.2, stops the vmware image from working!

    The itunes 10.5, xcode 4.2 updates work.

    ReplyDelete
  65. @zaw aung Will work on that. :-)

    ReplyDelete
  66. "I get to the grey apple logo loading screen and then nothing .....it simply continues to load"

    Same thing here.

    ReplyDelete
  67. "I get to the grey apple logo loading screen and then nothing .....it simply continues to load"

    I also get this error - Windows 7 64 usning VMware Player.

    ReplyDelete
  68. @Suicida and @RDscuba I would give it a little longer, and if it doesn't work after about 10 minutes, redownload archive.

    ReplyDelete
  69. I have successfully updated this to 10.7.2 =)
    I used http://www.insanelymac.com/forum/index.php?showtopic=270140 as the guide. In general you just save your AppleLSIFusionMPT.kext. Run the 10.7.2 combined update. NO DOT RESTART. Replace the new file with your saved one. Very simple and easy.
    If you already tried to update and now cannot boot and dont wanna loose your stuff(like i did), setup a 2nd working mac. Add Your Nonworking mac as another Hard drive in "edit virtual machine". Then boot that and copy the file from your working mac into your nonworking mac.

    ReplyDelete
  70. i to am stuck at the grey apple logo, i have made the "true"/"false" switch as per above...still no change

    ReplyDelete
  71. For the people who are trying to get this to work on VMWare Player and not getting past the apple logo screen, the "windows.bat" doesn't point to the VMWare Player folder to perform the hack.

    Edit windows.bat and replace with the following:

    @echo off
    net stop vmauthdservice

    windows_32 "C:\Program Files (x86)\VMWare\VMWare Player\x64" "C:\Program Files (x86)\VMWare\VMWare Player\vmwarebase.dll"

    net start vmauthdservice

    ReplyDelete
  72. I am getting this error when trying to run the hack

    The VMware Authorization Service service was stopped successfully.

    -----
    Mac OS X guest unlocker for VMware, version 7

    Directory C:\Program Files (x86)\VMWare\VMWare Player\x64:
    File vmware-vmx.exe:
    Unlocking Mac OS X guest on non-Mac host ...
    Unlocking Mac OS X Client guest (method 0) ...
    File vmware-vmx-debug.exe: Missing file.
    File vmware-vmx-stats.exe: Missing file.

    File C:\Program Files (x86)\VMWare\VMWare Player\vmwarebase.dll:
    Unlocking Mac OS X guest on non-Mac OS X host (method 1) ...
    Too few match sites.
    -----

    The VMware Authorization Service service is starting.
    The VMware Authorization Service service was started successfully.

    ReplyDelete
  73. @Brahim Al-Hawwas
    Did you try running Lion after that, because that doesn't look like an error...

    ReplyDelete
  74. Hi do you know how to rename the mac name from Mishanet to whatever i want instead?
    thanks anyhow for this.

    ReplyDelete
  75. @Quentin Go into the sharing menu in system prefs, and change the name there.

    ReplyDelete
  76. @Brahim Al-Hawwas:

    I got that message too.. but Lion ran perfectly after that anyway :)

    ReplyDelete
  77. thanks a lot and do you know how to change the system language? i mean not the user one but really the system one. on logon it keep me in english and keyboard to. As i'm french it's a bit confusing to be in qwerty on logon.

    ReplyDelete
  78. @kenneth i made the change to the .bat file, ran successfully, still cant get past the grey apple boot screen...any other tips?

    ReplyDelete
  79. @mishanet , I have followed your all steps and while running the image VMWare asked me that this image is configured to run in 64 bit , but my host OS is 32 bit WIN 7 ... but I let it running in 64 mode... and it took about 15-20 minutes but just blank dark screen on VMWare.
    If I go and change to run in 32 bit in VMWare settings then it runs and then stops.. nothing happens...

    What should I do ?
    MAVERICK

    ReplyDelete
  80. @MAVERICK You have to have a 64 bit CPU, and virtualization feature.

    ReplyDelete
  81. @mishanet , Yes I tried it on another 64 bit machine and it worked. Thanks.

    But I am having another problem, my mouse' left click stops working after sometime , then I hav to reboot the VM and it start working again and then again Left click stops working ( Right always work).
    What should I do to fix this issue ?

    Thanks for your help.
    Maverick

    ReplyDelete
  82. @Anonymous I don't know what the problem is or could be. Your physical mouse?

    ReplyDelete
  83. @mishanet, I have USB mouse and it works all find in my host OS (Win 7) ... but sometimes its left click stops working in MAC OS X... I have tried another USB mouse too , and also tried conneting it to guest OS MAC X by disconnecting from Host but still the same problem.

    I was able to reproduce the issue by holding the left click on desktop of MAC OS X and drawing a rectangle selection, whenevr I do this my left click stops working but right click keeps on working...

    Is it a problem of USB mouse ? or some faulty USB driver or MAC OS X settings... ( as originally I think MAC work with single click mouse).

    Thanks for your help.
    Maverick

    ReplyDelete
  84. I can't seem to get usb storage working.
    VMWare recognizes ant takes control of it but
    the os does not see it. Could it be that os x is not recognizing the virtualized usb controller ?

    ReplyDelete
  85. Anyone managed it to work with Unity

    ReplyDelete
  86. i can past the gray image with apple logo

    ReplyDelete
  87. i can not run linux bash in folder.
    Dont star Vm guest and give
    "This VM's versions of VMware Tools out of date" alert

    ReplyDelete
  88. does it work with VMware workstation 8?

    ReplyDelete
  89. I'm having the same problem with the left mouse button.

    ReplyDelete
  90. can we update the VMWare OSX 10.7.2 to 10.7.3 direct from Apple ?

    ReplyDelete
  91. Hey there,

    I have the Same Problem with the grey logo freeze.
    I'm using VM Ware Player on Win 7 Ultimate 64bit and I've already changed the windows.bat.
    After about 15 Minutes there is just this grey logo. The virtual Harddisk is showing no prozess.

    ReplyDelete
  92. i get a message that says Guest is not mac osx server , it only give me a option for mac lion server not mac lion

    ReplyDelete
  93. For people that are getting the Gray Screen with the logo. You have to tell it where the windows_32 file is

    @Echo off
    net stop vmauthdservice
    cd \
    cd mac os x lion
    cd vmware hack
    windows_32 "C:\Program Files (x86)\VMWare\VMWare Player\x64" "C:\Program Files (x86)\VMWare\VMWare Player\vmwarebase.dll"

    net start vmauthdservice

    ReplyDelete
  94. Hi Mishanet,

    First of all, thank you for the awesome work you have done in creating this VMWare image and even more awesome work in answering the people's queries.

    From the various comments it is pretty clear that your image and tutorial work pretty much seamlessly. Nevertheless, this tutorial is nearly 6 months old. So before I started downloading the 4.7GB file I wanted to know if there is an updated version of the image with some enhancements and/or fixes? If yes can you please point me to that?

    Once again, thank you.

    ReplyDelete
  95. I managed to get this working initially using image of 10.7.2, now upgraded to 10.7.3. VMWare 7.1.4. I'm also getting the mouse sticking issue. So far found no solution but I think it is a vmware drivers issue. Anyone else know a work around?

    ReplyDelete
  96. Hey guys, I noticed someone else posted a fix for the grey screen, that isn't the only cause as the unlocker appears to work for me:
    C:\Windows\system32>cd C:\mac os x lion\VMware hack

    C:\mac os x lion\VMware hack>windows

    The VMware Authorization Service service was stopped successfully.

    -----
    Mac OS X guest unlocker for VMware, version 7

    Directory C:\Program Files (x86)\VMWare\VMWare Player\x64:
    File vmware-vmx.exe:
    Unlocking Mac OS X guest on non-Mac host ...
    Unlocking Mac OS X Client guest (method 0) ...
    File vmware-vmx-debug.exe: Missing file.
    File vmware-vmx-stats.exe: Missing file.

    File C:\Program Files (x86)\VMWare\VMWare Player\vmwarebase.dll:
    Unlocking Mac OS X guest on non-Mac OS X host (method 1) ...
    Too few match sites.
    Mac OS X guest unlocker for VMware, version 7

    Directory C:\Program Files (x86)\VMware\VMware Workstation\x64:
    File vmware-vmx.exe:
    Unlocking Mac OS X guest on non-Mac host ...
    Unlocking Mac OS X Client guest (method 0) ...
    File vmware-vmx-debug.exe: Missing file.
    File vmware-vmx-stats.exe: Missing file.

    File C:\Program Files (x86)\VMware\VMware Workstation\vmwarebase.dll:
    Unlocking Mac OS X guest on non-Mac OS X host (method 1) ...
    Too few match sites.
    -----

    The VMware Authorization Service service is starting.
    The VMware Authorization Service service was started successfully.

    However I still get the grey screen with the apple logo sticking on screen. I have a HP DV6 1107 laptop if you want to know what hardware with HV enabled in bios. I'll repost if I get it going.

    ReplyDelete
  97. does this work with vmware workstation 8?

    ReplyDelete
  98. Many thanks :) Tested and worked without any issue. It works with vmware workstation 8.

    ReplyDelete
  99. The bat file doesn't work for me. If I use the changed one posted above it says windows_32 is not a command.

    I have Win Professional 64-bit
    and a Intel i5 Prozessor

    ReplyDelete
  100. You have to have VMWare Workstation installed in it's default location for the bat file to work.

    ReplyDelete
  101. Thank you very much for this package mishanet.

    I downloaded it today and it works just fine. I am running it on Win 7 home (64-bit) with VMWare Player 4.0.3.

    I wanted to if an update to 10.7.4 cause any problems? An update to 10.7.2 has caused problems to many. Anyone knows if 10.7.4 works fine or does it require me to do something extra to keep it working after the update?

    Thanks again.

    ReplyDelete
  102. If possible to get some help im not quite sure why the hack isnt working.. i changed my windows.bat to:

    @echo off
    net stop vmauthdservice

    windows_32 "C:\Program Files (x86)\VMWare\VMWare Player\x64" "C:\Program Files (x86)\VMWare\VMWare Player\vmwarebase.dll"

    net start vmauthdservice

    but that even fails and says:

    "System error 5 has occured.

    Access is denied.

    Mac OS X guest unlocker for VMware, version 7

    Directory C:\Porgram Files (x86)\VMWare\VMWare Player\x64:
    File vmware-vmx.exe: Error making file writable.
    File vmware-vmx-debug.exe: Missing file.
    File vmware-vmx-stats.exe: Missing file.

    File C:\Porgram Files (x86)\VMWare\VMWare Player\vmwarebase.dll: Error making file writable.
    System error 5 has occured.

    Access is denied."

    When i open in vmplayer i get the gray logo screen and nothing else. I am not sure what to do .. looked through this completely.

    -Alex

    ReplyDelete
  103. hi mishanet, could you please provide de User Mishanet password (it's not blank)

    ty in advance

    nishty

    ReplyDelete
  104. Works for me out-of-the-box (following the video + VMware 5).

    Dont forget to activate virtualization of the processor in your BIOS.

    Thnaks :)

    ReplyDelete
  105. For those stuck with password in terminal (su, sudo) as there is no password, *you have to set the password to something* in you user profile (admin). It seems terminal don't like empty password.

    ReplyDelete
  106. Will it work on a AMD FX-6100 Zambezi Six-core processor?

    ReplyDelete