Jump to content

OS X Mavericks in VirtualBox


  • Please log in to reply
56 replies to this topic

#1
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 200 posts
  • Gender:Male
Hi, i want to share my experiance with OSx Mavericks installation on Virtualbox 4.30.

I have prepared the ISO from dmg after i prepared it with the usual guide .
I boot with HackBoot and i have installed on GUI partition on VDI.

First of all Memory ...
I think that memory compression of Mavericks is bloating/freezing Virtual machine.

On 2 Gb Ram (in virtual machine) OSX Mavericks runs well
On 1 Gb ram (in virtual machine) OSX Mavericks freezes very often ( i get more free memory using memory clean app from Appstore ) ...
on start free memory is about 100-150mb : this is too small to run anyone program ...
After i have start memory clean, the free memory rises at 560-600 Mb free on 1024 of virtual Ram.

OSX Lion and Mlion run well even with 1 Gb of Ram ...

Second iWorks 2013 ...
it runs without Qe/Ci enabled so i can be used inside virtual machine ... ( this is good !! )


So the question is :

Is possible to disable Compression memory feature in Mavericks ?
I think it will be usefull in VM .

Best regards

PippoX0

Attached Files



#2
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 200 posts
  • Gender:Male
GUIDE - How to install OS X Mavericks 10.9 on Virtualbox 4.30

What we need
a) an Intel Core Duo2 Host computer ( mine Optiplex 760)
Windows XP or win7 (I use WinXp 32bit to run Virtualized OS X Mavericks 64bit on VB)
Needed (VT-x) enabled on Bios PC
2GB of phisical Ram or more
VirtualBox 4.30 or later

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


0. Create OSX Mavericks DVD
------------------------
Follow any guide here in the forum
I followed OSX Mavericks on Optiplex 760 Guide for creating a USB pen and i adapted to a DMG creation.
http://www.insanelym...-mavericks-109/

Using Disk utility create a Disc Image OSXMavericks.dmg of 6Gb.
Using Disk utility restore Basesystem.dmg to OSXMavericks.dmg

Remove symlink for Packages in /System/Installation of DMG

Copy Packages folder from Mac OS X Install ESD into /System/Installation of DMG
Copy Mach_Kernel into / of DMG
Copy /Extra folder with the needed Kexts
Install Chameleon-2.2svn-r2265 on DMG


HINT:
To boot Mavericks in VMM with only 1024 KB RAM , OSinstall.mpkg must be patched ... because inside there is a check for minimum RAM ...

->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 "MinRAM" inside

Find this ...
-----------
minRam=2048
-------------

-> Change to:
minRam=1024

and save "distribution"
drag back the file "distribution" in Flat Package Editor
Save mpkg and drag back to /System/Installation/Packages

Remember that this must be done only if you have 2 Gb Ram on Host computer

that's all !


00) Create ISO from DMG
Inside OSXMavericks.DMG copy also Mach_kernel
Hint : You have to recreate DVD Hybrid ISO using terminal and
hdiutil makehybrid -iso -joliet -hfs -o OSXMavericks.iso OSXMavericks.dmg



1. Create virtual machine:
--------------------------
VM Name and OS Type

