Jump to content
fusion71au

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

118 posts in this topic

Recommended Posts

Advertisement

Any possible hints for a system that won't boot past the EFI shell once the installation is over?

 

I had no problem following the guide for High Sierra all the way through the core installation process, but after the installation the system dumps me to an EFI shell, and I can't figure out how to get the system to actually boot the installed OS at that point.

Share this post


Link to post
Share on other sites
1 minute ago, siriusfox said:

Any possible hints for a system that won't boot past the EFI shell once the installation is over?

 

I had no problem following the guide for High Sierra all the way through the core installation process, but after the installation the system dumps me to an EFI shell, and I can't figure out how to get the system to actually boot the installed OS at that point.

Press "F12" key on VBox boot - locate your CLOVERX64.efi from EFI Partition:

Boot Maintenance Manager - Boot from File 

\\or with Boot Manager - EFI Hard Drive.

Share this post


Link to post
Share on other sites
28 minutes ago, Badruzeus said:

Press "F12" key on VBox boot - locate your CLOVERX64.efi from EFI Partition:


Boot Maintenance Manager - Boot from File 

\\or with Boot Manager - EFI Hard Drive.

 No luck unfortunately. The guide does not currently say to install Clover. Clover looks to be a tool like refind, but even booting Refind from an ISO doesn't actually show the Mac installation. As far as I can tell the installer given the guide isn't setting up the EFI partition properly or something similar.

 

Exiting from the EFI shell regardless dumps me to the boot manager, but the two relevant boot options ("Mac OS X" and "Mac Boot") both dump me back to the EFI shell once I try to start them.

 

Share this post


Link to post
Share on other sites
7 minutes ago, siriusfox said:

 No luck unfortunately. The guide does not currently say to install Clover. Clover looks to be a tool like refind, but even booting Refind from an ISO doesn't actually show the Mac installation. As far as I can tell the installer given the guide isn't setting up the EFI partition properly or something similar.

 

Exiting from the EFI shell regardless dumps me to the boot manager, but the two relevant boot options ("Mac OS X" and "Mac Boot") both dump me back to the EFI shell once I try to start them.

 

Did you "Enable EFI" and is your guest macOS using GUID Partition Scheme?

Boot with Clover ISO then install Clover to your EFI Partition, I guess.

Enable-EFI.png

Share this post


Link to post
Share on other sites
34 minutes ago, Badruzeus said:

Did you "Enable EFI" and is your guest macOS using GUID Partition Scheme? 

Boot with Clover ISO then install Clover to your EFI Partition, I guess. 

Enable-EFI.png

 

I did install with EFI enabled, and I can boot Clover and Refind post install. Unfortunately, neither system sees the installed OS.

Share this post


Link to post
Share on other sites
37 minutes ago, siriusfox said:

 

I did install with EFI enabled, and I can boot Clover and Refind post install. Unfortunately, neither system sees the installed OS.

Have you placed "ApfsDriverLoader-64.efi" and or VBoxHfs-64.efi on /EFI/CLOVER/drivers64UEFI ?

Edited by Badruzeus

Share this post


Link to post
Share on other sites

OK, crashing issue about CoreAudio for macOS Guest has been fixed with VirtualBox 5.2.22-126460 release.

On my case:

- VoodooHDA v2.9.1 installed on /EFI/CLOVER/kexts/Other
- AppleHDA on SLE was moved (we could use HDADisabler alternatively)
- VM Settings: Audio Enabled, Core Audio, Intel HD Audio Controller, Enable Audio Out

Here's the changelog: https://www.virtualbox.org/wiki/Changelog

VirtualBox_macOS 10.14_10_11_2018_07_58_04.png

Edited by Badruzeus

Share this post


Link to post
Share on other sites
On 11/4/2018 at 8:40 PM, Badruzeus said:

Have you placed "ApfsDriverLoader-64.efi" and or VBoxHfs-64.efi on /EFI/CLOVER/drivers64UEFI ?

I had not. Thank you! Pulling the clover release for VMware rather than the upstream release from Sourceforge fixed that problem. Things are booting and setup appears to be working.

 

The big question in my mind is now how do I get it to boot reliably in the future. The guides are currently a bit scattered, so knowing where to read from here to stabilize the system a bit would be quite helpful.

Share this post


Link to post
Share on other sites
Posted (edited)

Install hanging on "Creating RAM Disk":

 

I am trying to get a VM running Mojave 10.14.3 on Virtualbox 5.2.22 r126460 on Windows 10.

 

I followed the instructions and got as far as step 3 after removing the macOS.iso, reboot now from the virtual hard drive, Clover runs, choose the first option (Boot macOS Install Prebooter from Preboot), it starts running through scripts and then hangs when creating RAM disks, it never gets to the MacOS install GUI. I have tried to leaving it there for over an hour, VM CPU usage drops to zero and nothing happens. I have tried a few times and oddly each time it stops in a slightly different place but always appears to be when creating one of the RAM disks.

 

Any ideas please?

Thanks in advance.

 

EDIT: It seems there may be something wrong with the ISO file. When running the installer with a new vmdk file, it looks like it crashes before the end and doesn't finish writing all the OS files, so when it reboots it then hangs because it can't find some file it expects. I'll try recreating the iso from my Mac.

 

Annotation 2019-03-02 113926.jpg

Edited by AntonH1

Share this post


Link to post
Share on other sites

I have the macOS Catalina Beta running on the latest version of Virtual Box (6.0.8), with working sound and restart, using rEFInd in the EFI partition for APFS boot support. I’ve attached an archive with the files needed to setup the virtual machine for anyone who wants to try. Details listed below:

  • The boot and installation process is mostly automated. rEFInd will start automatically and load the Catalina ISO. After the user begins the install the VM will restart and boot to the hard drive to finish the installation process without the need to eject the ISO.
  • The virtual machine must be created and configured using the included batch file. The system definition is iMac14,2 and the script should be edited to include unique serial numbers or use a different product depending on the host system hardware.
  • The VBoxAudioFix disk image contains the AppleHDA.kext from 10.13.1 which was the last to support native audio in Virtual Box. It also contains a text file with instructions on replacing the original audio extension on High Sierra and Mojave which is also relevant to Catalina. However, the read only system partition must be remounted with write access using sudo mount -uw / first. I found this solution described here.
  • Verbose screen output is disabled for a more Apple like experience but can be selected from the rEFInd boot options menu by pressing Insert, Tab or F2. 
  • Machine settings: screen resolution is 1440x900, 4GB RAM and usb mouse setting is used (without mouse integration) due to issues with dragging not functioning when using usb tablet.

Setup the Catalina VM by editing the script with system and serial number information from Clover Configurator then double click to run it with the hard disk file in the same folder. Open Virtual Box and attach the ISO file then start the "macOS Catalina" entry and proceed with the installation.

VBoxCatalina.zip

Share this post


Link to post
Share on other sites
Posted (edited)
On 7/2/2019 at 1:49 PM, jpz4085 said:

I have the macOS Catalina Beta running on the latest version of Virtual Box (6.0.8), with working sound and restart, using rEFInd in the EFI partition for APFS boot support. I’ve attached an archive with the files needed to setup the virtual machine for anyone who wants to try. Details listed below:

  • The boot and installation process is mostly automated. rEFInd will start automatically and load the Catalina ISO. After the user begins the install the VM will restart and boot to the hard drive to finish the installation process without the need to eject the ISO.
  • The virtual machine must be created and configured using the included batch file. The system definition is iMac14,2 and the script should be edited to include unique serial numbers or use a different product depending on the host system hardware.
  • The VBoxAudioFix disk image contains the AppleHDA.kext from 10.13.1 which was the last to support native audio in Virtual Box. It also contains a text file with instructions on replacing the original audio extension on High Sierra and Mojave which is also relevant to Catalina. However, the read only system partition must be remounted with write access using sudo mount -uw / first. I found this solution described here.
  • Verbose screen output is disabled for a more Apple like experience but can be selected from the rEFInd boot options menu by pressing Insert, Tab or F2. 
  • Machine settings: screen resolution is 1440x900, 4GB RAM and usb mouse setting is used (without mouse integration) due to issues with dragging not functioning when using usb tablet.

Setup the Catalina VM by editing the script with system and serial number information from Clover Configurator then double click to run it with the hard disk file in the same folder. Open Virtual Box and attach the ISO file then start the "macOS Catalina" entry and proceed with the installation.

VBoxCatalina.zip

 

Kudos man, it works and makes the process much easier :)

 

New defaults are needed in order to install Catalina (iMac14,2 in @jpz4085's batch file is supported by 10.15 while the iMac11,3 SMBIOS in the first post no longer is).  You can use the attached macOS_iso_creator.tool.zip to create the bootable Catalina ISO after downloading the installer app into /Applications. 

 

Procedure to prepare the Catalina ISO
1.  On your Mac or Hack with SIP disabled, download/copy "Install macOS Catalina Beta.app" into your Applications folder. 

The app can be obtained from the App Store by enrolling in Apple's Public Beta program or directly from the software catalog with @crazybirdy's installScript_fullapp.zip.

 

Note:  You can verify the installer app by checking the SHA1 of InstallESD.dmg and BaseSystem.dmg (inside the /Install macOS Catalina Beta.app/Contents/SharedSupport folder) with the correct ones at this website.

 

2.  Download and unzip macOS_iso_creator.tool.zip into your ~/Downloads folder.  Note: you will need approx 18GB of free space on your hard disk for the script to complete.
3.  Open terminal, then run the following commands to execute the script:

cd ~/Downloads
chmod +x macOS_iso_creator.tool
./macOS_iso_creator.tool

4.  At the end of the process, you will have a macOS.iso on your desktop that you can attach to your Catalina VM.

 

Some screenshots...

 

Spoiler

2034379974_CatalinaDP3_19A501iInstallingonVBox6.0.8.thumb.png.f54cbe19a495f51a1cf9f7ed5269d8cf.png5440242_CatalinaDP3_19A501ionVBox6.0.8Refind.thumb.png.63f6e5e50dc5a8d9bed9f59847cd4762.png1130065696_CatalinaDP3_19A501ionVBox6.0.8RefindSIPPolicy.thumb.png.b9e5d9c8d23312d3b3758b78e739741e.png1129029164_CatalinaDP3_19A501ionVBox6.0.8Installed.thumb.png.08c1d94bee5a0043e6c542a9d75de2e2.png

 

Edited by fusion71au
Added updated macOS_iso_creator.tool

Share this post


Link to post
Share on other sites

Hi guys!

 

@fusion71au thank you very much for this thread!

 

I know this is probably a bit off-topic, since the tutorial is meant to be used on a Windows host, but I was only wondering, is there any way to do this on a MacOS/Hackintosh host? Yeah, I know you could simply install it on a spare partition, but I was just wondering if you could test for example Catalina or Mojave, or ElCapitan for the nostalgics, in VirtualBox, on MacOS, while running something else. Cause I tried...and failed lol. So I'm guessing I'm probably missing something or doing something wrong.

Share this post


Link to post
Share on other sites
Posted (edited)

Hi @arsradu, good to hear from you!

 

It is indeed possible to run a macOS guest with VirtualBox on a macOS host (real Mac or Hack).

 

You can use the same basic settings as described in the first post for El Capitan (with more memory + USB3 enabled for newer macOS versions), but since DMI and SMC settings on the host are made "Mac like" by Clover, there is no need to patch the vbox configuration file with the "VBoxManage setextradata" for DMI and SMC keys.

 

After creating a new macOS guest (with 10.13 setting) in VirtualBox 5.2.2 running on a High Sierra 10.13.6 Host/Hack, I simply attached a Mojave vmdk disk image copied from one my Windows macOS VMs...

 

Spoiler

1264888527_MojaveGuestrunningonVirtualBox5.2.2onHighSierraHost_1.thumb.png.56094fb66a23863cbc2e7f6c63327006.png1032067101_MojaveGuestrunningonVirtualBox5.2.2onHighSierraHost_2.thumb.png.09e1152b6838a0b83cf16f077be91089.png


(cheated a bit rather than clean install from ISO to save time ;)).

 

