[Guide] Mac OS X 10.7 Lion on VirtualBox with Windows 7 and Intel PC

Finally I managed to find out the working method to install and run latest Mac OS X 10.7 Lion on Oracle VirtualBox with normal Intel computer. The main issue every hackintosh users faced with Lion, is the boot loader to start the installation in normal PC or in any desktop virtualization software. Here I explain and demonstrate step by step method to install Mac OS X 10.7 Lion on VirtualBox in Windows 7 host Intel computer.

Please note this is just for testing and learning purpose only. This method is not recommended for production or long term use, also not all applications will be working on Mac Lion virtual machine as its not recommended by Apple company. Highly advisable to go with original Apple hardware and Mac OS to get the all features and power of Mac.

OK, I demonstrate these steps in my Windows 7 32 Bit computer with Oracle VirtualBox 4.1.2.

My PC Configurations.

Intel Core2Duo 2.66GHz, 3GB RAM on Host and Windows 7 32 Bit Operating System. Hardware Virtualization Technology (VT) is enabled in the host processor and processor is 64 bit ready.


What You Need?

1) Oracle VirtualBox 4.1 or later.  (Install the latest VirtualBox extension pack also)

2) The pre created Lion OS X installation disk. This is the very important part in this installation. The ordinary installation DMG file you download from Apple or any torrent sites will not work here. We need to modify some packages and create a new disk which can be booted in VirtualBox or VMware.

For this process, you must have a working Snow Leopard on physical or virtual machine.

The procedure is already covered in Sysprobs clearly, please check this guide on creating bootable Lion OS X disk.

I have used this pre created disk to boot and install Lion OS X in VMware workstation, which is already covered here.

The bootable Lion OS X disk can be created by two methods,

a) Create as a VMDK or VDI file. So this file can be attached to the virtual machine as the first disk to boot the Lion OS. This file can be used in VMware and VirtualBox whenever needed.

Follow the steps here to create bootable Lion OS X VMDK (or VDI) file.

b) Create an ISO file. This is also ideal method to use with all virtualization software and physical computer also.

One of my reader created a nice video on creating bootable Lion OS X ISO file from DMG.


3) Minimum 1GB memory to Virtual machine.

4) VT and 64bit supported processor. Check this guide and make sure your processor supports these features.

5) Download the boot loader which can boot the Lion OS in VirtualBox (HackBoot.iso which is uploaded by me, no virus.)


How to Install Lion OS X on VirtualBox

1) Double check the VT support and 64Bit in BIOS. If its not enabled, then enable it in BIOS and make sure the host Operating System is detecting it.

Check this guide on how to enable VT in BIOS

2) Create a new virtual machine. OS is Mac OS X , the version should be “64bit”. Do not ask me why, because normal 32bit version did not work on my computer.

Lion OS X 64bit version

3) Set the memory size to 1GB or more than that, 2GB is recommended.

4) Create a virtual hard disk, minimum is 20GB.

5) Here is System settings.

You can deselect the floppy drive.

Make sure ‘Enable IO APIC” and others are selected as shown below.

Remove the Enable EFI option. Leave the ICH9 chipset as default.

Mac OS X 10.7 System Settings in virtualbox

Under Acceleration, “Enable VT-x/AMD-V” and “Enable Nested Paging” should be enabled. If Acceleration tab is missing in your VirtualBox settings, it means VT is not enabled in host computer BIOS.

desktop virtualization software

Processor Settings.

This is slightly tricky. My processor is Core2Duo, so I could select 2 processors. Unfortunately during the installation the virtual machine crashed. I had to put it back to 1 processor (core). If you are using Intel i-series processor you can increase the number up to 4. Increase to maximum and try, if it doesn’t work then try with single core (1 processor).

6) Attach the bootable ISO or VMDK file to virtual machine. In all cases we have to set Hackboot.iso in CD drive and boot with it.

If you are trying to install with bootable VMDK file (which I did), here is the setup.

lion on virtualbox

If you are going to try with ISO file, then you do not need to add the ‘bootabelhdd.vmdk’ file.

7) Start the Lion OS X virtual machine now in VirtualBox.

