Jump to content
Welcome to InsanelyMac Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 
PippoX0

OSX Lion 10.7 DP4/GM/RETAIL on VirtualBox 4.0

68 posts in this topic

Recommended Posts

What we need

a) an Intel Core Duo2 Host computer ( mine Optiplex 760)

Windows XP or win7 (I use WinXp 32bit to run Virtualized OSX Lion 64bit on VB)

Needed (VT-x) enabled on Bios PC

2GB of phisical Ram or more

VirtualBox 4.0.4 or later

 

:unsure: Hackintosh running Mac Os X to create Lion.dmg and iso

 

Look at my New Post [Easy Guide] more over on this discussion....

0. Create OSX Lion DVD

------------------------

Follow any guide here in the forum

I followed MalD0n Guide

http://www.insanelymac.com/forum/index.php?showtopic=256729

 

To boot Lion in VMM OSinstall.mpkg must be patched ... because inside there is a check for virtualization ...

 

->Copy OsInstall.mpkg from /System/Installation/Packages to Desktop

open it with Flat Package Editor

drag the file "distribution" somewhere (Desktop will do)

open "distribution" in a text editor and find "virtualization Check" inside

 

Find this ...

-----------

function isVirtualMachine(){

var cpuFeatures = system.sysctl( 'machdep.cpu.features' );

cpuFeatures=cpuFeatures.split(" ");

for( var i = 0; i < cpuFeatures.length; i++ ){

if( cpuFeatures == "VMM" ){

return true;

}

}

return false;

-------------

 

-> Change from true to false

if( cpuFeatures == "VMM" ){

return false;

 

and save "distribution"

drag back the file "distribution" in Flat Package Editor

Save mpkg and drag back to /System/Installation/Packages

 

Remember that, if you have only 2 Gb Ram on Host computer , also to modify MinimumRAM needed from 2048 to 1024 or lower in the file "distribution" before you copy back )

 

that's all !

 

 

00) Create ISO from DMG

Inside DMG copy olso Mach_kernel and KernelCache

Hint : You have to recreate DVD Hybrid ISO using terminal and

hdiutil makehybrid -iso -joliet -hfs -o OSXLion.iso Lion.dmg

 

 

 

1. Create virtual machine:

--------------------------

VM Name and OS Type

 

* Name: OSX Lion

* Operating System: Mac OS X

* Version: Mac OS X Server (64 bit)

* enable virtualization in BIOS HOST computer (VT-x)

* Memory 1024 MB (minimum)

* Virtual Disk Size: 20GB (or more)

* Boot Order: CD/DVD-ROM, Hard Disk

* Extended Features: Enable IO APIC

* Extended Features: Enable EFI

 

2. Set Option in VM

-----------------------

Enable Hardware clock in UTC time

Enable absolute pointing device

 

Display Video Memory: 32 MB

Extended Features: Enable 3D Acceleration

 

Storage SATA controller for HDD image Type: AHCI

IDE Controller for CD/DVD device Type: ICH9

 

Audio Host Audio: Windows Direct Sound

Audio Controller: Intel HD Audio

 

Network

* Enable Network Adapter

* Attached to: NAT

* Adapter Type: Intel PRO/1000 MT Server (82545EM)

* Cable connected

 

 

3. Installation

---------------

Download HackBoot.iso from Mald0n guide to boot Lion ( we needed it later)

http://www.insanelymac.com/forum/index.php...st&id=94070

 

Link osxLion.iso to DVD emulation and run Virtual Machine

- Choose the language you want

- Choose Disk Utility in the menu Utilities

- Choose the VBOX Hard Disk, put the name OSXLion and press Erase button

partition scheme GUID and HFS+ journaled

- When finished close the Disk Utility and continue

- Now you should be able to choose the formated drive and then choose install button

 

- Now it should install OSX Lion on your volume (Notice that it will take ~15 min to finish!)

 

 

4. Post Installation

--------------------

To be able to start Lion you have to use “Hackboot.iso”

remove Enable EFI flag from VB

Boot HacBoot on DVD emulation

 

- Choose OSXLion HD and press Enter

- Create user ....

 

- Now we have to delete /System/Library/CoreServices/PlatformSupport.plist file.

- now using Kexthelper install these Kexts

 

* fakesmc.kext

* nullCPUPowermanagenent.kext

 