Since VirtualBox has no apfs support, you need Clover or Refind with ApfsDriverLoader-64.efi to boot High Sierra/Mojave/Catalina on apfs drives.

 

Good Luck!

 

Edited by fusion71au
formatting

Share this post


Link to post
Share on other sites
Posted (edited)

Thank you very much!

 

Yesterday, after trying step by step the tutorial on the first page (thought I'd just try to adapt it to a MacOS host, so the path to VBoxManage would be different in this case), I got stuck here. It wouldn't even start the machine.

 

1905166170_Screenshot2019-07-08at18_00_56.png.9c1fc5ebb2d5b4634f459f30c9d1348f.png

 

 

Today, I thought: let's try to uninstall and reinstall VirtualBox. Maybe some config got messed up. And since I don't need to patch anything, I'll just do the basic settings inside VirtualBox UI and give it a try.

 

Well, what do you know? Booted right off! And yes, from the iso I've created with your (in this case El Capitan) script.

 

194989701_Screenshot2019-07-09at10_27_28.thumb.png.0a5b8196174b3b229bf26b76f2c70d6c.png

 

Aaand installed!

 

1356482866_Screenshot2019-07-09at10_57_14.thumb.png.ff6753a27cbde4726b0fdb6737f12dd9.png

 

Many, many thanks for the tips. You're awesome! :) 

 

Update: works with both VirtualBox 5.2.30 and 6.0.8.

 

Edited by arsradu

Share this post


Link to post
Share on other sites
On 7/4/2019 at 10:02 AM, fusion71au said:

 

Kudos man, it works and makes the process much easier :)

 

