macOS on Linux
Table of Contents
How to run macOS on Linux, and how to optimize and configure macOS post-installation. There are docker, script, and many other ways to run macOS on Linux. But I found the quickemu to be the easiest and fastest way to run macOS on Linux. The latest version of macOS that I could get to work is Then just run the Choose the Choose the Find the large disk (size ~100 GB) and erase it. The name of the drive might be In the Click Choose the Wait for the installation to complete. (In VirtIO block, it can take up to 15 hours, and in bare metal, it can take up to 15 minutes.) On the first reboot, choose On the second reboot, choose Source: osx-optimizer WARNING: Never change the resolution using macOS system settings. It breaks in my experience. In my case, I was using the Source: macOS-Simple-KVM NOTE: Skip step 1 to 3 if the resolutions already exist in BIOS. Installations
sequoia. To get the sequoia version, you can use the following command:
.conf file created by the above command:
macOS Base System using the keyboard arrow keys and press Enter. (Note: The mouse doesn’t work in this menu.)Disk Utility and press Continue.Apple Inc. VirtIO Block Device.Erase dialog, choose the following options:Apple VirtIO Block (or any name you like)APFSGUID Partition MapErase and then Done. And then close the Disk Utility.Reinstall macOS and click Continue.Apple VirtIO Block (or the name you gave) and click Install.macOS Installer.Apple VirtIO Block (or the name you gave). Post-Installation
Optimize macOS
# Not tested
# Not tested
Enable TRIM
Install
brew
Change resolution
Display: SDL, VGA, GL (on), VirGL (off) @ (1280 x 800) option in QEMU. And after changing the resolution, the bottom 70% of the screen was black.diskutil list and look for the disk/partition location of the EFI. (There may be more than one.)sudo diskutil mount diskYsZ, using the disk/partition location name where you see EFI. Most likely it will be disk1s1. The one next to Linux Filesystem not Apple_APFS.diskutil.OC directory and open the config.plist file in the macOS text editor.<key>ScreenResolution</key>
<string>1280x720</string>
Escape key as soon as the window comes up.Device Manager->OVMF Platform Configuration->Change Preferred and select the correct resolution.F10 to save the changes.Escape multiple times to come back to main menu, and then select Continue on it. Install useful software