Ga door naar hoofdinhoud
Word lid van de reparatiegemeenschap - Account aanmaken

Virtualizing macOS on Intel

  1. Virtualizing macOS on Intel, Before you begin: stap 1, afbeelding 1 van 1
    • Before you begin, there are some things you need to know:

    • UTM does not have SPICE tools for Intel macOS (Tiger 10.4 to Tahoe 26). This means there will be no graphics acceleration, clipboard sharing, dynamic window resizing, etc. If you need graphics acceleration, use different software.

    • There is a package for graphics acceleration, but I haven't yet tried it in UTM. There's a good chance it won't even work here, but it has been used successfully in Proxmox VE if you want to give that a try.

    • Virtualization will not work with Mac OS X 10.3 Panther or before because they only support PowerPC, or past macOS 26 Tahoe because 27 and beyond only support Apple Silicon. The steps for getting PowerPC macOS working are much different than these.

    • Some versions will need patches to work properly. These may or may not be available through OpenCore Legacy Patcher. Keep in mind that macOS Tahoe-specific problems will not have patches available through OCLP because, at the time of writing, Tahoe is not supported for patching. This guide will not go over how to individually install such patches.

  2. Virtualizing macOS on Intel, OpenCore ISO: stap 2, afbeelding 1 van 1
    • First, you'll need to get a copy of OpenCore ISO from Github.

    • Go to the repo's releases page and download LongQT-OpenCore-vX.X.iso. Put it somewhere you'll remember but won't clutter your workspace (i.e. documents folder), as moving it later may break the VM.

  3. Virtualizing macOS on Intel, Bootable installer: stap 3, afbeelding 1 van 1
    • If you're using a Mac, or at least have a Mac you can use for this, type curl -s https://raw.githubusercontent.com/LongQT-sea/mkmaciso/main/mkmaciso | bash -s mojave into Terminal, replacing mojave with the macOS version you want, and hit return. This makes an ISO file containing an installer for your selected OS version.

    • This method will output to your user's home folder, accessible in Finder through Go>Home.

    • If you don't have a Mac and are running UTM on iOS, the steps are a little trickier. If you have a Github account, clone the ISO Builder repo by clicking here.

    • Go to the Actions tab in your forked repository and click the green "I understand my workflows, go ahead and enable them" button.

    • Select Recovery ISO from the sidebar, then click Run Workflow.

    • Select the macOS version you want and select ISO as the format, then press the green Run Workflow button.

    • When it finishes, reload the tab, then scroll down to Artifacts. Download the ISO labeled your macOS version, (e.g. macOS_Mojave_10.14.6.iso).

  4. Virtualizing macOS on Intel, Making the VM: stap 4, afbeelding 1 van 3 Virtualizing macOS on Intel, Making the VM: stap 4, afbeelding 2 van 3 Virtualizing macOS on Intel, Making the VM: stap 4, afbeelding 3 van 3
    • Now that you have your ISOs, you can load them into a VM. If you haven't already, install UTM, then create a new VM. On macOS, you'll click virtualize next, while iOS users will need to use emulate.

    • Apple Silicon Macs should use emulate instead of virtualize.

    • Click Other for preconfigurations.

    • Leave everything at default until you get to selecting a boot ISO. You want LongQT_OpenCore, not the macOS installer.

    • For storage, 64GB should be fine. If you plan to run lots of software that needs to be installed on the system itself, you may consider setting it to higher than that. You can't easily change the size of this later, so know what you're doing with the VM before you set it up.

    • Leave everything at default until the summary screen. Change the name of the VM to macOS Mojave and check open VM settings, then click save.

  5. Virtualizing macOS on Intel, VM Icon: stap 5, afbeelding 1 van 1
    • Optionally, you can set the VM to have an Apple logo as its icon in the UTM sidebar. Click operating system down at the bottom, then select macOS.

    • If you want a different icon (like the actual macOS logo) press custom and upload your own image. Note that if it's not perfectly square, it will stretch to fit the space.

  6. Virtualizing macOS on Intel, Configure drives: stap 6, afbeelding 1 van 1
    • You'll want to get the Mojave installer connected to the VM, so make a new drive by selecting New… at the very bottom of the sidebar.

    • Press import and select the Mojave installer ISO.

  7. Virtualizing macOS on Intel, Configure machine: stap 7, afbeelding 1 van 3 Virtualizing macOS on Intel, Configure machine: stap 7, afbeelding 2 van 3 Virtualizing macOS on Intel, Configure machine: stap 7, afbeelding 3 van 3
    • Under system, set CPU to Penryn for 10.4 to 10.10, Skylake-client for 10.11 to 26.

    • This is likely to work if left at default.

    • Under display, set the emulated display card to virtio-vga-gl (GPU supported). Some others may also work, but if you ever want to tinker around with graphics acceleration, this is definitely the option to pick.

    • Under network, set network mode to emulated VLAN and emulated network card to usb-net. Other configurations may work, but the defaults will not.

    • Click save when you're done.

  8. Virtualizing macOS on Intel, Boot into recovery: stap 8, afbeelding 1 van 3 Virtualizing macOS on Intel, Boot into recovery: stap 8, afbeelding 2 van 3 Virtualizing macOS on Intel, Boot into recovery: stap 8, afbeelding 3 van 3
    • Press the play button on the left to start the VM.

    • Verbose mode is enabled on this ISO, so lots of text will fly across the screen. What the text says doesn't matter; just let it run in the background.

    • You'll also see a button briefly pop up that says Install macOS version. You don't need to do anything when you see this screen, as it picks the correct option for you.

    • When the installation is complete, you'll also see Macintosh HD as one of the options.

    • After a little time, you'll see the VM boot into macOS recovery. This is the expected behavior.

  9. Virtualizing macOS on Intel, Formatting drive: stap 9, afbeelding 1 van 1
    • Right now, the internal drive is completely blank and unformatted, therefore you cannot directly install macOS on it.

    • Open Disk Utility and select QEMU HARDDISK Media.

    • Erase the drive. Name it Macintosh HD and set the format to APFS.

    • After this has finished, you can close Disk Utility.

  10. Virtualizing macOS on Intel, Installing macOS: stap 10, afbeelding 1 van 3 Virtualizing macOS on Intel, Installing macOS: stap 10, afbeelding 2 van 3 Virtualizing macOS on Intel, Installing macOS: stap 10, afbeelding 3 van 3
    • Select install macOS.

    • Click the arrow at the bottom of the screen, then agree to the license.

    • On newer versions, like Tahoe, this button can be off-screen. Place the mouse at the farthest down position in the center (just right of the center for screens after the first one) and click to press the button.

    • Select Macintosh HD and continue.

    • At this point, the VM will handle everything for you. You can sit back and relax until you see a setup screen. It will take a while to fully install. If your computer has fans, they will likely start blowing. If it doesn't, you should consider moving it to a cooler room and elevating it to allow for more airflow.

  11. Virtualizing macOS on Intel, Final setup: stap 11, afbeelding 1 van 1
    • Once you see the setup screen, macOS has fully installed. Set up your user account and password. You don't need to sign in to your VM with your Apple ID.

    • At this point macOS has fully installed! You can remove and delete the installer from UTM now as it's unneeded, but don't delete the LongQT-OpenCore ISO; it's still needed to boot the system.

    • There are no official tools to get graphics acceleration, dynamic window resizing, or shared clipboard on these VMs. Feel free to tinker around to try to get this working.

    • Older systems, like the Mojave one I set up, are too old to run modern software, like Homebrew and recent Chrome updates. Additionally, some haven't received recent security updates, making them vulnerable to attacks.

Eindstreep

Random Technology

Lid sinds: 08/06/25

579 Reputatie

3 handleidingen geschreven

0Gids Commentaar

Voeg opmerking toe

Weergavestatistieken:

Afgelopen 24 uren: 7

Afgelopen 7 dagen: 17

Afgelopen 30 dagen: 17

Altijd: 17