Via @foone, we learn of the GitHub projectmacos-guest-virtualbox by GitHub user img2tab.
Today I'm showing you how to Install Mac OS X 10.4.8 Tiger in a Virtual Machine, you can use VirtualBox or VMWare. With this tutorial, you can install macOS. Virtualbox has the option for a MacOS virtual machine in it’s New VM dialog, but we will need to make further adjustments to make it truly Mac-ready. Pop open Virtualbox, and Create a new Virtual Machine. Name this MacOS Mojave, and set it to Mac OS X (64-bit).
One-Key semi-automatic installer of macOS Mojave 10.14.2 on VirtualBox
The “one key” is enter, which has to be pressed whenever the virtual machine is ready for the next command. (Contrary to the script’s name, the user has to use more than one key! There is one instance when the “host key” is used to release the mouse from the virtual machine, and one instance where the user has to choose [y]es or [n]o!)
The goal of the script is to allow for a very easy installation without any closed-source additions or extra bootloaders.
Tested on Cygwin, should work on Linux distros. GNU GPL license v2.0.
iCloud and iMessage connectivity
iCloud and iMessage and other connected Apple services require a valid device serial number. Set it before the installation by replacing
NOTAVALIDSN0
with a valid serial number, or after the installation with VBoxManage setextradata '${vmname}' 'VBoxInternal/Devices/efi/0/Config/DmiSystemSerial' '${serialnumber}'
. An invalid serial number that matches the correct structure for the device name and board ID might work, too.Dependencies
- VirtualBox≥5.2 with Extension Pack
Bash
≥4 (run on Windows through Cygwin)unzip
,wget
(install through package manager)dmg2img
(install through package manager on Linux; let the script download it automatically on Windows)
See the GitHub repo for details and source for the installer.
If you’re not a VirtualBox fan, you can look to make your Windows 10 more like Mojave via personalizations & tweaks, see this Youtube video on how to do it:
A guide to installing a MacOS on a Virtual Machine on Windows — even without an Intel processor
Legal
If you follow this guide or create your own disk image, you may be in violation of Apple’s End User License Agreement. The consequences of this may be dependent on your jurisdiction. Learn how legally binding an EULA is in your local court before continuing.
From Apple’s EULA,
..to install, use and run up to two (2) additional copies or instances of the Apple Software within virtual operating system environments on each Mac Computer you own or control that is already running the Apple Software.
This means that you can use up to two OS(X) virtual machines, but only on Mac hardware/software.
Often (but not always), it isn’t strictly ‘illegal’ if you get the installer from your own Mac, but you will not get any support from Apple.
I do not condone, support, or personally allow getting a disk image illegally through piracy.
Prerequisites
This guide uses the Oracle VirtualBox application and a Macintosh “Big Sur” 11.0.1 disk image.
VirtualBox
Oracle’s “VirtualBox” is a virtual machine management application. To install, go to the VirtualBox downloads page and download the latest version 6.0 release (currently 6.1.20) which is compatible with Windows.
Take note of where VirtualBox is installed. You might need it later.
Macintosh Disk Image
When you already have a Mac,
- Go to the App Store and download the installer for “macOS Big Sur”.
- Open Terminal in Applications or find it through Launchpad.
- Run the following commands in Terminal:
hdiutil create -o /tmp/MacBigSur -size 12500m -volname MacBigSur -layout SPUD -fs HFS+J
hdiutil attach /tmp/MacBigSur.dmg -noverify -mountpoint /Volumes/MacBigSur
sudo /Applications/Install macOS Big Sur/Contents/Resources/createinstallmedia --volume /Volumes/MacBigSur --nointeraction
hdiutil detach /Volumes/MacBigSur/
hdiutil convert /tmp/MacBigSur.dmg -format UDTO -o ~/Desktop/MacBigSur.cdr
mv ~/Desktop/MacBigSur.cdr ~/Desktop/BigSur.iso
- Move the newly created file to an external drive and then to your Windows.
Virtual Machine
Creation
With VirtualBox open, click the “New” button at the top of the screen that has an icon that looks like a spiked blue circle and select Mac OS X as the type and Mac OS X (64-bit) as the version. You can use anything you’d like for the Name field.
Once you’ve selected “Next”, you should be able to allocate memory to the virtual machine. It is recommended that you allow 4,000 (or more) megabytes of memory. I use 16,000 megabytes, but my computer’s capacity is much higher. Pick an amount you can afford to spare.
The “Hard disk” menu shows up next. Make sure you’ve selected “Create a virtual hard disk now”, “VHD (Virtual Hard Disk)”, and “Dynamically allocated” in the proceeding dialogs.
Under “File location and size”, change 20GB to 50GB (or higher) to make the virtual machine think that it is able to install itself. If the (virtual size) is lower, the installation media may recognize there isn’t enough space to install, even when there is really infinite space on the drive.
the image above is incorrect, it should be “C:MacintoshRoot.vhd”
It should create after you continue with the creation, but don’t click “Start” yet – nothing will happen.
Settings
With the newly created instance selected, click the yellow “Settings” gear.
Firstly, open the “System” menu and uncheck the “Floppy” option under Boot Order. Ensure that the Chipset option is set to
ICH9
.Secondly, open the “Processor” tab and ensure that the “Enable PAE/NX” is checked. This is to ensure best compatibility with more than 4GB of memory assigned. Also set at least 2 processors (processor cores) by dragging the slider.
Like the memory, you can and should set more, but only if you can spare them.
Like the memory, you can and should set more, but only if you can spare them.
![Github Github](/uploads/1/1/9/8/119875430/688187988.jpg)
Next, under the “Display” menu, allocate at least 128MB of video memory. You can additionally enable 3d acceleration, but it is unnecessary.
Now, in the “Storage” menu, ensure that “Use Host I/O Cache” is checked. This will result in better performance.
Importantly, click the “Empty” CD icon, the CD icon on the right near the “Optical Drive” dropdown, “Choose a disk file…”, open the disk image, and click “Open”.
Once the proper disk image is selected, click “OK” so the settings are all saved.
Still, do not click “Start” yet!
Patching
In this section, we’re going to use
VBoxManage.exe
through the command prompt to set some properties that we can’t do on the main interface.Go ahead and open your command prompt (Win + -Win + “cmd”) and navigate to your VirtualBox installation directory with
cd
. The default installation location is at C:Program FilesOracleVirtualBox
.When you are in the installation directory, run the following commands, one-by-one:
Mac Os Virtualbox Github Update
while also replacing
'[VM Name]'
with your virtual machine name (in quotes) and 1920x1080
by your computer resolution.Installing
Open VirtualBox back up, and click the green “Start” arrow.
When the “Select start-up disk” dialog is shown, select the disk image.
It will probably take several minutes to launch the first interface.
When the installer is shown, select your language, click the arrow, and select “Disk Utility”.
Secondary click
VBOX HARDDISK Media
and click “Erase”.Name the newly formatted drive whatever you want the main drive to be named. I name it “Root”.
After the disk is formatted, click “Install macOS Big Sur” and “Continue”.
Agree to the license agreement, select your newly formatted virtual hard drive (for me “Root”) and click “Continue”.
Macos Guest Virtualbox Github
Once installation is complete, the machine will restart and starts copying the first files. After that, you can begin setting the newly created virtual machine up yourself.
Macos Catalina Virtualbox Github
This site is open source. Improve this page.