Jump to content

OSX Lion 10.7 DP4/GM/RETAIL on VirtualBox 4.0


  • Please log in to reply
67 replies to this topic

#1
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 204 posts
  • Gender:Male
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.insanelym...howtopic=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[i] == "VMM" ){
return true;
}
}
return false;
-------------

-> Change from true to false
if( cpuFeatures[i] == "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.insanelym...p...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 ...)
Attached File  VB_Lion.JPG   237.55KB   518 downloads

#2
NSCXP2005

NSCXP2005

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 594 posts
  • Location:Manchester UK
Fantastic guide pippox0!!

Do you know if Lion GM Release will work under VB?

All the best,

NSCXP2005

#3
popcornmix

popcornmix

    InsanelyMac Protégé

  • Members
  • Pip
  • 15 posts
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?

#4
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 204 posts
  • Gender:Male
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.



#5
popcornmix

popcornmix

    InsanelyMac Protégé

  • Members
  • Pip
  • 15 posts

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!

#6
fantomas1

fantomas1

    InsanelyMacaholic

  • Supervisors
  • 2,788 posts
  • Gender:Male

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 ! :)

#7
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 204 posts
  • Gender:Male

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

#8
NSCXP2005

NSCXP2005

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 594 posts
  • Location:Manchester UK
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

#9
wanders

wanders

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts
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

#10
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 204 posts
  • Gender:Male
[ 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.insanelym...p...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
Attached File  Lion_GM.JPG   240.55KB   255 downloads

--------------------------------------
[ 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

Attached File  FakeSMC.kext.zip   183.62KB   820 downloads
Attached File  NullCPUPowerManagement.kext.zip   27.86KB   741 downloads

Tools
Attached File  ShowHiddenFiles.app.zip   371.85KB   418 downloads


OSinstall.mpkg patched for only 1024 Mb RAM installation
Attached File  OSInstall.mpkg.zip   463.97KB   999 downloads

#11
wanders

wanders

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts
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:

Attached File  Untitled_1.jpg   301.2KB   114 downloads

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

Attached File  Untitled_2.jpg   362.38KB   129 downloads

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:

Attached File  Untitled_3.jpg   265.15KB   140 downloads

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

wanders

#12
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 204 posts
  • Gender:Male

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

#13
fbifido

fbifido

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 135 posts
  • Gender:Male
  • Location:Jamaica
pippox0:



is there a way to make a bootable dvd with LION.



#14
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 204 posts
  • Gender:Male

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

#15
macxylo

macxylo

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
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

#16
popcornmix

popcornmix

    InsanelyMac Protégé

  • Members
  • Pip
  • 15 posts
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?

#17
wanders

wanders

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts
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...

Attached File  Untitled_1.jpg   626.31KB   111 downloads

wanders

#18
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 204 posts
  • Gender:Male

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

#19
macxylo

macxylo

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
Hey Pippox0,
i try it, but don't work. Here is the error:

http://img199.images...9/enableefi.png

Any ideas?

#20
popcornmix

popcornmix

    InsanelyMac Protégé

  • Members
  • Pip
  • 15 posts

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!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy