Mac OSX Snow Leopard on Sun VirtualBox: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
[http://www.taranfx.com/install-snow-leopard-virtualbox How to install Snow Leopard on Sun VirtualBox] Good walkthrough - first install Leopard and upgrade to Snow Leopard:
From [http://lifehacker.com/5583650/run-mac-os-x-in-virtualbox-on-windows?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+lifehacker%2Ffull+%28Lifehacker%29 Lifehacker article]


Last time when I wrote the How to Install Snow Leopard on VMWare guide, I had users who were seeking Virtualbox  version, and I had it promised.
Create VM, if you call it OSX, the rest will fill in automatically, create a 20GB Virtual HD, in the VM settings System, uncheck 'Enable EFI', in storage choose the Hazard iso, start up and hit F8, add -v to the boot prompt. Get to the 'Disk Utility' in the menubar (top) and format the disk as Mac OS Extended (journaled). Quit the disk utility, select the disk and continue, then choose customise. Here:


After 2 months of experiments, fighting in the dark, and with help from black Trinitron, the work is done and I think its time to reveal it.
<pre>AMD Users check:
Any Updates included at the top.
Drop down Kernels and choose Legacy kernel.
AMD option below System support.


Who doesn’t love Open Source? And when a Open source product is better than a paid application, we adore it. So is the case with Virtualbox. Virtualbox 3.1 is an amazing platform for Virtualization, It’s not only free, but also much faster than VMware in Disk I/O, Network I/O, RAM optimization, CPU Usage, Hypervisor level operations. Hats off to Sun-Oracle.
Intel Users check:
Any Updates included at the top.
Drop down bootloaders and check the newest Chameleon.
Drop down Kernels and choose Legacy kernel.
Then click Done and hit the Install button. To speed up the process you can click Skip when the disc check pops up.</pre>
 
remove the CD after the install is complete otherwise it won't boot up after the reboot.
 
''Getting the higher resolution:''
 
<pre>There are 2 ways you can do this.
 
Method 1: Temporary
 
    * When OSX is booting, tap F8 to get to the boot prompt
    * Type in "Graphics Mode"="1280x1024x32" (with quotations, replacing the resolution with the resolution you want)
 
 
Method 2: Permanent
 
    * Boot OS X
    * Open the TextEdit program in the Applications folder
    * With TextEdit, open the file: /Extra/com.apple.Boot.plist OR /Library/Preferences/SystemConfiguration/com.apple.Boot.plist (do the second one last only if needed)
    * Open the file, and add these two lines (right after the <string>Yes</string> line if you are on Tiger or <string></string> line if you are on Leopard)
 
 
<key>Graphics Mode</key>
<string>1280x1024x32</string>
 
    * Replace the 1280x1024x32 with the resolution you want
    * Then, in go to File >> Save As..
    * Save the file as com.apple.Boot.plist on the Desktop (make sure the .plist part is there!)
    * Navigate the the /Extra/ or /Library/Preferences/SystemConfiguration/ folder
    * Drag your com.apple.Boot.plist file on the Desktop into the folder window
    * When a messages appears, click Authenticate and Replace and enter your password
    * You're done! Reboot OS X to see the changes
 
 
Here is an example of what the com.Apple.boot.plist file looks like with Leopard:
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
            <key>kernel</key>
            <string>mach_kernel</string>
            <key>Kernel Flags</key>
            <string></string>
            <key>Graphics Mode</key>
            <string>1280x1024x32</string>
</dict>
</plist>
</pre>
 
''In order to get Virtualbox to full screen if using high res''
 
<right ctrl>+<F>
 
----
 
'''Old method, didn't work too well'''
 
[http://www.taranfx.com/install-snow-leopard-virtualbox How to install Snow Leopard on Sun VirtualBox] Good walkthrough, but maybe a bit old. [http://www.insanelymac.com/forum/index.php?showtopic=207334&st=0 This one is a bit more concise]


Before you begin, make sure you have enough CPU, RAM, Disk resources to share for the virtual machine.
Before you begin, make sure you have enough CPU, RAM, Disk resources to share for the virtual machine.
Line 21: Line 87:
     * Virtualbox 3.1.2 (Download)
     * Virtualbox 3.1.2 (Download)
     * Bit of Patience :)
     * Bit of Patience :)
Brief: We will be installing Osx86 Leopard then upgrading to Snow Leopard Retail, that is 100% upgradeable to 10.6.2 and Works on Windows XP, Windows Vista, Windows 7. Alternatively, You can install Snow Leopard directly via an OSx86 Distro like SnowOSX (but that won’t be upgradeable, unless you use SnowOSX v3.6 which is already 10.6.2. But the upcoming 10.6.3 update won’t be possible). So let’s go the usual way (Leopard then Snow Leopard Retail), though it’s upto you to choose.


Let’s Get started:
Let’s Get started:
Line 33: Line 97:
     * Create Disk (10 GB will suffice) with name “Leofx”
     * Create Disk (10 GB will suffice) with name “Leofx”
     * System > Motherboard > Enable IO APIC
     * System > Motherboard > Enable IO APIC
    * (optional) Processor 2 or 4 (Dual Core, Quad core)
     * Acceleration > Enable VT-x/AMD-V
     * Acceleration > Enable VT-x/AMD-V
    * Memory to 512MB
     * Storage > IDE Controller – ICH6
     * Storage > IDE Controller – ICH6
     * Attach New CD drive > select image (OSx86 Leopard)
     * Attach New CD drive > select image (OSx86 Leopard) in the IDE Primary Slave
     * Hit Ok
     * Hit Ok


Snow-leopard-virtualbox-settings3
Shut down Sun VirtualBox then


Step 2. Open Virtual machine xml.
Step 2. Open Virtual machine xml.
Line 49: Line 113:
Add string to the section <ExtraData> for the XML:
Add string to the section <ExtraData> for the XML:


<ExtraDataItem name="VBoxInternal2/SupportExtHwProfile" value="on"/>
      <ExtraDataItem name="VBoxInternal2/SupportExtHwProfile" value="on"/>


Step 3. Switch on Virtual Machine and install Leopard distro as-usual. (You can check Install Leopard on PC guide, if you are new to OSx86).
Step 3. Start up Sun VirtualBox and switch on Virtual Machine and install Leopard distro (iDeneb_v1.5.1_OSX86_v10.5.7) as-usual. (You can check Install Leopard on PC guide, if you are new to OSx86).


NB! Use the 'customise' option and select a AMD compatible kernel as well as the AMD patch fix in order for it to work after selecting a disk. If you can't find a disk, format it using the disk utility (there's a menu up top)
NB! Use the 'customise' option and select the 9.7.0 Qoopz kernel but '''not''' the AMD patch fix in order for it to work after selecting a disk. Also the Audio driver AC97 GenericAC97Audio


