James Ray Anderson

James Ray Anderson
James Ray Anderson
0 comments

Install Mac OS X in a Virtual Machine in 60 mins

8:41 PM
Run Mac OS X in a Virtual Machine
Yes, you can run a Mac OS X 10.6 or later in a virtual machine.  Most people can get it up and running in less than 60 minutes (depending on the machine).  This is quite handy for developers who need to create software or test software.

Credit 
All credit goes to Prasys.info.  This is just a re-digest of the information with additional step-by-step instructions - designed for my friends who may not be familiar with installing and configuring a Mac OS X in a virtual machine.  It is not meant to address all situations and nuances of trying to perform this.  There are lots of resources out there which deal with the nuances and pitfalls of trying to do this.



Assumptions / Requirements
Here are some basic requirements and assumptions:
NOTE: For i3, i5, or i7 - check out the instructions on SysProbs.com.

Getting Ready
These instructions are for those using a Intel machine running a 64-bit OS:
  1. Download and install Oracle VirtualBox (free).  Perform a default install.
  2. Get the Mac OS X 10.6 Snow Leopard Retail DVD ($35) on Amazon, or ISO.
  3. Download and unzip EmpireEFLv1085.iso.
Creating the Initial Virtual Machine
The following instructions will provide you step-by-step for installing the Mac OS X into the virtual machine.
  1. In VirtualBox, click New.
  2. Enter in the title of Mac OS X Snow Leopard
  3. Choose the Operating System of Mac OS X.
  4. Click Next.
  5. Settings - Memory: 
    • Memory: 1 GB minimum, 2 GB recommended.
    • Click Next.
  6. Settings - Hard Drive
    • 25 GB hard drive size
      1. Type: fixed is recommended for faster performance, dynamic if you want to resize it later.
  7. Click Next.
  8. After VM is created, select and go into Settings.
  9. Go to Settings > System > Motherboard.
    1. Check "Enable IO APIC"
    2. Check "Enable EFI"
    3. Check "Enable absolute pointing device"
  10. Go to Settings > System > Processor.
    1. Set processors to 2 if you can.
    2. Check Enable PAE/NX if not checked.
  11. Go to Settings > system > Acceleration.
    1. Check Enable VT-x/AMD-v
    2. Check Enable Nested Paging.
  12. Go to Settings > Dispay > Video
    1. Set the video memory to 9 MB minimum
    2. Set the monitor count to 1 or 2
    3. Check the "Enable 3D Acceleration"
  13. Go to Settings > Storage.
    1. Ensure the Type is ICH6
    2. Check "Use host I/O cache" if not checked
  14. Go to Storage.
    1. Click + to add, select Add CD/DVD Device.
    2. Click Choose Disk, and select the empireEFIv1085.iso, click Open.
    3. Click OK
  15. Start the virtual machine.
    1. Click OK if prompted with Virtualbox information.
    2. NOTE:  If the EFI boots to a shell command, then do the following:
      1. Power off the virtual machine.
      2. Go to Settings > System and uncheck the Enable EFI.
      3. Click OK.
    3. Start the VM.
  16. After the virtual machine boots, you should be prompted with the "Empire EFI" logo on a black background.
  17. When prompted with the "Empire EFI" logo and disc, change the ISO:
    1. In the bottom of the VM, right-click on the CD and select IDE (IDE Primary Master) and then click on "Choose a virtual CD/DVD disk file...".
    2. Choose the Mac OS X 10.6.3 Snow Leopard.iso
    3. Press the F5 key, you should now see the title of the DVD.
  18. - Hit enter to start the install.
  19. - Hit enter again.
  20. - Click OK for any dialogs/prompts as the DVD is booting up.


Installing Mac OS X in the Virtual Machine
You may find this helpful if you have not installed a Mac OS X clean installation before.
  1. Select language and click next
  2. Click Continue.
  3. Click Agree for the license agreement.
  4. On the installer, choose Utilities > Disk Utility, as the disk doesn't exist yet.
  5. Select the hard drive.
  6. Click on the Erase tab, and for the "name" enter "MainDrive", click Erase.
  7. When prompted, click Erase.
  8. Close the Disk Utility
  9. Select the drive.
  10. Click Install.
  11. It will take about 30-45 minutes for the install to happen.
  12. Once you restart...you will have to do the following:
    1. Right-click on the CD/DVD and choose the Empire EFI ISO.
    2. Reset
Starting the Mac OS X Virtual Machine - 1st Time
  1. Once it boots, choose the "MainDrive", and the Mac OS X will start loading.
    1. From now on, that's the way you will boot.
    2. Click in the virtual machine.
    3. Use the Arrow key to select the "Main Drive"
    4. Hit Enter
    5. Hit Enter again
    6. There are ways around this...but that topic can be searched on Google.
  2. Continue with the setup:
    1. Click Continue on Welcome screen.
    2. Click Continue on "Select your Keyboard".
    3. Click Continue on "Do you already own a mac?"
    4. Click Continue on "enter in your Apple ID", or enter it in.
    5. Click Continue on "Registration Information", click Continue again if you didn't fill it all out.
    6. Click Continue on "Create your Account" (you can enter a password if you want)
    7. Select your Time Zone and click Continue.
    8. Click Done.
    9. Click CLOSE on Keyboard Setup Assistant.
Ahhhh, success!
Hopefully you get this screen!


Shutting Down the Virtual Machine
There is a right way and a not-so-right way of shutting down - depending on your circumstances.

All is Good - So Shutdown Normally
You want to do this when everything is in a good state.  For example, you just installed some software and you want to keep the changes or avoid corruption of your operating system.
  1. Go to the Apple in the menu, choose Shut Down...
  2. Click Shut down.
  3. Your settings in the OS are saved.
  4. Once the OS has stopped, you can click on Machine > Power Off Machine.
There is another way to shutdown too.  This is also acceptable, but doesn't always respond.
  1. Go to Machine > Close.
  2. When prompted, choose "Send Shutdown Signal".

Snapshot your VM
Before you proceed and make more changes to your VM - you should make a backup of it.  
  1. Make sure the VM is not running.  If it is, shutdown.
  2. Select the virtual machine in the VM VirtualBox Manager.
  3. Click on the Snapshots button on the top right.
  4. Click on the Camera to take a snapshot.
    1. Enter in the name and a description.
    2. Click OK
A Few More Things
You can stop here...but there are a couple of things you may want to do:
  1. Go to Apple > Software Update.
    1. Perform an update if you need/want to.
Mac OS X 10.8.4 to OS X 10.9 (Mavericks)
  1. Download that from the App Store after doing the latest updates to 10.6.
  2. The 2.0 GB update will take care of upgrading from 10.6.n to 10.9 for you.
  3. Make sure you take a snapshot or do a backup first.


Original Resources / Additional Resources
http://prasys.info/2009/10/empire-efi/
http://www.sysprobs.com/install-mac-snow-leopard-1063-oracle-virtualbox-32-apple-intel-pc

 
Toggle Footer
Top