Whether or not you need to sometimes check an internet site in Safari, or check out a little bit little bit of software program in the Mac surroundings, having entry to the most recent model of macOS in a digital machine is helpful. Sadly, you’re not likely supposed to do that—so getting macOS working in VirtualBox is, to say the least, tough.
It’s not inconceivable, nevertheless. A number of the people on the InsanelyMac boards have discovered a course of that works. The one factor not working is sound, which for some cause is extremely distorted or nonexistent. Apart from that, although, that is macOS High Sierra, working easily in VirtualBox.
To make issues a little bit simpler for folks, we’ve mixed strategies from a number of completely different discussion board threads right into a single, step-by-step tutorial, full with screenshots. Let’s dive in.
NOTE: So as to get this working, you will have entry to an actual Mac in order to obtain High Sierra. You could possibly, we suppose, get hold of a High Sierra ISO by different means, however we don’t suggest it. Borrow a pal’s Mac for an hour in the event you don’t have one, and you have to be nice—all the pieces past step certainly one of this tutorial will be performed on your Windows PC.
In case you’re on a Mac and need a macOS digital machine to be used on that Mac, we suggest trying out out Parallels Desktop Lite as a substitute, as a result of it can create macOS digital machines totally free and is so much simpler to work with.
Prepared to get began? Let’s soar in!
Step One: Create a macOS High Sierra ISO File
To begin, we’ll want to create an ISO file of macOS High Sierra’s installer, so we are able to load it in VirtualBox on our Windows machine. Seize your borrowed Mac, head to the Mac App Retailer, seek for Sierra, and click on “Obtain.”
When the method is finished, the installer will launch—that’s okay, simply shut it with Command+Q. We don’t need to improve your pal’s Mac; we simply want the downloaded recordsdata.
To transform these recordsdata to an ISO, we’ll want to use the Terminal, which you could find in Functions > Utilities.
First, run the next command to create a clean disk picture:
hdiutil create -o /tmp/HighSierra.cdr -size 7316m -layout SPUD -fs HFS+J
Subsequent, mount your clean picture:
hdiutil connect /tmp/HighSierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
Now you’re going to restore BaseSystem.dmg from the installer over to the newly mounted picture:
asr restore -source /Functions/Install macOS High Sierra.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
Notice that, after doing this, the identify of our vacation spot mount level has modified to “OS X Base System/System.” You’re nearly performed! Unmount the picture:
hdiutil detach /Volumes/OS X Base System
And, lastly, convert the picture you created into an ISO file:
hdiutil convert /tmp/HighSierra.cdr.dmg -format UDTO -o /tmp/HighSierra.iso
Transfer the ISO to the desktop:
mv /tmp/HighSierra.iso.cdr ~/Desktop/HighSierra.iso
And also you’ve received a bootable High Sierra ISO file!
Copy it to your Windows machine utilizing a big flash drive, an exterior laborious drive, or over your native community.
Step Two: Create Your Digital Machine in VirtualBox
Subsequent, head to your Windows machine, and set up VirtualBox in the event you haven’t already, ensuring you’ve gotten the most recent model (significantly, older variations might not work.)
Open it up and click on the “New” button. Title your Digital Machine “High Sierra,” and select “Mac OS X” for the working system and “Mac OS X (64-bit)” for the model (as of this writing, “macOS High Sierra” will not be supplied, however that’s nice.)
Proceed by way of the method. For reminiscence, we suggest you utilize at the least 4096MB, although you possibly can go for extra in the event you have sufficient RAM to spare on your Windows machine.
Subsequent, you’ll be requested about your laborious drive. Select “Create a Digital Exhausting Disk Now” and click on Create.
Select VDI for laborious disk sort and click on Subsequent. You’ll be requested if you need a dynamically sized drive or fastened. We suggest Fastened Dimension, because it’s a bit quicker, although it’ll take up a bit extra laborious drive house on your Windows machine.
Click on Subsequent. You’ll be requested how massive a drive you need; we suggest at the least 25GB, which is sufficiently big for the OS and some functions. Relying on your storage state of affairs, you possibly can provide extra, however we don’t suppose you possibly can actually use a lot lower than that.
Click on by way of the prompts, and also you’ve created an entry to your digital machine! Now it’s time to do some configuration.
Step Three: Configure Your Digital Machine in VirtualBox
It’s best to see your digital machine in VirtualBox’s primary window.
Choose it, then click on the large yellow “Settings” button. First, head to “System” in the left sidebar. On the Motherboard tab, make it possible for “Floppy” is unchecked.
Subsequent head to the “Processor” tab, and ensure you have at the least two CPUs allotted to the digital machine.
Subsequent, click on “Show” in the left sidebar, and ensure Video Reminiscence is about to at the least 128MB.
Subsequent, click on “Storage” in the left sidebar, then click on the “Empty” CD drive. Click on the CD icon on the high proper, then browse to the High Sierra ISO file you created earlier.
Make certain to click on “OK” to finalize all of the modifications you’ve made, then shut VirtualBox. No, significantly: shut VirtualBox now, or the subsequent steps gained’t work.
Step 4: Configure Your Digital Machine From The Command Immediate
We’ve made a number of tweaks, however we want to make a number of extra extra in order to persuade the working system it’s working on an actual Mac. Sadly, there are not any choices for this from VirtualBox’s interface, so that you’ll want to open the Command Immediate.
Open the Begin Menu, seek for “Command Immediate,” then right-click it and choose “Run as administrator.”
You want to run a quantity instructions, in order. Paste the next instructions, urgent Enter after every one and ready for it to full:
cd "C:Program FilesOracleVirtualBox"
VBoxManage.exe modifyvm "High Sierra" --cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff
VBoxManage setextradata "High Sierra" "VBoxInternal/Units/efi/zero/Config/DmiSystemProduct" "MacBookPro11,three"
VBoxManage setextradata "High Sierra" "VBoxInternal/Units/efi/zero/Config/DmiSystemVersion" "1.zero"
VBoxManage setextradata "High Sierra" "VBoxInternal/Units/efi/zero/Config/DmiBoardProduct" "Mac-2BD1B31983FE1663"
VBoxManage setextradata "High Sierra" "VBoxInternal/Units/smc/zero/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "High Sierra" "VBoxInternal/Units/smc/zero/Config/GetKeyFromRealSMC" 1
That’s it! If all the pieces labored, you shouldn’t see any suggestions; the instructions will merely run. If the command didn’t work, be sure your digital machine is called “High Sierra” precisely; if it isn’t, edit the instructions above placing your machine’s identify in the quotes. Go forward and shut the Command Immediate. We’re heading again to VirtualBox now.
Step 5: Boot and Run The Installer
Re-open VirtualBox, click on your Sierra machine, then click on “Begin.” Your machine will begin to boot. You will notice plenty of superfluous data as this occurs—and I imply a lot—however don’t fear about it. It’s regular, even among the issues that appear like errors.
It’s best to solely fear if a selected error hangs for 5 minutes or extra. Simply stroll away and let it run for a bit. In case you’ve performed all the pieces proper, it’ll boot.
Ultimately, you’ll see the installer asking you to decide a language:
Decide “English,” or no matter language you like, then click on “Subsequent.” Earlier than you do the rest, nevertheless, click on “Disk Utility” then “Proceed.”
You gained’t see the drive: don’t panic, High Sierra hides clean drives by default. Within the menu bar, click on “View” adopted by “Present All Units.”
It’s best to now see your empty digital drive in the sidebar. Click on it, then click on the “Erase” choice.
Title the drive “Macintosh HD,” and depart the opposite two settings as-is: “Mac OS Prolonged Journaled” and “GUID Partition Map”. Don’t create an AFS partition, as a result of it is not going to work and also you’ll have to begin over with a brand new digital laborious drive. Click on “Erase,” then shut Disk Utility when the method is full. You’ll be introduced again to the primary window.
Choose “Reinstall macOS” then click on “Proceed.” You’ll be requested to agree with the phrases.
Agree and also you’ll finally be requested to select a tough drive; choose the partition you simply made.
The set up will start! This would possibly take some time, so be affected person. Ultimately your digital machine will restart and take you…again to the installer. Don’t panic: that is to be anticipated.
Step Six: Boot Installer Stage Two From the Digital Exhausting Drive
At this level the installer has copied recordsdata onto the digital laborious drive, and expects to boot from there. For no matter cause this doesn’t work on the digital machine, which is why you’re seeing the installer once more.
Flip off your digital machine and open its settings. Head to Storage, click on “HighSierra.iso” in the “Storage Tree” panel, then click on the CD icon at top-right and click on “Take away Disk from Digital Drive.” This may utterly disconnect our set up ISO.
Now begin up the digital machine and also you’ll see this pretty display screen.
That is the EFI Inner Shell, and so long as you see “FS1” listed in yellow, you need to use it to launch the remainder of the installer. Click on the digital machine and permit it to seize you mouse and keyboard, then sort
fs1: and hit Enter. This may swap directories to FS1, the place the remainder of the installer is positioned.
Subsequent we’re going to run a number of instructions in order to swap to the listing we want:
cd "macOS Install Knowledge" cd "Locked Information" cd "Boot Information"
Now we are able to run the installer itself with the next command:
The installer will decide up the place it left off. First you’ll see a sequence of textual content, like earlier than, however finally you’ll see the GUI installer come again. (Don’t fear, you solely have to undergo this course of as soon as.)
We’re getting there, simply want a little bit bit extra persistence.
Step Eight: Log Into macOS High Sierra
Ultimately the digital machine will reboot once more, this time into macOS High Sierra. If that doesn’t occur, strive ejecting the ISO from the Digital Machine. When High Sierra does boot, you’ll want to undergo selecting your nation, establishing a person, and the remainder of the preliminary setup course of.
Ultimately, you’ll make it to the Mac desktop. Yay!
Now you can check out any Mac software program, although some capabilities, like FaceTime and Messages, gained’t work as a result of Apple gained’t acknowledge your pc as an actual Mac. However plenty of the essential stuff ought to work. Have enjoyable!
Step Eight (Non-compulsory): Change Your Decision
By default, your digital machine could have a decision of 1024×768, which isn’t plenty of room to work with. In case you strive to change the decision from inside macOS, nevertheless, you will note no choice to accomplish that. As an alternative, you want to enter a number of instructions.
Shut down your Digital Machine by shutting down macOS: click on the Apple in the menu bar, then click on “Shut Down.” Subsequent, shut VirtualBox solely (significantly, this step is not going to work if VirtualBox remains to be open!) and head again to Windows’ Command Immediate as an admin. You want to run the next two instructions:
cd "C:Program FilesOracleVirtualBox"
VBoxManage setextradata "High Sierra" "VBoxInternal2/EfiGopMode" N
Within the second command, you want to change the
N with a quantity from one to 5, relying on what decision you need:
- 1 provides you a decision of 800×600
- 2 provides you a decision of 1024×768
- three provides you a decision of 1280×1024
- four provides you a decision of 1440×900
- 5 provides you a decision of 1920×1200
Begin up VirtualBox, load up your digital machine, and it ought to boot to your most popular decision!
From now on, you possibly can open VirtualBox for any Mac-related testing you need to do. Once more, you’ll see plenty of errors pop up throughout boot, however they’re nice; ignore them. Additionally, do not forget that audio gained’t work, nor will issues like FaceTime or iMessage, which require an actual Mac. This isn’t going to be good, which is to be anticipated from a wholly unsupported setup. But it surely’s macOS, in a digital machine, and that’s not dangerous! Make certain to take a look at our information to VirtualBox’s superior options to get probably the most out of your machine, too.
Yet one more factor: an enormous shout-out to Chad S. Samuels, with out whom I couldn’t have up to date this information for High Sierra. Thanks a lot!