It will boot with HackBoot.iso file.

If it’s from VMDK file, select the disk by pressing right arrow key in keyboard and press ENTER.

lion boot loader for virtualbox

If you are trying with ISO file, then once the above screen loaded, click on the CD icon of VirtualBox console and browse the Lion bootable ISO file. Wait for 5 seconds and press F5 to refresh the loaded CD, select it and press ENTER to start the installation.

8.) Are you lucky enough? The first screen should start normally. Select the language and continue.

9) If you do not see the virtual hard disk to install, then it should be created in Disk Utility during the installation. Click on ‘Utilities’ and select ‘Disk Utility’.

create partition to install

Press Apply and close the disk utility box. Now you should be able to see and select the newly created partition for installation. Select and begin the process.

10) After the installation automatic restart will be attempted but it will not work here. The virtual machine will stop with following screen which is ready for manual restart.

reboot screen

Reset the virtual machine from menu. It may give a guru meditation error sometimes. Do not worry, just close the virtual machine.

We need to start the VM now, so load the HackBoot.iso file again to CD drive if it was removed during the installation. Incase virtual machine hangs with ash color screen now, again restart.

11) After few initial settings, you must land on working Lion OS X desktop in VirtualBox.

working lion os x in virtualbox

The performance of Lion OS X in VirtualBox is manageable. I could play around with few new changes and applications. Still there are few small drawbacks and issues on method. I will try my best to find out the solutions to fix them in future.

You must consider two issues now,

a) Shutting down and restart the Lion VM– This will not happen automatically. Once the black screen appears (Shown in Step 10), it’s safe to shutdown or reset from VirtualBox menu.

b) About the Mac – If you try ‘About the Mac’ inside virtual machine, it will not work. The virtual machine may crash.

I hope this guide would be helpful to install Mac OS X 10.7 Lion on VirtualBox with normal Intel computer with Windows 7, Vista or Windows XP. I’m NOT sure how this will work on AMD computer. Please someone leave comment about AMD processor.  Your responses are highly expected.

Have fun.

Dinesh is the founder of Sysprobs and written more than 400 articles. Enthusiast in Microsoft and cloud technologies with more than 15 years of IT experience.