snow-leopard-virtualbox3
If you can't find a disk, format it using the disk utility (there's a menu up top) using Mac OS Extended (Journaled) format


Alright, Leopard setup would succeed and  is up and running after reboot.(Make sure you change boot priority to “Leo” Hard disk in VM settings).
Alright, Leopard setup would succeed and  is up and running after reboot.(Make sure you change boot priority to “Leo” Hard disk in VM settings).


Stuck somewhere? Get in touch @taranfx on Twitter.
Stuck somewhere? Get in touch @taranfx on Twitter.
For installing Snow Leopard, proceed to Phase II
Phase II. Installing Snow Leopard
Step 1. Close VirtualBox and patch it with files from here (32 bit) and here (64 bit)
Update: I heard Virtualbox 3.1.4 Beta works out of the box, without patching. I haven’t tried that though.
Step 2. Attach the following Three disks to the virtual machine under “Storage” tab:
    * Attach A new Disk (10 GB minimum) with name “Snow”.
    * DVD drive, if you plan to use Snow Leopard Retail disk OR The Retail image. (use PowerISO to convert DMG to ISO).
    * Download and attach this Addon Util image[iso]. (contains few Kexts, utils).
Step 3. Boot Leopard and Launch Disk Utility (Applications > Utilties ) and Format the new “Snow” with “Mac OS Journaled”
snow-leopard-windows
Step 4. From the addon image “MacUtils”, Run “unHideIt” and then browse to /System/Installation/Packages( inside Retail disc) and run OSInstall.mpkg
snow-leopard-virtualbox2 snow-leopard-virtualbox
Step 5. Select “Snow” disk and customize install to remove unnecessary packages (languages, printers) and Install. Installation should finish without any problems.
Step 6. Install Chameleon from the “MacUtils” on to “Snow” drive. [How to Install Chameleon]
Beyond this point, all changes are made to /Volumes/Snow
Step 7. Let’s setup some drivers:
    * Remove all stuff from /Extra/Extensions
    * Copy “Mac Utils”/Mac/Extra/Extensions to Extra/Extensions
    * Copy “Mac Utils”/Mac/System/Library/Extensions to System/Library/Extensions
    * Navigate to System/Library/Extensions and delete “AppleIntelCPUPowerManagement.kext”