* Name: OSX Mavericks
* Operating System: Mac OS X
* Version: Mac OS X Mavericks (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 ( first boot Disable - after installation Enable it)

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_Mav.iso which i created
Link HackBoot_Mav.iso to DVD emulation and run Virtual Machine
Switch HackBoot_Mav.iso with OSXMavericks.ISO and press F5
Start installation

- Choose the language you want
- Choose Disk Utility in the menu Utilities
- Choose the VBOX Hard Disk, put the name OSXMavericks 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 Mavericks on your volume (Notice that it will take ~20 min to finish!)


4. Post Installation
--------------------
To be able to start Mavericks you have to use “Hackboot_Mav.iso”
remove Enable EFI flag from VB
Boot HacBoot_Mav on DVD emulation

- Choose OSXMavericks 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_Mav.iso from DVD emultation
- Start OSXMavericks


Enjoy your Mavericks on VB!

PippoX0

Attached File  HackBoot_Mav.rar   2.56MB   3333 downloads

Attached File  AppleHDA.kext.zip   1.54MB   1705 downloads - AppleHDA for Virtualbox Audio ( compatible with OSX 10.7, 10.8 and 10.9)

--------------------
Hint:

To enable all iCloud stuff related ( FindMyMac,ect.) see my post
[How To] Enable "Find My Mac" with a FAKE Recovery HD *UPDATED*
http://www.insanelym...ery-hd-updated/

#3
mcolinp

mcolinp

    InsanelyMac Protégé

  • Members
  • Pip
  • 22 posts

I have been looking through this post (as well as many others); your method for loading Mavericks into Virtualbox, definitly seems to be the most likely way to get it to work. I am having a hard time with Step 3: specifically where it says: "Link HackBoot_Mav.iso to DVD emulation" . . .

 

Could you elaborate on this step possibly?

I would greatly appreciate it.

 

I have downloaded your Hackboot_Mav.iso; though I cannot figure out how to get it to load another iso to boot the installer.

The other methods I have tried many other methods, which have all had various kernal panics; and I have never successfully gotten to the installer from within Virtualbox.

I have built many more than one Hackintosh, and I am trying to get a VM setup for specific reasons. It seems to be more difficult than I had expected.

 

 

-EDIT- I have tried the F5 key; incase you were wondering. Though it does not do anything for me, so I am not sure what is wrong.



#4
mcolinp

mcolinp

    InsanelyMac Protégé

  • Members
  • Pip
  • 22 posts

Ok; So I figured it out; and wanted to give an update, in-case anyone is reading this because of the same issue. It took me some playing around to realize that the window for the virtual machine would allow me to change iso's by clicking on the cd/DVD icon and choosing the other disk. This seemingly equates to a virtual equivelant of ejecting a physical cd, and then putting in another cd, or DVD. And f5 works to refresh the new disk as a boot option.



#5
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 200 posts
  • Gender:Male
Hi, Did you link hackboot to DVD in virtualbox preference of vm ? I guess you had ... The procedure is run vm , wait the loading of first iso, then return in the upper menu and select the second iso. Press f5 to refresh DVD mount and then run mavericks iso. Hint: more easy way is create in preference two DVD virtualized hw. In the first set hackboot and in the second mavericks. Let me known if you resolve ... I See you resolved it :-)

#6
mcolinp

mcolinp

    InsanelyMac Protégé

  • Members
  • Pip
  • 22 posts

Well . . . I was able to get the Hackboot iso to work and to load the Mavericks installer. However; It works perfect on a Mac host (Virtualbox installed on OSX), but the installer does not load when I try it on a Windows host. It seems to hang for some reason before the Graphic UI for the Installer loads. I suppose I need to make some adjustments in the Kexts or something, but I am at a loss at the moment . . .



#7
doabigcheese

doabigcheese

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts

Hi mcolinp,

 

try to boot with -x flag (just type -x when you see the boot icon of the drive)

 

bye 



#8
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 200 posts
  • Gender:Male

Hi ,
Check you have put in Mavericks DMG/ iso in System/Library/Extentions/

these Kexts


* fakesmc.kext
* nullCPUPowermanagenent.kext


See ya



#9
mcolinp

mcolinp

    InsanelyMac Protégé

  • Members
  • Pip
  • 22 posts

Hi mcolinp,

 

try to boot with -x flag (just type -x when you see the boot icon of the drive)

 

bye 

 

Whenever I type "-x" before booting from the installer media (From inside the Hacboot Chameleon gui); It complains that it cannot find mach kernal . . . .
If I don't type "-x"; it will show verbose up to when it would normally switch to the Graphical Installer gui. It then proceeds to display the spinning beach ball of doom and does nothing . . .


Hi ,
Check you have put in Mavericks DMG/ iso in System/Library/Extentions/

these Kexts


* fakesmc.kext
* nullCPUPowermanagenent.kext


See ya

I have tired this; still does not get me past the verbose stage described above in last reply to other poster . . .

 

I have been doing other reading on Virtualbox; and it seems that there are some unresolved instabilities within Virtualbox on Windows 8.1. Not sure if this is 100% the culprit, but it is starting to look suspect . . .