- Shutdown VM ( if it does'nt close VM)

 

- Re Enable EFI flag , that you find under Settings - System

- remove HackBoot.iso from DVD emultation

- Start OSXLion

 

Greetings to every geek on this forum

 

Enjoy your lion on VB!

 

PippoX0

 

 

 

Note:

------------------------------------------------------------------------------

everything works !! :Audio OK, networl OK , video OK ( No Qe/CI - i have tested ..)

 

Appstore Works ..., LaunchPad works , ecc. i also tested Server.app and works ..

 

You can also choose to update your OSX Lion (downloaded last Apple patches and works ...)

post-161756-1308661880_thumb.jpg

Share this post


Link to post
Share on other sites

Thanks for guide. I do have a working Snow Leopard in VB and also Lion as dual boot hackint0sh, but I couldn't get this working.

 

I was trying with Lion GM, which could have changed things.

 

There are a couple of ambiguous parts I may have got wrong:

 

Should MalD0n guide be following entirely, or just the minimum to get a bootable DVD image? Presumably I don't do the CPU specific post installation steps?

 

"Inside DMG copy olso Mach_kernel and KernelCache"

From where to where?

 

On booting the install disk I get:

This version of Mac OS X is not supported on this platform!

 

Removing PlatformSupport.plist got past that, but still no boot.

 

Anyone had success with GM with this guide? Any other guides out there?

Share this post


Link to post
Share on other sites

Hi,

I know I was not too clear to write my guide.

Right now, I'm trying to install OSX Lion GM on VirtualBox.

I Like VB because is Free ...

 

I think I've found a way to do it more easily.

So when i will find a moment I will write to you how to ...

 

PippoX0

 

"Inside DMG copy olso Mach_kernel and KernelCache"

From where to where? -> From original DMG on new created DMG

 

On booting the install disk I get:

This version of Mac OS X is not supported on this platform!

-> This is because you haven't created a 64bit VM or you haven't applied my VMM patch.

 

Be sure to use a PC Intel Core 2 Duo and to enable virtualization in HOST computer (VT-x) Bios.

Share this post


Link to post
Share on other sites
Hi,

I know I was not too clear to write my guide.

Right now, I'm trying to install OSX Lion GM on VirtualBox.

I Like VB because is Free ...

 

I think I've found a way to do it more easily.

So when i will find a moment I will write to you how to ...

 

PippoX0

 

Sounds great. Looking forward to it!

Share this post


Link to post
Share on other sites
everything works !! :Audio OK, networl OK , video OK ( i suppose also Qe/CI - i have to test ..)

 

 

hi :)

 

no , you dont have QE/CI and i dont think its possible to have it on a virtual machine ! :P

 

on your screen , your graphic has 3 MB , impossible under QE/CI ! :)

 

maybe on a really Mac , but on an hackmac , no ! :)

Share this post


Link to post
Share on other sites
hi :tomato:

no , you dont have QE/CI and i dont think its possible to have it on a virtual machine ! :)

on your screen , your graphic has 3 MB , impossible under QE/CI ! :P

-> look on the left of pic , i have set 32 mb on VMM video ram

However no QE/CI is enabled , it seems because you can play Chess and use Screen saver ( on SL this is possible only if you have QE/CI)

i Tested iWork and Pages don't work, so no QE/CI

:P

Cheers

Share this post


Link to post
Share on other sites

Hi pippox0

 

I am looking forward to your guide for installing OSX Lion GM on VB.

 

I hope you manage to post your guide soon.

 

Thank you for your time.

 

Keep up the great work!!

 

All the best

 

NSCXP2005

Share this post


Link to post
Share on other sites

This is one of the more challenging installs that I've tried. But then, I'm a tyro at OS X stuff.

 

I followed MalD0n's guide and have a DP4 install filesystem on a USB stick, with a few hacks (DP4 extras and Chameleon) installed. No problem making the .iso image and mounting in VirtualBox (4.0.10). The system is recognized as a Mac per the distribution hack (apple screen), the kernel loads and promptly panics (ACPI). So no install.

 

Any further progress, pippox0? Or any advice as to what to try next?

 

Thanks for all the good work!

 

wanders

Share this post


Link to post
Share on other sites

[ EASY INSTALL - LION GM/RETAIL UPDATE ]

 

I rewrite my Guide ... Now is more accurate and Easy ....

 

What we need

a) an Intel Core Duo2 Host computer ( mine Optiplex 760)

Windows XP or win7

2GB of phisical Ram or more ( better 4 Gb ram)

VirtualBox 4.0.4 or later

 

:( Hackintosh running Mac Os X to create Lion.dmg and iso

 

 

0. Create OSX Lion DVD

------------------------

a. Download Lion GM

b. find InstallESD.dmg -> "Install Mac Os X Lion.app/Contents/ShareSupport"

b1. open and mount InstallESD.dmg

b2. Show HiddenFiles

b3. find BaseSystem.dmg inside InstallESD.dmg

b4. mount BaseSystem.dmg

c. Using Disk utility create an new immage.dmg DVD 4,6 Gb read and write , rename like Lion.dmg

d. Using Disk utility restore BaseSystem.dmg on new image Lion.dmg

e. mount Lion.dmg

e1. delete packages link inside /System/installation

e2. Copy Packages folder from InstallESD.dmg to Lion.dmg inside /System/Installation/ folder

e3. Create a forlder Kexts on Lion.dmg and copy inside

*fakesmc.kext

* nullCPUPowermanagenent.kext

* KextHelper.app ->http://cheetha.net/

f. Copy Mach_Kernel and KernelCache from InstallESD.dmg to Lion.dmg

f1. Copy OSinstall.mpkg patched for 1024 Mb Ram (only if you need)

put inside /System/Installation/Packages

 

g. Create ISO from DMG

open terminal and type

sudo hdiutil makehybrid -iso -joliet -hfs  -o OSXLion.iso Lion.dmg -hfs-volume-name "OSXLion"

 

Stop Hackintosh and run Windows

 

0. download Virtualbox 4.0.10 and install on Windows

 

 

1. Create virtual machine:

--------------------------

VM Name and OS Type

 

* Name: OSX Lion

* Operating System: Mac OS X

* Version: Mac OS X Server (64 bit)

* enable virtualization in BIOS HOST computer (VT-x)

* Memory 2048 MB (minimum) or 1024 Mb if you use patched OSinstall.mpkg

* Virtual Disk Size: 20GB (or more)

* Boot Order: CD/DVD-ROM, Hard Disk

* Extended Features: Enable IO APIC

* Extended Features: Disable EFI

 

2. Set Option in VM

-----------------------

Enable Hardware clock in UTC time

Enable absolute pointing device

 

Display Video Memory: 32 MB

Extended Features: Enable 3D Acceleration

 

Storage SATA controller for HDD image Type: AHCI

IDE Controller for CD/DVD device Type: ICH9

 

Audio Host Audio: Windows Direct Sound

Audio Controller: Intel HD Audio

 

Network

* Enable Network Adapter

* Attached to: NAT

* Adapter Type: Intel PRO/1000 MT Server (82545EM)

* Cable connected

 

 

3. Installation

---------------

Download HackBoot Lion.iso from Mald0n guide to boot Lion

http://www.insanelymac.com/forum/index.php...st&id=94070

 

Link HackBoot Lion.iso to DVD emulation and run Virtual Machine

Swap HackBoot Lion.iso with OSXLion.ISO on DVD emulator and press F5

 

Boot OSXLIon.ISo

- Choose the language you want

- Choose Disk Utility in the menu Utilities

- Choose the VBOX Hard Disk, put the name OSXLion and press Erase button

partition scheme GUID and HFS+ journaled

- When finished close the Disk Utility and continue

- Now you should be able to choose the formated drive and then choose install button

- Now it should install OSX Lion on your volume (Notice that it will take ~15 min to finish!)

 

At the End switch off VM

 

4. Post Installation

--------------------

To be able to start Lion you have to use “Hackboot.iso”

Boot HacKBoot on DVD emulation

 

- Choose OSXLion HD and press Enter

- Create user ....

 

- Now we have to delete /System/Library/CoreServices/PlatformSupport.plist file.

Swap again HackBoot Lion.iso with OSXLion.ISO on DVD emulator and press F5

- now using Kexthelper install the 2 Kexts on System/library/Extentions

* fakesmc.kext

* nullCPUPowermanagenent.kext

 

- Shutdown VM ( if it does'nt close VM)

 

- Re Enable EFI flag , that you find under Settings - System

- remove HackBoot.iso from DVD emultation

- Start OSXLion GM

 

Enjoy your Lion GM on VB! :)

 

PippoX0

 

see Pic

post-161756-1310712704_thumb.jpg

 

--------------------------------------

[ HINTS --- OSX on VB ]

A) To change Screen Resolution on VirtualBox OSX Lion /Snow Leopard machine

 

Add this code on MACOSX.Vox ( name of your VM OSX machine . VBOX) with a text editor

generally located at C:\Program Files\VirtualBox\Data\.Virtualbox\Machines\"name of your VMM"

 

<ExtraDataItem name="VBoxInternal2/EfiGopMode" value="4"/>

 

Infact the latest version of Virtualbox and MAC supports EFI (Extensible Firmware Interface) supports 5 resolutions.

 

0 – 640×480

1 – 800×600

2 – 1024×768

3 – 1280×1024

4 – 1440×900

 

 

