Jump to content
fusion71au

Run Vanilla OS X El Capitan, Sierra, High Sierra or Mojave in VirtualBox 5.x.x on a Windows Host

92 posts in this topic

Recommended Posts

Advertisement

Hi Guys,

 

Those having problems with the install hanging after DSMOS has arrived can try resetting/changing their vbox configuration:

 

To reset/remove a CPUID from your configuration:

1.  Shutdown all VirtualBox windows and the VirtualBox Program.

2.  Edit the <vmname>.vbox file (located in C:\Users\[username]\Virtualbox VMs\<vmname>\ folder) with WordPad and remove the lines that read like

        <CpuIdTree>
          <CpuIdLeaf id="1" eax="67301" ebx="1050624" ecx="10019837" edx="3219913727"/>
        </CpuIdTree>

Spoofing alternative Mac Models/SMBIOSes using VBoxManage.exe

1.  Shutdown all VirtualBox windows and the VirtualBox Program.

2.  Reset your DmiSystemProduct to null...

cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" ""

3.  Enter a different DmiSystemProduct eg spoofing a Macmini6,2 works with El Capitan running in VirtualBox on my laptop XPS M1530. 

VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "Macmini6,2"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-F65AE981FFA204ED"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

4.  You may or may not need to change the CPUID presented to your virtual machine (for my system, I did not need to enter a CPUID:  Try without the CPUID line, then with the line if there is a problem - see @clauden's post#21 above for some alternative CPUIDs).

 

 

 

post-846696-0-25326500-1457866269_thumb.png

post-846696-0-20871300-1457866292_thumb.png

post-846696-0-70235500-1457866317_thumb.png

 

 

Share this post


Link to post
Share on other sites

This did it, thank you.  Once I setup those commands I booted and it came up to a grey screen and errored out.  Then I remove the virualbox harddrive, recreated it and started it back it.  And it installed.  Thank you, again.

Share this post


Link to post
Share on other sites
Hello, all! :)

I followed all instructions from original post, but I have the same issue as fusion71au (distorted sound). I've tried on both my laptop (ALC269VB), also on a desktop pc (ALC662), but I have the same issue.

 

I've tried different stuff:

- AppleHDA Patcher (I don't think I'm quite sure how to use that; I dragged the config.plist from EFI partition, selected corresponding driver from desktop/laptop and that was it; copied then the config.plist to EFI; restart)

- El Capitan Post Install Scripts

 

Did you figure out how to fix it?

 

Thank you in advance for your attention :)

 

P.S. fusion7au can you delete some messages from your inbox so that you can be contacted?

Edited by Micky1979
Tonymac stuff not allowed

Share this post


Link to post
Share on other sites

Hi thanks a lot all is ok 

 

I install on ubuntu X64 and all is ok 

 

But just one problem

 

How can i do for use icloud ... 

 

I have a macbook pro so i wan't to use my icloud account

 

I try to install chameleon for active ethernetbuild on virtualbox but error

 

Do you have a solution 

 

Thanks a lot

Share this post


Link to post
Share on other sites

As first timer, considering trying this to do multiplatform development, I was hoping to understand the relationship between the the machine on which the .iso is created and the cpuid settings for the VM.

 

Is the iso somehow specific for the machine on which it is created? If so, does using Intel's MacCPUID application help with deciding what to settings to use for the VM?

 

Or are the CPUID settings determined by the capabilities of the host machine for the VM?

Share this post


Link to post
Share on other sites

I'm having trouble creating the .iso. When I run CECI.tool everything looks normal until the end when it says "hdiutil: convert failed - No space left on device"

 

I'm doing this from a VM on Virtualbox running Yosemite. Thanks all!

Share this post


Link to post
Share on other sites

Thank you, fusion71au. This is a wonderful solution. Everything goes well according the steps for me, until launching the virtual machine guest to start the OSX installation. After some outputs, installation program keep to print below message for ever.

 

The host is Win7 sp1 64, Guest is OS X 11.10 downloading from app store and creating iso on a Mac, Virtual Box version is 5.0.10.

 