180 thoughts on “[Guide] Mac OS X 10.7 Lion on VirtualBox with Windows 7 and Intel PC”

    • just use the dvd to load from in Virtual box. Follow all the steps Dinesh has given above up to step #5.
      At step #6 use when you get to the storage options. Do not use Hackboot.iso instead use your DVD of osx lion.
      That should be all you have to do. Do not worry about any of the rest of the steps on here after step #6 except maybe step#9. You might have to do step #9 im not sure.

      You should be able to upgrade your version of lion osx anytime too.

    • There is no ‘original’ DVD with Mac OS X Lion. It’s either downloaded via App Store within Mac OS X or purchased on a USB Stick from Apple Store.

  1. it works fine for me. thanks for the advice on how to set it up. I am even able to upgrade to the newest version of Lion OSX inside it . I needed this version for the newest version of xcode in the app store.

    You rock Dinesh!

  2. Got a little problem (i hope it is little) During the install I get a message ‘MAC OS X could not be installed on your computer’ like others posted before. It starts with like 18 minutes remaining and at around 9 minutes remaining the message appears with sub text. “The installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance’. Click Restart to restart your computer and try installing again’. That last suggestion doesnt help I can tell. I tried most of the variations suggested in the postings above, differnt cpu’s, ide versus sata etc, so i ran out of options. Any help is appreciated…

  3. Hi, everything worked great until I updated MacOSX, which I had to do to be able to install XCode. Now I get “waiting for root device”.
    Any hints appreciated!

    • These steps worked for me.

      Inside of virtual machine download Mac OS X 10.7.4 Lion combo update (do not use Software Update)
      Open terminal
      cp -r /System/Library/Extensions//IOstorageFamily.kext .
      Now apply the update, but don’t restart after it’s finished.
      Now go back to terminal and at the same directory location run the following
      sudo rm -rf /System/Library/Extensions/IOstorageFamily.kext
      sudo cp -r /IOstorageFamily.kext /System/Library/Extensions

  4. Will the RAM that has been allocated to the virtual machine be re-allocated to Windows 7 AFTER you close the Virtual Machine?

  5. I have been following the steps and start the VM. However, the VM stops at “Restting IOCatalogue”. Can anyone give me a clue to solve it?

    • I found out that I forget to add the extension pack to the virtualbox, so I solved this “Resetting IOCatalogue” by adding it back.

  6. I have successfully loaded into the Mac Lion, however, I cannot see any screens asking me to choose the language. It seems that the installation process does not start. Everytime I restart the Mac VM, I have to boot into HackLion.iso first ….
    Can any of generous you give me a clue??

      • Instead I have a window “the disk you inserted was not readable by this computer” with buttons “Initialize”, “ignore” and “eject”. Is that normal?

        • hi, me too, i also have a window showing “the disk you inserted was not readable by this computer” without showing up the Mac installer.
          Any idea to solve this problem?

          • Ok. I found out that the .vmdk is a preinstalled os x, ready to use. The only way to make the installation start from the beginning is to boot with an iso file (or perhaps it works with something like lion_installer.vmdk).

  7. Just wanted to say there is a very simple way to do this and I did it with Virtual box..

    settings/ Storage :
    IDE Controller = HackBoot Lion.iso
    SATA Controller = 1) MacLion.vdi “Created”
    2) Mac OS X Server 10.6.64-bit-1.vmdk “addon”
    3)Mac OS X Lion Installer.vmdk “addon”

    When darwin loads select LIONINSTAL and let it run..

    i didnt have to convert anything or have lepored install either. Its in the process of installing I when give an update to functionality.

    • the steps look simple, i wanna try ~
      would you suggest where to download the following?
      2) Mac OS X Server 10.6.64-bit-1.vmdk “addon”
      3) Mac OS X Lion Installer.vmdk “addon”

    • it seems that you are going well with the installation, however, i cannot see any installation wizard …
      i think my downloaded “Mac OS X Lion.vmdk” is not the same as yours.

      Would you please suggest where to download the following files?
      – Mac OS X Server 10.6.64-bit-1.vmdk “addon”
      – Mac OS X Lion Installer.vmdk “addon”

  8. Hi i have a problem: when instalation is done and after restar VM, I’m booting HackBoot and when i choose my HD after a many lines of code it ends on “Starting Darwin x86_64” and after few sec it’s turning to black screen. Any suggestions? I will add that i try instalation couple of times and it’s still the same. changing from MacOS 32 or 64 bit’s change nothing.

      • i guess you can not post xml to the forum. Execute this command, make sure all instances of virtualbox are cosed including the manager!

        VBoxManage modifyvm {your vm name here} –cpuidset 00000001 000106e5 02100800 0098e3fd bfebfbff

        • You sir deserves a medal, a statue or a beer. Or three of them.

          This command just allowed me to run an image that was running fine on laptop 1 but refused to work on laptop 2.

          You saved the day!

        • Okay, I have located the library, or whatever it is to actually run the VBox commands. I tried that command and lots of variations because none of them work. The problem it keeps telling me is that “VBOX _E_OBJECT-NOT_FOUND”. I have all the numbers correct, but ive tried,

          {MAC OS X} -cpuids
          {MAC OS X}-cpuids
          MAC OS X -cpuids
          {“MAC OS X”} -cpuids
          “MAC OS X” -cpuids
          {“MAC OS X”}-cpuids

          Pleeeeaaasssseeee tell me I’m doing something obviously stupid. If anyone can help, it would be great.

  9. OK, so no go again. The first sentence of this tutorial should be changed to tell it will require A LOT of work! This is totally crazy to expect a real Mac, because if I have the Mac, I won’t bother creating a virtual machine! Having to go through Leopard installation just to get Lion is just a total loss of time. So the only way I have to try out Mac OS X is really to find somebody with a Mac and borrow it. This is undoable for me. NOBODY I know will borrow me his machine. So thanks for yet another non-working tutorial!

Comments are closed.

Pin It on Pinterest