Step 8. Fix permissions by using Terminal (from Applications > Utilities):
su
cd /Volumes/Snow/System/Library
chown -R root:wheel Extensions/
cd /Volumes/Snow/Extra
chown -R root:wheel Extensions/
kextcache -a x86_64 -K /Volumes/Snow/mach_kernel -m /Volumes/Snow/System/Library/Extensions.mkext /Volumes/Snow/System/Library/Extensions
kextcache -a x86_64 -K /Volumes/Snow/mach_kernel -m /Volumes/Snow/Extra/Extensions.mkext /Volumes/Snow/Extra/Extensions
Nice! Hold down your patience we are almost done.


Now, Shutdown Leopard and move on to Final Phase
Now, Shutdown Leopard and move on to Final Phase


Phase III: Creating Snow Leopard machine
First, close Virtualbox and patch it with the files in VBM.zip (copy the files from the rar to the virtualbox / program files folder)


Step 1. Alright, Let’s create a new Virtual Machine, name it “Snowfx” or whatever you wish to. Create it exactly as we did in Phase I : Step 1. Only additional step is t configure Networking:
Now in Sun Virtualbox do:


     * Network > Adapter 1 > Attached to “Bridged Adapter”
     * Network > Adapter 1 > Attached to “Bridged Adapter”
Line 121: Line 138:
And add the following to Snow Machine XML:
And add the following to Snow Machine XML:


<ExtraDataItem name="VBoxInternal/Devices/e1000f/0/Trusted" value="integer:1"/>
        <ExtraDataItem name="VBoxInternal/Devices/e1000f/0/Trusted" value="integer:1"/>
<ExtraDataItem name="VBoxInternal/PDM/Devices/PcExt/Path" value="VBoxDD3"/>
        <ExtraDataItem name="VBoxInternal/PDM/Devices/PcExt/Path" value="VBoxDD3"/>


Step 2. Run the Virtual Machine and you will land into desktop with everything (including internet) working.
Step 2. Run the Virtual Machine and you will land into desktop with everything (including internet) working.
Line 128: Line 145:
Note: If your mouse doesn’t work use this Kext. For me it worked as-is.
Note: If your mouse doesn’t work use this Kext. For me it worked as-is.


Go ahead and update to 10.6.2. And when the upcoming 10.6.3 is released, you will be able to upgrade without issues.
NB Don't upgrade the version of OS-X or you'll kill it :)


There you are, running the latest Snow Leopard, sweet! Enjoy the speed and cost benefits VirtualBox has to offer, Praise the Sun and love Open Source :D  
There you are, running the latest Snow Leopard, sweet! Enjoy the speed and cost benefits VirtualBox has to offer, Praise the Sun and love Open Source :D  
Line 136: Line 153:


[http://wiki.osx86project.org/wiki/index.php/Main_Page The OSX86 project has lots more information]
[http://wiki.osx86project.org/wiki/index.php/Main_Page The OSX86 project has lots more information]
[http://www.insanelymac.com/osx86db/ Insanely Mac has a driver database as well as forums]
osx os x hackintosh

Latest revision as of 10:25, 15 July 2010

From Lifehacker article

Create VM, if you call it OSX, the rest will fill in automatically, create a 20GB Virtual HD, in the VM settings System, uncheck 'Enable EFI', in storage choose the Hazard iso, start up and hit F8, add -v to the boot prompt. Get to the 'Disk Utility' in the menubar (top) and format the disk as Mac OS Extended (journaled). Quit the disk utility, select the disk and continue, then choose customise. Here:

AMD Users check:
Any Updates included at the top.
Drop down Kernels and choose Legacy kernel.
AMD option below System support.

Intel Users check:
Any Updates included at the top.
Drop down bootloaders and check the newest Chameleon.
Drop down Kernels and choose Legacy kernel.
Then click Done and hit the Install button. To speed up the process you can click Skip when the disc check pops up.

remove the CD after the install is complete otherwise it won't boot up after the reboot.

Getting the higher resolution:

There are 2 ways you can do this.

Method 1: Temporary

    * When OSX is booting, tap F8 to get to the boot prompt
    * Type in "Graphics Mode"="1280x1024x32" (with quotations, replacing the resolution with the resolution you want)


Method 2: Permanent

    * Boot OS X
    * Open the TextEdit program in the Applications folder
    * With TextEdit, open the file: /Extra/com.apple.Boot.plist OR /Library/Preferences/SystemConfiguration/com.apple.Boot.plist (do the second one last only if needed)
    * Open the file, and add these two lines (right after the <string>Yes</string> line if you are on Tiger or <string></string> line if you are on Leopard)


<key>Graphics Mode</key>
<string>1280x1024x32</string>

    * Replace the 1280x1024x32 with the resolution you want
    * Then, in go to File >> Save As..
    * Save the file as com.apple.Boot.plist on the Desktop (make sure the .plist part is there!)
    * Navigate the the /Extra/ or /Library/Preferences/SystemConfiguration/ folder
    * Drag your com.apple.Boot.plist file on the Desktop into the folder window
    * When a messages appears, click Authenticate and Replace and enter your password
    * You're done! Reboot OS X to see the changes


Here is an example of what the com.Apple.boot.plist file looks like with Leopard:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
            <key>kernel</key>
            <string>mach_kernel</string>
            <key>Kernel Flags</key>
            <string></string>
            <key>Graphics Mode</key>
            <string>1280x1024x32</string>
</dict>
</plist> 

In order to get Virtualbox to full screen if using high res

<right ctrl>+<F>


Old method, didn't work too well

How to install Snow Leopard on Sun VirtualBox Good walkthrough, but maybe a bit old. This one is a bit more concise

Before you begin, make sure you have enough CPU, RAM, Disk resources to share for the virtual machine.

Hardware Requirements:

   * Processor: Any Intel Processor with VT-x (Virtualization Technology) or AMD-V. (Almost all Intel processors starting from Core 2 Duo, Quad, etc. support it) Ask us, if you still have a doubt: @taranfx.
   * RAM: Anything above 1 GB, Recommended 2GB or higher
   * Disk space: 10GB (minimum)

Software Requirements:

   * Snow Leopard Retail Disc (or ISO). We recommend you buy Original, don’t pirate!
   * A OSx86 Leopard Distro – Any OS X 10.5.x iDeneb, iAtkos, etc. (I had bad time with Kalyway) iDeneb v1.3 (10.5.5) worked great for me. (and iAtkos 10.5.7 as reported by a commenter)
   * Virtualbox 3.1.2 (Download)
   * Bit of Patience :)

Let’s Get started:

Phase I: Install Leopard on Virtualbox

Step 1. Create a new Virtual Machine with name “Leopard”:

   * System Type: BSD, FreeBSD
   * Create Disk (10 GB will suffice) with name “Leofx”
   * System > Motherboard > Enable IO APIC
   * Acceleration > Enable VT-x/AMD-V
   * Memory to 512MB
   * Storage > IDE Controller – ICH6
   * Attach New CD drive > select image (OSx86 Leopard) in the IDE Primary Slave
   * Hit Ok

Shut down Sun VirtualBox then

Step 2. Open Virtual machine xml.

Windows 7: C:\Users\fx<Your User>\.VirtualBox\Machines\Snow\Snow.xml

Windows XP: C:\Documents and Settings\fx<YourUser>\.VirtualBox\Machines\Snow\Snow.xml

Add string to the section <ExtraData> for the XML:

     <ExtraDataItem name="VBoxInternal2/SupportExtHwProfile" value="on"/>

Step 3. Start up Sun VirtualBox and switch on Virtual Machine and install Leopard distro (iDeneb_v1.5.1_OSX86_v10.5.7) as-usual. (You can check Install Leopard on PC guide, if you are new to OSx86).

NB! Use the 'customise' option and select the 9.7.0 Qoopz kernel but not the AMD patch fix in order for it to work after selecting a disk. Also the Audio driver AC97 GenericAC97Audio

If you can't find a disk, format it using the disk utility (there's a menu up top) using Mac OS Extended (Journaled) format

Alright, Leopard setup would succeed and is up and running after reboot.(Make sure you change boot priority to “Leo” Hard disk in VM settings).

Stuck somewhere? Get in touch @taranfx on Twitter.

Now, Shutdown Leopard and move on to Final Phase

First, close Virtualbox and patch it with the files in VBM.zip (copy the files from the rar to the virtualbox / program files folder)

Now in Sun Virtualbox do:

   * Network > Adapter 1 > Attached to “Bridged Adapter”
   * Advanced > Adapter Type > Select “Intel PRO/1000 MT server”

Snow-leopard-virtualbox-settings

And add the following to Snow Machine XML:

        <ExtraDataItem name="VBoxInternal/Devices/e1000f/0/Trusted" value="integer:1"/>
        <ExtraDataItem name="VBoxInternal/PDM/Devices/PcExt/Path" value="VBoxDD3"/>

Step 2. Run the Virtual Machine and you will land into desktop with everything (including internet) working.

Note: If your mouse doesn’t work use this Kext. For me it worked as-is.

NB Don't upgrade the version of OS-X or you'll kill it :)

There you are, running the latest Snow Leopard, sweet! Enjoy the speed and cost benefits VirtualBox has to offer, Praise the Sun and love Open Source :D



The OSX86 project has lots more information

Insanely Mac has a driver database as well as forums

osx os x hackintosh