I am a beginner to OS X, fusion71au or any guru else could help this ? Thank you!

 

post-1699091-0-06449200-1460220880_thumb.png

 

Share this post


Link to post
Share on other sites

 

Thank you, fusion71au. This is a wonderful solution. Everything goes well according the steps for me, until launching the virtual machine guest to start the OSX installation. After some outputs, installation program keep to print below message for ever.

 

The host is Win7 sp1 64, Guest is OS X 11.10 downloading from app store and creating iso on a Mac, Virtual Box version is 5.0.10.

 

I am a beginner to OS X, fusion71au or any guru else could help this ? Thank you!

 

 

 

This is because the "Orable VM Virtual Box Manager" program was not closed when I ran "patching El Capitan vbox configuration file with DMI Settings" commands. When running patching commands, not only El_Capitan VM client but also "Orable VM Virtual Box Manager" program should be closed.

Share this post


Link to post
Share on other sites

UPDATE: Fixed! Read description below to find out what kind of problem did I have and read EDIT 2 with a fix (sort of).

 

Hey there, fusiou71au!

 

I'm fairly new here, but I tried following your guide step-by-step and I managed to get some results! The system is working, but...

 

I'm having weird crashes. They seem to be random, but I found out they occur mostly during "new" operations, like opening a new window, launching a project (in xcode), trying to launch simulator, or even starting to scroll in the window. In most cases I'm not receiving any error messages, just a black screen with console prompt. Or like the screen attached. After a minute, the login screen appears and everything is rolled back to the moment before the crash and I can continue my work, but the crashes are often and I'd rather not work with them.

 

I've prepared the ISO couple of days ago, with El Capitan on version 10.11.4. The same issues seem to be happening to my friend that installed from the same ISO.

 

Is it an issue with the way I prepared the ISO? I did it on my hackintosh yosemite virtual machine (from a guide I found on google) if it matters. If you'd like to get a hand on the ISO in talks, I can PM it to you (I'd rather not give it to public).

 

Or maybe it is not an issue with installation (or preparation), but with my configuration? I think I followed every step here.

 

EDIT: Also another file, with some more error logs that - unfortunatelly - do not give me any hints on where to go any further.

 

EDIT2: I think I might have fixed the issue. It was simply a matter of reinstalling the system with different virtualbox settings. For reference, I'm on

Intel i5 6400

Geforce GTX 970

8GB ram DDR4

 

And virtualbox flags I used:

cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe modifyvm "El_Capitan" --cpuidset 00000001 000306a9 00020800 80000201 178bfbff
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "MacBookPro8,2"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-F65AE981FFA204ED"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
VBoxManage setextradata "El_Capitan" "VBoxInternal2/EfiGopMode" 3
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "W8#######B6"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiBoardSerial" "W8#########1A"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemVendor" "Apple Inc."
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemFamily" "iMac"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiBIOSVersion" "IM112.0057.03B"

post-1704209-0-29655700-1461275963_thumb.png

post-1704209-0-45909900-1461277369_thumb.png

Share this post


Link to post
Share on other sites

So, I ran through this last night, and it seemed to install fine. I'm able to get in to OS X and do OS X type things, however, I noticed one odd issue. When looking at System Profiler, It's showing I only have 3MB of VRAM, when I set it up to have 128MB (and hope to tweak it further to allow 512). Anyone have any thoughts on this? Thanks!

Share this post


Link to post
Share on other sites

Hi,

 

i am trying to run El Capitan on an Intel Xeon E3-1231 v3 Haswell with 4x3,4 Ghz and an ASRock Fatal1ty H97 Performance Board with 8GB Ram.

I just used this config:

 

VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac14,2"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-27ADBB7B4CEE8E61"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal©AppleComputerInc"
VBoxManage setextradata "El_Capitan" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

 

But after Installation i set a User and Password but if i enter the Password in the login screen i get a black screen and then back again the login screen??

 

Can someone help me with this?

 

Cu kami

Share this post


Link to post
Share on other sites

Thanks for the great guide! I got this working working on a Lenovo W520.

 