New defaults are needed in order to install Catalina (iMac14,2 in @jpz4085's batch file is supported by 10.15 while the iMac11,3 SMBIOS in the first post no longer is).  You can use the attached macOS_iso_creator.tool.zip to create the bootable Catalina ISO after downloading the installer app into /Applications. 

 

 

Thank you both for this post and the files. I knew I should have checked this forum first. Just finished using a guide on Wikigain, mostly so I could make the Catalina iso.

 

I was going to use the guide on https://techsviewer.com/install-macos-10-15-catalina-on-virtualbox-on-windows-pc/  to install Catalina in the morning, but their guide has you setting the VM info to use iMac11,3 rather than 14,2 so thank you for that heads up.

 

I will give the posts from here a go in the morning. Thank you again for the effort

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 Aldaro
      Gigabyte, in their infinite wisdom, decided to remove the option to disable serial ports, and not being able to do so has been causing me some problems. I know that I have to either use a patch in clover, or create a custom SSDT to disable super I/O, but I honestly do not know how to go about doing this. One of the weirder problems I'm experiencing is the inability to connect to Apple Music (error 11556) unless I go into my network settings, and delete my serial connection. If anyone could help me out with this, that'd be greatly appreciated; anyway, thank you for taking the time to read this.
       
      SPECS:
      Mobo GIGABYTE Z390 M GAMING (UEFI F8)
      CPU: i5 9600k
      RAM: 32GB DDR4 @ 2666 Mhz
      GPU: AMD Radeon RX 580 w/ 8GB of VRAM (MSI armor oc edition)
      Storage Samsung 970 evo 500GB
    • By cvad
      View File Bootdisk Utility
      Make bootable USB Flash Disk for MAC OS X with Latest Clover bootloader revision fast and easy by one click! under OS Windows.
      Special utility from cvad & russian MAC community for new hackintosh users.
       
      Enjoy...
       
      For more information and complete instructions please see this topic.
       
       
       
       
      Feel free to "Rate File"
      Submitter cvad Submitted 04/28/2013 Category Bootloaders  
    • By e97
      HackPro X99 System
      Until Apple blesses us with the MacPro7,1 – this is for those that require tools to do their work.
      An appropriate bicycle for the mind.
       
       

       

       

       
      Specs:
       
      CPU: Intel Xeon E5-2678 v3 (12 core, 2.5 GHz / 3.3 GHz Boost)
      Motherboard: SZMZ X99-8D3
      RAM: 16GB DDR3-14900R 1866Mhz ECC RDIMM modules
      GPU: Radeon RX Vega 64 8GB
      Storage: Phison E12 m.2 NVMe PCI-E 3.0 x4 SSD
      Water blocks: BARROW CPU + GPU
      Radiator: 360mm x 25mm slim
      Pump: DDC
       
      Case dimensions: 431 mm x 342 mm x 177 mm
       
       
       
      XCPM OFF
       

       
      XCPM ON
       

       
      OpenCL
       

       
       
       
      iMacPro1,1
       

       
       

       
      OpenCL
       

       
       
      NVMe
       

       
       
      Win 10 x64 v1809
       
      AIDA64 - Cache & Memory
       

       
       
      Download:  https://github.com/xe97/X99-8D3-Clover
       
       
       
       
       
      Anyone else I forgot
       
       
    • By digivish
      Hi All - quick thing - I have a NUC 8i7BEH with 32GB RAM and 2 x 1TB SSD drives. Each drive has its own OS - Windows 10 and Catalina 10.15.
       
      Clover works well - Catalina Boots, so does Windows.
      Catalina - has sound over HDMI (to my monitor's speakers)
      Windows - no audio device found - It does show Realtek and Intel Display Drivers - but the speaker has a red"x" and in Devices, there is no entry for Microphone Array under Audio Input/Output. It does, however, show Intel display over the HDMI - but actually no sound.
       
      I have tried reinstalling Realtek drivers - now here's the thing...when it installs, it first uninstalls existing Realtek drivers - at this stage (and it's important) the sound starts working - as if uninstalling did the trick. As part of the installing, I have to reboot and upon reboot, it actually reinstalls the Realtek drivers. After that, I'm back to square 1. Unsure if it's the config.plist or boot args in clover. But something with Clover for sure.
       
      I have tested this by removing the Mac Drive with clover and just booting directly to Windows 10 bootloader and everything works as it should, I have sound over HDMI and the audio device shows. Just not when I boot with Clover.
       
      has anyone experienced this and have thoughts or pointers.
       
      Thanks a ton!
    • By MaLd0n
      ---TUTORIAL---

      https://olarila.com/forum/viewtopic.php?f=50&t=8685
       
      --Original Post--
       
      https://olarila.com/forum/viewtopic.php?f=97&t=11237
       
      --Bios/UEFI Settings--
       
      *Update bios/uefi to F7+*
      1- Go to M.I.T./Advanced Frequency Settings tab
       
      Extreme Memory Profile (X.M.P.) - Profile 1
       
      2- Go to BIOS tab
       
      CSM Support - Disabled
       
      3- Go to Peripherals/Thunderbolt(TM) Configuration tab
       
      Security Level - No Security
      Thunderbolt USB Support - Enabled
      GPIO3 Force Pwr - Enabled
       
      4- Go to Chipset tab
       
      Internal Graphics - Enable
       
      ---CLOVER FOLDER---
      https://olarila.com/files/Clover.Folder/EFI CLOVER Z390 DESIGNARE.zip
      *Use this folder with FULL DSDT PATCHED
       
      ---OPENCORE FOLDER---
      https://olarila.com/forum/viewtopic.php?f=28&t=10578
      *Use this folder with FULL DSDT PATCHED
       
       
      ---Extract one Full dump for DSDT edits, post files---
       
      RunMe.app
       
       
       
      ---HARDWARE---
       
      --MOBO

      GIGABYTE Z390 DESIGNARE
      -Link
      https://www.amazon.com/Z390-DESIGNARE-Gigabyte-Thunderbolt-Motherboard/dp/B07K8RJZRG/ref=sr_1_1?keywords=Z390+DESIGNARE&qid=1565492390&s=electronics&sr=1-1

      --PROCESSOR

      Intel Core i9-9900K
      -Link
      https://www.amazon.com/Intel-i9-9900K-Desktop-Processor-Unlocked/dp/B005404P9I/ref=sr_1_1_sspa?keywords=Intel+Core+i9-9900K&qid=1553358099&s=gateway&sr=8-1-spons&psc=1

      --COOLER

      CORSAIR H100i RGB PLATINUM AIO Liquid CPU Cooler
      -Link
      https://www.amazon.com/CORSAIR-H100i-PLATINUM-Liquid-Cooler/dp/B07JWB5BSN/ref=sr_1_4?keywords=WATER+COOLER+CPU&qid=1565492509&s=gateway&sr=8-4

      --MEMORY

      Corsair CMW32GX4M2C3200C16 Vengeance RGB PRO 32GB (2x16GB) DDR4 3200 (PC4-25600)
      -Link
      https://www.amazon.com/Corsair-CMW32GX4M2C3200C16-Vengeance-PC4-25600-Desktop/dp/B07GTG2T7L/ref=sr_1_15?keywords=memory+ddr4+32&qid=1553358238&s=gateway&sr=8-15

      --GPU

      MSI RX Vega 64 AIR Boost 8G OC
      -Link
      https://www.amazon.com/MSI-RX-64-AIR-8G/dp/B07DH7S1X1/ref=sr_1_2?keywords=vega+64+gigabyte&qid=1565492819&s=electronics&sr=1-2

      --SSD

      Samsung 970 EVO 1TB SSD (MZ-V7E1T0BW) NVMe M.2 V-NAND
      -Link
      https://www.amazon.com/Samsung-970-EVO-1TB-MZ-V7E1T0BW/dp/B07BN217QG/ref=sr_1_1?keywords=s+samsung+970+evo+1tb&qid=1565493002&s=electronics&sr=1-1

      --POWER SUPPLY

      EVGA Supernova 1000 P2 80+ Platinum, 1000W ECO Mode Fully Modular 
      -Link
      https://www.amazon.com/EVGA-Supernova-Platinum-Crossfire-220-P2-1000-XR/dp/B00EKJQM5E/ref=sr_1_3?keywords=power+supply+1000w&qid=1565493196&s=gateway&sr=8-3

      --WIRELESS

      TP-Link Archer T9E
      -Link
      https://www.amazon.com/TP-Link-Archer-T9E-Beamforming-Technology/dp/B00TQEX7AQ/ref=sr_1_1?keywords=TP-Link+Archer+T9E&qid=1553358397&s=gateway&sr=8-1

      --CASE

      Thermaltake Core P5 Tempered Glass Black Edition ATX Open Frame Panoramic Viewing
      -Link
      https://www.amazon.com/Thermaltake-Tempered-Panoramic-Certified-CA-1E7-00M1WN-03/dp/B01N4IGVSC/ref=sr_1_2?keywords=Thermaltake+Core+P5&qid=1565493567&s=gateway&sr=8-2

      --DSDT Patches--
      -FIX ACPI ERRORS -FIX OEM SSDTs to AVOID ERRORS AND WARNINGS -REMOVE UNUSED SCOPES / DEVICES -HIGH PRECISION EVENT TIMER -SATA -DMAC -REMOVE PROBLEMATIC AND UNUSED DEVICES -FIX K.P in REBOOT -SLPB -DARWIN / WINDOWS 2015 -XHCI -PLUGIN TYPE -HDAS to HDEF -HDEF -REAL TIME CLOCK -ARTC -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -FWHD -USBX -PMCR -PPMC -XSPI -CNVW -GMM -IMEI -EC -PNLF -ARPT -GFX0 -NVME -DTGP -ACQUIRE MUT0 0XFFFF -MUTEX MUT0 0x00 -EXTERNAL REFERENCES -UNKNOWNOBJ -HDMI / HDAU -FULL RENAMED DEVICES ---SCREENSHOTs---




















      -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!
      Thanks to KGP for SSDT Thunderbolt
      Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad, Sampath007, onemanosx, erroruser, Jenny David, Olarila Facebook Community, Hackintosh Facebook Community and many others!
      We're all here to have fun and learn from each other!
×