KEXTS

 

FakeSMC.kext.zip

NullCPUPowerManagement.kext.zip

 

Tools

ShowHiddenFiles.app.zip

 

 

OSinstall.mpkg patched for only 1024 Mb RAM installation

OSInstall.mpkg.zip

Share this post


Link to post
Share on other sites

This is a great effort! The newer and more explicit instructions are very helpful.

 

But as we say here in Texas, "I'm so close, and yet so far away..."

 

----------------

First, if I'm not mistaken, I believe there are a couple of typos, to wit:

 

e1. delete packages link inside /Library/installation

e2. Copy Packages folder from InstallESD.dmg to Lion.dmg inside /Library/Installation/ folder

 

should be:

 

e1. delete packages link inside /System/installation

e2. Copy Packages folder from InstallESD.dmg to Lion.dmg inside /System/Installation/ folder

----------------

Second, I have a question regarding exactly which kexts you are using here - I can find several versions of fakesmc and nullCPUPowermanagement - exactly where did you get yours?

 

e3. Create a forlder Kexts on Lion.dmg and copy inside

*fakesmc.kext

* nullCPUPowermanagenent.kext

* KextHelper.app

----------------

Finally, HackBoot Lion is hanging on me, and not behaving in the way you imply in your description. I mount HackBoot Lion.iso, start VirtualBox (configured as you describe) and get the following window:

 

post-823597-1310709296_thumb.jpg

 

F5 has no effect. When I click in the window and hit return, I get the following screen:

 

post-823597-1310709331_thumb.jpg

 

and HackBoot Lion just hangs, totally dead. My VirtualBox configuration (which is working just great, by the way, for OSX 10.6.8) looks like this:

 

post-823597-1310709361_thumb.jpg

 

Any help you can give regarding HackBoot would be greatly appreciated!

 

wanders

Share this post


Link to post
Share on other sites
This is a great effort! The newer and more explicit instructions are very helpful.

 

But as we say here in Texas, "I'm so close, and yet so far away..."

 

----------------

First, if I'm not mistaken, I believe there are a couple of typos, to wit:

 

e1. delete packages link inside /Library/installation

e2. Copy Packages folder from InstallESD.dmg to Lion.dmg inside /Library/Installation/ folder

 

should be:

 

e1. delete packages link inside /System/installation

e2. Copy Packages folder from InstallESD.dmg to Lion.dmg inside /System/Installation/ folder

----------------

Second, I have a question regarding exactly which kexts you are using here - I can find several versions of fakesmc and nullCPUPowermanagement - exactly where did you get yours?

 

e3. Create a forlder Kexts on Lion.dmg and copy inside

*fakesmc.kext

* nullCPUPowermanagenent.kext

* KextHelper.app

----------------

Finally, HackBoot Lion is hanging on me, and not behaving in the way you imply in your description. I mount HackBoot Lion.iso, start VirtualBox (configured as you describe)

 

 

Any help you can give regarding HackBoot would be greatly appreciated!

 

wanders

Hi Wanders,

Thanks you , i corrected my mistakes on folders ....

 

You are very close to install Lion on VB ( DVD swap is the same on real Hackintosh installation)

After you see the first screen, you must change Hackboot.iso with OSXlion.iso , then wait or press F5 -> it should show you the new mounted DVD.

When the title of DVD change from HackBoot to OSXLion you can press Enter ...

The installation will begin ... :thumbsup_anim:

 

Look at new Guide upgraded, i Have posted Kexts, Tools (HiddenFiles.app) and other Stuffs...

Try to recreate ISO DVD i changed the commands..

Tell me if you get any progress ...

 

Best regards

 

PippoX0

Share this post


Link to post
Share on other sites
pippox0: is there a way to make a bootable dvd with LION ?

If you mean to create a bootable Lion dvd for Hackintosh

Yes , probably yes .. I am looking for an easy way ... Try to find something on this forum

Share this post


Link to post
Share on other sites

Hi Pippox0,

I follow your new guide, works everything great expect reenable EFI. My OSX107 won't start without the hackboot lion iso. Any ideas?

 

Kindly Regards

MaCXyLo

Share this post


Link to post
Share on other sites

Thanks for the updated instruction. I've got further. I boot with hackboot.iso, then switch to my lion.iso, and it boot up and displays:

"Before You Begin...There isn't a keyboard connected to your computer. Connect a keyboard now."

(obviously there is a keyboard - I could select boot drive from hackboot screen)

Suggestions?

Share this post


Link to post
Share on other sites

PippoX0, you are the BOMB! Thanks for everything, and a big old HOWDY from Austin, Texas! I could not have done it without you...

 