However, it is rather slow. My W520 is running on a Sandy Bridge Intel Core i7 2820QM with 8BG of ram. I followed the tutorial to the T, so I didn't have to spoof or change anything. During the initial installation, I was watching the output, and there were some errors there, but it installed all the way.

 

My question is, is there anyway to speed it up. It's just laggy, and takes a while to open things, and search for things on the web. Is this normal running El Capitan in virtual box?

 

Thanks again for the tutorial. This is pretty sweet!

Share this post


Link to post
Share on other sites

Hi, I am trying to set custom video mode for ElCapitan running in VirtualBox as a gues (host machine is Ubuntu Linux - by the way, the whole setup is working great).

 

I am trying to set CustomVideoMode as to 1920x1800.

 

In OS X I disabled System Integrity Protection (see guide here: http://anadoxin.org/blog/disabling-system-integrity-protection-from-guest-el-capitan-under-virtualbox-5.html)

 

After that I was able to edit file: /Library/Preferences/SystemConfiguration/com.apple.Boot.plist

 

It looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Graphics Mode</key>
        <string>1920x1080x32</string>

        <key>Kernel Flags</key>
        <string>"Graphics Mode"="1920x1080x32"</string>
</dict>
</plist>

Shut down the virtual machine and invoke the following command in Ubuntu host:

VBoxManage setextradata "El_Capitan" "CustomVideoMode1" "1920x1080x32"

After booting the virtual machine with OS X, custom video mode is not working... any idea what is wrong?

Share this post


Link to post
Share on other sites

The problem is that you need a functioning Mac in order to create the install media. What if you do not have one? Is there a way to create install media using just a Windows PC?

 

Sent from my SM-T810 using Tapatalk

Share this post


Link to post
Share on other sites

I dont think so. Anyway, you need iStore access to download El Capitan install App. So yes, I am pretty sure having a Mac is a must.

Share this post


Link to post
Share on other sites

I'm having trouble creating the .iso. When I run CECI.tool everything looks normal until the end when it says "hdiutil: convert failed - No space left on device"

 

I'm doing this from a VM on Virtualbox running Yosemite. Thanks all!

 

That simply means that your VirtualBox partition for OS X is too small.

 

You have to either resize the partition (but I don't know how to resize OS X partition after disk resize) or create another larger hard disk and add it to your Yosemite VM, then format the disk under OS X and clone the system to the new disk with Carbon Copy Cloner.

 After that you'll have to swap the first hard disk with the new one and you should have enough room to work with.

 

 Something else, for the resolution problem I tried the VBoxManage setextradata "OS X VM" "VBoxInternal2/EfiGopMode" N (Where N can be one of 0,1,2,3,4,5), but didn't work for me.

 

 Until I tried the same line but without quotes arround VBoxInternal2/EfiGopMode and assuring that capitalization was respected and this time it worked.

Share this post


Link to post
Share on other sites

For me VBoxManage setextradata "OS X VM" "VBoxInternal2/EfiGopMode" N works fine, but custom resolution (for widescreen) is not working, However, it seems there is a problem with ElCapitan, because VmWare has similar problems.

Share this post


Link to post
Share on other sites

Hi,

 

anyone here how can help me with my login problem? I described it in Post #39.

 

Thanks a lot.

 

Cu kami

Share this post


Link to post
Share on other sites

Hi,

 

anyone here how can help me with my login problem? I described it in Post #39.

 

Thanks a lot.

 

Cu kami

Hi Kami

 

If your problem looks similarly to the one I described in post #37 then you should simply follow my suggestions in that post.

 

Briefly speaking: try different configurations and reinstall your machine. It helped me.

 

 

The problem is that you need a functioning Mac in order to create the install media. What if you do not have one? Is there a way to create install media using just a Windows PC?

 

Sent from my SM-T810 using Tapatalk

 

I've created such media for me and my friends from school, if mega is still working, this will be the link with it:

 

https://mega.nz/#!WxtDHa7I!USd5qmnEParmZKR_MLzP0p11-Xje_lJZ4-BbUOQQwOE

 

PS. Don't abuse, I'd rather keep this working at least until next semester.

 

Share this post


Link to post
Share on other sites

hi,

 

tried the howto step by step... but my VM got into state "stuck" ... the log is attached here: https://bpaste.net/show/6ddc19b5c448

 

my setup is bit more complicated... running Freenas ; virtualbox inside the jail ... and then VM for osx... any idea? is it possible to make it work in such an environment?

 

 

thank you!

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.

  • Similar Content

    • By Cyberdevs
      Please read me:
      Ever since macOS Mojave came out (I mean the first DP) Apple removed the support for Atheros based WiFi Adapters from the IO80211Family.kext, so to fix it we need to add the AirPortAtheros40.kext to the Extensions manually.
      After each clean install the AirPortAtheros40.kext needs to be installed and after clean installing Mojave DPs after few times I decides to create this app to save some time.
       
      How to use it:
      This application will install the missing AirPortAtheros40.kext into /System/Library/Extensions and after the installation is done and once you reboot your computer the Atheros based WiFi adapters will be enabled.
      The installation is the first step of the process and it is fast but the next steps which are repairing the permission on /System/Library/Extensions and rebuilding the system caches might take a while so please wait until you were asked to reboot your computer.
       
      I'm using a TP-Link WDN4800 with an Atheros chipset and it works on other similar hardware.
       




       
    • By thomaspetersen
      Hi All
       
      I'm trying to start a Hackintosh High Sierra 10.13.5 installation:
      - MSI B350 PC Mate
      - Ryzen 5 - 2600
      - Radeon Pro 580 GPU
      - 4 x 8GB DDR4
      (Have a working clover bootloader for HS 10.13.3 - but for some reason, I can't use that setup with the 10.13.5) 
       
      Have tried different bootloader setup, with different outcomes...
      ATM. I get this error/hang - "Unknown CPU: family = 0x17, model = 0x8, Stepping = 0x2"
      Have search google, and can see that the threads ppl. are getting this, is when they look at "About this mac", I haven't yet installed the OSX.
       
      So can someone help...

      I'm running the newest Kexts: AppleALC, FakeSMC, Lilu, RealtekRTL8111, USBInjectAll and WhateverGreen.
      In Bootloader setup, i'm running: -v, -s, -f, -no_compat_check, busratio=34, PCIRootUID=1, npci=0x2000, dart=0 and nv_disable=1
      In SMBIOS i'm using the iMac18,2 and in RT i'm using BooterConfig: 0x28 and CsrActiveConfig: 0x67
      In installed drivers i'm using: AptioMemoryFix, EmuVariableUefi-64, OsxAptioFixDrv-64 (Have tried Fix2 as well)
       
      But i'm, keep getting the Unknown CPU hang/error, can someone help...
      Or do someone have a setup with the same CPU and GPU, that can show me his/her setup for Bootloader/Kexts...
    • By Badruzeus
      OPENSTEP was an operating system created by NeXT Software Inc. It served as the basis for Mac OS X after Steve Jobs came back to Apple after Apple acquired NeXT. This is simply to show computer history.
       
      Guest OS: (Next) OpenSTEP 4.2
      Virtualization: VirtualBox 5.2.18
      Host OS: Mac OS X El Capitan 10.11.6 (15G22010)
      Credit for installation guide: http://openstep.bfx.re/
       
       
       
    • By Thereman
      Hello, I'm a noob at installing MacOS on my current PC (which is running Windows 10 x64 Pro).
      Can I do a dual boot with windows 10 and MacOS Mojave? I already have windows 10 installed and I would like to put and MacOS Mojave, can it? If not, should I reinstall from 0 MacOS Mojave and after Windows 10?
       
      P.S: I have already make a topic about "Can I run MacOS" and the export boys on the forum said to me I can run it.
    • By Teress
      I get a lot of questions about HOW TO BACKUP A HACKINTOSH. So I decided to create Complete Guide with 5 methods described in detail, how to easily make bootable clones of Hackintosh system disks, or backup your data. Full step by step tutorial is here:
       
       
×