#10
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 200 posts
  • Gender:Male

I have been doing other reading on Virtualbox; and it seems that there are some unresolved instabilities within Virtualbox on Windows 8.1. Not sure if this is 100% the culprit, but it is starting to look suspect . . .


Try to start VirtualBox in compability mode (i.e Windows XP) or ... try VMware

#11
Marko S

Marko S

    InsanelyMac Protégé

  • Members
  • Pip
  • 3 posts

I'm getting error "This is not supported method of installing the operating system. Please run Install OSX Mavericks.app"



#12
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 200 posts
  • Gender:Male

I'm getting error "This is not supported method of installing the operating system. Please run Install OSX Mavericks.app"


Hi,
To help you, i need some more info ...
System Host - which Windows version ??
Virtualbox - which VB version ??

and your Host Hardware - CPU, RAM, etc.

#13
firepigmac

firepigmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

hi,

 

about this "Using Disk utility create a Disc Image OSXMavericks.dmg of 6Gb"

i should select GUID partition table or MBR when create this 6Gb disk ?



#14
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 200 posts
  • Gender:Male
Guid is Ok ...

#15
firepigmac

firepigmac

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

thanks. take note dmg size must set to 8Gb else when copy packages will have "not enough free space"

 

in this step "Inside OSXMavericks.DMG copy also Mach_kernel and KernelCache".

i can only find "Mach_kernel" in "Install109.zip" and where is this "kernelCache" ?



#16
atlantisman87bis

atlantisman87bis

    InsanelyMac Protégé

  • Members
  • Pip
  • 29 posts

Hello, i've certainly a stupid question, because i try to do this tutorial

but i'm blocking at the step

 

Using Disk utility restore Basesystem.dmg to OSXMavericks.dmg

 

where i could find the Basesystem.dmg please ? i ve download the Mavericks from Appstore and i found a InstallESD.dmg in the content but not this

thanks



#17
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 200 posts
  • Gender:Male

thanks. take note dmg size must set to 8Gb else when copy packages will have "not enough free space"


i checked it out and for me 6GB are fine. If you need more space, you can make a DMG bigger.

Kernelcache is not needed ...

---------------
@atlantisman87bis

Follow the guide to USB Pen creation -> first post
Basesystem.dmg is inside InstallESD.dmg

#18
jamesrt

jamesrt

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Hi,

 

I'm getting stuck after booting from the "hackboot_mav.iso" image; I can switch to the OS X .iso I've created ok, press <f5>, and the kernel boots ok; but seems to get stuck at about the stage it tries to mount the root disk.

 

See screenshot (output when using "-x" kernel flag):

 

Attached File  ScreenShot.png   96.58KB   160 downloads

 

Yes, I've noticed the error around "FakeSMC" about half-way down the screen shot, I know I've put fakesmc.kext into /System/Library/Extensions; not sure why that message appears (I've also copied the whole Install109 extracted .zip file into the root of the image, so "/Install109/Kexts/FakeSMC.kext" exists; but not sure if that is confusing the issue or not!)

 

VirtualBox v4.3.4; real computer is a Dell Latitude E6540 (i7 core) running Windows 7 x64.  Any suggestions?

 

(Note, as I also have a macbook, I've tried booting the same images in Parallels, and it does progress to the installer, so I'm hopeful I haven't done anything too stupid with my image creation, and that I just need some kernel command-line magic...)

 

Any suggestions welcome!



#19
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 200 posts
  • Gender:Male
Hi ,
First, fakesmc.kext should be in S/L/E ( System/Library/Extensions) or /Extra/Extentions.

Mach_kernel should be in / root

Second, try to repair permissions on Dmg with Disk Utility, before you create the ISO.

Third, try to boot with -v -f

#20
luckman212

luckman212

    InsanelyMac Protégé

  • Members
  • Pip
  • 49 posts

This looks really interesting! Does iMessage work from inside this VM? Just curious, b/c I have not been able to get it to work with VMware.







5 user(s) are reading this topic

1 members, 4 guests, 0 anonymous users


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