I now have Lion running in Virtualbox on my home-built Windows 7 machine, and the Hackintosh that I bootstrapped this process with was itself OSX 10.6.8 running in Virtualbox. My Lion has never touched Apple hardware :)

 

BTW, I sure will be happy when InsanelyMac gets more reliable servers and quits crashing in the middle of a post. These IPS driver errors are making me crazy. Looks like I need to donate...

 

post-823597-1310785182_thumb.jpg

 

wanders

Share this post


Link to post
Share on other sites
Hi Pippox0,

I follow your new guide, works everything great expect reenable EFI. My OSX107 won't start without the hackboot lion iso. Any ideas?

 

Kindly Regards

MaCXyLo

Hi,

if you have just installed suggested kexts and delete PlatformSupport.plst, then

try to repair permission with disk utility or Osx tools on /System/Library/Extentions

 

and try to boot in EFI (without hackboot)

 

PippoX0

 

Thanks for the updated instruction. I've got further. I boot with hackboot.iso, then switch to my lion.iso, and it boot up and displays:

"Before You Begin...There isn't a keyboard connected to your computer. Connect a keyboard now."

(obviously there is a keyboard - I could select boot drive from hackboot screen)

Suggestions?

Hi,

Which Keyboard are you using ? i have USb keyboard ... but ps2 KB runs also well ...

Look at VMM settings , try to disable USB 2.0 if you have enabled

 

or try to change the KB with another ..

 

PippoX0

Share this post


Link to post
Share on other sites
Which Keyboard are you using ? i have USb keyboard ... but ps2 KB runs also well ...

Look at VMM settings , try to disable USB 2.0 if you have enabled

 

or try to change the KB with another ..

 

I'm pretty sure Virtualbox only presents a virtual keyboard, so Lion would have no knowledge of whether the keyboard is USB or PS2.

 

My keyboard is USB. I've tried different USB ports, and tried enabling USB and the keyboard inside VB, as well as disabling USB for VB, although I couldn't see how that could help.

 

UPDATE:

I noticed I was on VB 4.0.10 with extension pack for 4.0.8. So Updated both to 4.0.12.

Still no change. I then reformatted the Lion drive, and reinstalled. Still no change.

I then deleted the VB profile for Lion machine, and set it up again. Reinstalled Lion, and keyboard is detected!

 

UPDATE2:

All is good. EFI booting without hackboot is working. Looks good. Thanks for guide!

Share this post


Link to post
Share on other sites
Hey Pippox0,

i try it, but don't work. Here is the error:

 

http://img199.imageshack.us/img199/5509/enableefi.png

 

Any ideas?

Hi Macxylo,

you should see this during EFI bootstrap ....

post-161756-1310973847_thumb.jpg

 

First Check Virtualbox VMM Settings

then Try this:

a) Boot with Hackboot

:) Use Disk Utility to Check/Repair Disk VMM HD and repair permissions.

c) Shutdown

d) Be shure to unmount HackBoot.ISO , to enable EFI Flag , reboot and don't press any key during booting ...

 

PippoX0

Share this post


Link to post
Share on other sites
@Pippox0

I only saw that screen if i am enabling EFI:

http://img199.imageshack.us/img199/5509/enableefi.png

That's all! Don't boot forth.

 

I try out your guide. Repair Disk Permissions, put the hackboot.iso out of virtual drive, Reenabling EFI.

No Success!

 

KIndy Regards

MaCXyLo

Hi MaCXyLo,

It's a very strange error ... ;)

As i see from your pic, you can disable Floppy from boot process , but this i don't think will resolve your problem ...

Check that AHCI/ ICH9 option is enable on SATA VMM

 

Anyway your Last resource to boot Lion without Hackboot is to install Chamaleon RC5 -v 755 .pkg and EXTRA_DP4.pkg on VMM HD ( You can use the Mald0n post ).

http://www.insanelymac.com/forum/index.php?showtopic=256729

 

 

BTW if you do so, you loose the native EFI boot function of Virtualbox .

 

PippoX0

Share this post


Link to post
Share on other sites

@Pippox0

 

My friend have the same error.

 

We both use Windows 7 64 bit.

 

Has anybody the same problem?

 

Edit: Chipset ICH9 is enabled.

 

Kindly Regards

MaCXyLo

Share this post


Link to post
Share on other sites

Hi,

 

I am having some issues location the kexthelper.app. I tried searching the install dmg as well as the base, but couldn't locate it. Does anyone have any suggestions? I'm guessing it's a downloadable application. I checked google, but I wasn't sure on a valid location.

 

Thanks!

 

Adam

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

×