Virtualization

macOS on KVM/QEMU: Install macOS on Linux with OSX-KVM

macOS on KVM still works in late 2026, but only through one project and only up to one release. OSX-KVM boots Apple’s own recovery image through OpenCore on a stock QEMU. You get the real installer and a guest that runs on any Linux box with Intel VT-x or AMD-V. macOS-Simple-KVM, which the first version of this guide used, stops at Catalina and hasn’t changed since 2020.

Original content from computingforgeeks.com - post 49107

This guide takes you from host checks through OpenCore, the installer and the post-install tuning, and it replaces our older VirtualBox walkthrough because QEMU/KVM is the route that still installs current macOS. We ran every command below on Ubuntu 24.04 with QEMU 8.2 in November 2026, installing macOS Tahoe 26.7.2 on a nested KVM host with 6 vCPUs and 16 GB of RAM, and every screen shown comes from that guest.

Read the macOS licence before you install

Apple’s licence only lets you run macOS virtual machines on Apple hardware. Section 2B(iii) of the macOS Tahoe software licence agreement allows up to two extra copies “within virtual operating system environments on each Apple-branded computer you own or control that is already running the Apple Software”, for software development, testing during development, macOS Server or personal, non-commercial use. A Linux PC or server is not an Apple-branded computer, so a macOS guest on it sits outside that grant. You’ll agree to those terms twice, once in the installer and again in Setup Assistant, and both screens are headed “For use on Apple-branded Systems”:

macOS Tahoe Setup Assistant Terms and Conditions in a KVM guest showing For use on Apple-branded Systems

Read literally, the licensed route is a macOS guest on a Mac whose own operating system is macOS. Linux installed on Mac hardware is a grey area at best, because that Mac is no longer “running the Apple Software”, and a PC is plainly outside the grant. Treat this guide as a lab exercise and read the agreement yourself before you rely on it. The OSX-KVM README says the same thing in one line, that understanding and accepting the Apple EULA is your responsibility. Nothing in this guide bypasses Apple’s servers: the recovery image and the full installer both download straight from Apple’s CDN.

Check the host for KVM support

The hard requirement is a CPU that QEMU can pass the right instructions through from. Tahoe needs AVX2, so any CPU without it (pre-Haswell Intel, most pre-Zen AMD) stops here no matter how much RAM it has. The OSX-KVM README lists the minimums:

  • Intel VT-x or AMD-V enabled in firmware
  • AVX2 for Ventura and newer, SSE4.1 for anything since Sierra
  • QEMU 8.2.2 or newer (Ubuntu 24.04 ships it)
  • 8 GB of RAM for the guest, plus what the host needs
  • About 60 GB of free disk for a working Tahoe install

Modern Ryzen CPUs work, and the README warns that older AMD parts are known to be trouble. Our host was an Intel Core i7-6700 (Skylake) underneath a Proxmox VM with nested virtualization turned on, which proves the point that macOS does not care about being two hypervisors deep as long as the flags get through. If you are doing the same inside a VM, enable nested virtualization on the outer KVM host first.

Install QEMU, the libvirt tools, git and dmg2img, which converts Apple’s disk image into something QEMU can read. If you need a full KVM setup with bridges and storage pools, the KVM install guide for Ubuntu covers that; for macOS these packages are enough:

sudo apt update
sudo apt install -y qemu-system-x86 qemu-utils python3 git wget libvirt-daemon-system libvirt-clients virtinst dmg2img p7zip-full

Add your user to the kvm and libvirt groups so QEMU can open /dev/kvm without sudo, then log out and back in for the group change to apply. The libvirt group guide explains what each group grants if you later move the VM into virt-manager.

sudo usermod -aG kvm,libvirt $USER

Now confirm the CPU flags, the KVM device and the QEMU version in one pass. kvm-ok comes from the cpu-checker package, which apt pulls in with QEMU:

grep -Ec '(vmx|svm)' /proc/cpuinfo
grep -o -w -m1 avx2 /proc/cpuinfo
kvm-ok
lsmod | grep kvm
qemu-system-x86_64 --version

Any non-zero count on the first line means VT-x or AMD-V is visible, avx2 must print on the second, and kvm-ok should end with “KVM acceleration can be used”. A zero count with a capable CPU almost always means virtualization is switched off in the firmware setup.

macOS KVM host check on Ubuntu 24.04 showing vmx flags, avx2, kvm-ok and QEMU 8.2.2

macOS reads model-specific registers that KVM does not emulate, and by default KVM answers those reads with a fault that crashes the guest at boot. Tell KVM to ignore them. The repo ships a kvm.conf with the right options, which we copy into place once OSX-KVM is cloned in the next step; for the running kernel, set it now:

echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs

Skip this and the guest hangs or reboots in a loop right after OpenCore hands over to the macOS kernel, with nothing useful on screen.

Download the macOS installer with OSX-KVM

OSX-KVM is a repo of QEMU launch scripts, a prebuilt OpenCore disk and a downloader that pulls recovery images from Apple. If you searched for macOS Simple KVM, this is its replacement: foxlet’s project only offers High Sierra, Mojave and Catalina, while OSX-KVM’s menu runs up to Tahoe. Clone it with its submodule:

cd ~
git clone --depth 1 --recursive https://github.com/kholia/OSX-KVM.git
cd OSX-KVM

Make the ignore_msrs setting permanent with the repo’s own file, which also turns on nested virtualization for kvm_intel. On an Intel host:

sudo cp kvm.conf /etc/modprobe.d/kvm.conf

On an AMD host, copy the AMD variant to the same destination instead:

sudo cp kvm_amd.conf /etc/modprobe.d/kvm.conf

Run the downloader and pick a release by number. We picked 9 for Tahoe, which is the last macOS Apple builds for Intel; macOS 27 (Golden Gate) is Apple silicon only, so it will never appear in this menu or boot on an x86 KVM host. Sonoma still carries the project’s “RECOMMENDED” label if you’d rather run an older release. It needs AVX2 too, since the README requires it for Ventura and everything after, so a CPU without AVX2 tops out at Monterey.

./fetch-macOS-v2.py

The Tahoe recovery image is 916 MB and took about 70 seconds on our line. Look for “Image verification complete!” at the end, which means every chunk matched Apple’s chunklist:

OSX-KVM fetch-macOS-v2.py menu downloading the macOS Tahoe recovery BaseSystem.dmg with chunklist verification

Run the script from a real terminal. Our first attempt ran it with output redirected to a log file, and the download finished but the check failed with Image verification failed. ([Errno 25] Inappropriate ioctl for device). That is the script asking for the terminal width to draw its progress line, not a corrupt image; rerunning it in an interactive SSH session (or under script) passes.

QEMU cannot boot Apple’s compressed DMG directly, so convert it to a raw image:

dmg2img -i BaseSystem.dmg BaseSystem.img

Then create the disk macOS installs onto. A qcow2 file only grows as the guest writes, so 128G costs almost nothing up front:

qemu-img create -f qcow2 mac_hdd_ng.img 128G

The 916 MB DMG unpacks to a 2.5 GB BaseSystem.img. The disk name matters: mac_hdd_ng.img is the file the boot script expects, so keep it unless you also edit the script.

dmg2img converting the macOS Tahoe BaseSystem.dmg and qemu-img creating the 128G qcow2 disk for the macOS KVM guest

Leave BaseSystem.dmg where it is for now. You can delete it once the install finishes, but keep BaseSystem.img until you’ve detached it from the boot script later on.

Start the macOS VM with OpenCore

OpenCore-Boot.sh is the launcher. It defaults to 4 GB of RAM and 2 cores, which Tahoe’s installer survives but crawls on, so raise both before the first boot. Open the script:

vim OpenCore-Boot.sh

Change the RAM and core values near the top. These are the values we booted Tahoe with on a 6-vCPU host:

ALLOCATED_RAM="8192" # MiB
CPU_SOCKETS="1"
CPU_CORES="4"
CPU_THREADS="4"

Leave the -cpu Skylake-Client,-hle,-rtm,... line as it is. The current script already has it active with a comment that it is required for Sequoia and Tahoe; the older Penryn line above it is commented out and only suits High Sierra to Big Sur.

On a desktop Linux machine, start the VM and a QEMU window opens:

./OpenCore-Boot.sh

Our host was headless, so we copied the script to OpenCore-Boot-vnc.sh and replaced its -monitor stdio line with these two lines, which move the QEMU monitor to a socket and serve the screen over VNC on localhost only:

  -monitor unix:/tmp/qemu-mon.sock,server,nowait
  -display none -vnc 127.0.0.1:1

Display :1 listens on TCP 5901. Tunnel it over SSH from your workstation and point any VNC viewer at localhost:5901; never bind it to 0.0.0.0, because this VNC server has no password:

ssh -L 5901:127.0.0.1:5901 [email protected]

OpenCore’s picker appears within a few seconds with two entries. EFI is OpenCore’s own disk, and the one to boot is the recovery image.

OpenCore boot picker in a macOS KVM guest with the macOS Base System entry next to EFI

Select macOS Base System with the arrow keys and press Enter. The Apple logo and a progress bar follow, and about a minute later the Recovery window opens. If the screen goes black and stays there, the cause is nearly always ignore_msrs not being set on the running kernel.

Install macOS Tahoe in the VM

Recovery gives you four options. The blank qcow2 disk is not formatted, so the installer can’t see it yet. Open Disk Utility first.

macOS Tahoe Recovery menu in a KVM guest with Reinstall macOS Tahoe and Disk Utility options

Disk Utility lists two QEMU HARDDISK Media entries. Pick the one that reports 137.44 GB and “Uninitialized”, which is your 128G qcow2 (QEMU counts it in GiB, Disk Utility in GB). The other one is the 2.5 GB recovery image, and erasing it would leave you nothing to install from.

Disk Utility in macOS Tahoe Recovery on KVM showing the uninitialized 137.44 GB QEMU HARDDISK Media

Click Erase in the toolbar, give the volume a name (we used macOS) and set the two fields below it:

macOS Tahoe Disk Utility erase dialog for the QEMU HARDDISK Media disk with APFS and GUID Partition Map selected
  1. Set Format to APFS.
  2. Set Scheme to GUID Partition Map.
  3. Click Erase, wait for “Erase process is complete”, then click Done and quit Disk Utility.

Back in Recovery, choose Reinstall macOS Tahoe and click Continue through the welcome screen. Agree to the licence (the one quoted earlier), then pick the disk you just erased. The recovery volume shows up next to it as “macOS Base System” and is greyed out.

macOS Tahoe installer on KVM selecting the erased macOS disk with 137.23 GB available

Recovery installs over the network: it downloads the full Tahoe installer from Apple through QEMU’s user-mode NAT, writes it to the disk and then reboots into the second stage. Plan for a long wait. We clicked Continue at 18:46 and the first-stage progress bar was still on screen at 20:18, so roughly an hour and a half went on the download and the first write. The estimate under the bar jumps around a lot and isn’t worth watching.

macOS Tahoe install progress bar in a QEMU KVM virtual machine

The VM then restarts on its own and the second stage runs on a black screen with an Apple logo and a thin progress bar. It looks frozen for minutes at a time, so don’t reset it. Ours sat in this stage from about 20:28 until 20:54.

macOS Tahoe second stage install with Apple logo and progress bar on a KVM guest

Setup Assistant appeared at 21:00, which puts the whole install at about 2 hours 15 minutes from the disk selection screen on a 4-core guest with 8 GB of RAM. The qcow2 file had grown to 40.1 GiB on the host by the time the desktop came up, so check free space before you start rather than halfway through.

Set up macOS and verify the guest

Setup Assistant is the same one a new Mac shows, with three snags that only happen under QEMU. It starts with the country picker, where you can keep the defaults.

macOS Tahoe Setup Assistant Select Your Country or Region screen in a QEMU KVM guest

Create the local account when it asks. This is the user you’ll log in and SSH in with, so pick a password you can type over VNC. We left the Apple Account reset option unticked because there’s no Apple Account on this guest.

Create a Mac Account screen in macOS Tahoe Setup Assistant on a KVM virtual machine

The first snag is the Apple Account screen. A lab guest doesn’t need one, and clicking “Sign In Later in Settings” in the Other Sign-In Options menu did nothing in our guest, even though the menu opened. The keyboard works where the mouse doesn’t:

  1. Click Other Sign-In Options to open the menu.
  2. Press the Down arrow twice to highlight Sign In Later in Settings, then press Return.
  3. Press Return again on the “Are you sure you want to skip” dialog, where Skip is the default button.

Accept the terms, then answer the rest the way you would on a lab box: no Location Services, no analytics, Screen Time later, FileVault off. Each of those can be switched on later in System Settings, and leaving FileVault off means the guest boots to the login window without an extra unlock step.

The second snag hit at the last screen. After we chose “Only Download Automatically” on Update Mac Automatically, the spinner ran for more than 15 minutes, the menu bar clock stopped and the mouse pointer no longer moved in the VNC view. The account already existed by then, so a hard reset from the QEMU monitor socket was safe. Install socat with sudo apt install -y socat if you don’t have it, then send the reset:

echo system_reset | socat - UNIX-CONNECT:/tmp/qemu-mon.sock

The guest came back through OpenCore to the login window in under two minutes, with the account and every earlier Setup Assistant answer intact. If you started QEMU with the stock -monitor stdio line, type system_reset at the (qemu) prompt in the terminal instead.

macOS Tahoe login window on a QEMU KVM guest after Setup Assistant

The third snag shows up right after the first login. Keyboard Setup Assistant opens because macOS doesn’t recognise QEMU’s USB keyboard, and it says “Your QEMU device cannot be identified”. Your keyboard already works, so click Quit.

Keyboard Setup Assistant on macOS Tahoe saying the QEMU device cannot be identified

Open About This Mac from the Apple menu to see what macOS thinks it’s running on. OpenCore presents the guest as an iMac19,1 with a placeholder serial, W00000000001, and the “Quad-Core Intel Core i3” label is cosmetic. The OpenCore guide ties iMessage and FaceTime to a unique, valid serial, so don’t expect them to work with this one. For a build or test box you won’t miss them.

About This Mac in a macOS Tahoe KVM guest showing iMac, 8 GB RAM and macOS Tahoe 26.7.2

Memory reads 8 GB and the startup disk is the macOS volume you erased earlier, so the guest is running from the qcow2 file and not the recovery image.

Turn on SSH into the guest

VNC is slow for anything but clicking through dialogs, and OpenCore-Boot.sh already forwards host port 2222 to port 22 in the guest with hostfwd=tcp::2222-:22. All that’s missing is sshd. The usual one-liner fails on Tahoe when you run it from Terminal:

sudo systemsetup -setremotelogin on

It refuses unless Terminal has Full Disk Access, which you’d have to grant by hand in Privacy and Security first.

systemsetup setremotelogin error requires Full Disk Access privileges on macOS Tahoe

The toggle in System Settings is quicker. Open System Settings, go to General, then Sharing, scroll to the Advanced group and switch on Remote Login. It asks for your password once.

macOS Tahoe System Settings Sharing pane in a KVM guest with the Remote Login toggle under Advanced

From the Linux host, SSH to the forwarded port as the account you created. Replace labuser with your own short name:

ssh -p 2222 labuser@localhost sw_vers
ssh -p 2222 labuser@localhost sysctl -n machdep.cpu.brand_string machdep.cpu.leaf7_features hw.ncpu hw.memsize

The guest reports macOS 26.7.2, build 25G332, on the Skylake model QEMU presents, and AVX2 sits in the leaf 7 feature list. Four logical CPUs and 8589934592 bytes (8 GiB) match the values you set in the boot script.

ssh into the macOS KVM guest showing sw_vers 26.7.2 and AVX2 in the CPU feature list

From here on the rest of the work happens over SSH, and VNC is only needed when something on screen wants a click.

Configure the macOS VM after install

Once the guest boots and answers SSH, four changes make it a VM you can leave running: stop the guest from sleeping, cut background indexing, detach the installer image, and snapshot the disk while it’s clean.

Stop sleep and Spotlight indexing

Tahoe ships with sleep, display sleep and disk sleep all set to 10 minutes, which on a headless VM just means a guest that stops answering SSH. Set them to 0, turn off Spotlight indexing on a disk nobody searches, and switch on Reduce Transparency, since the vmware-svga display has no graphics acceleration. Log in with ssh -p 2222 labuser@localhost and run these in the guest shell:

sudo pmset -a sleep 0 displaysleep 0 disksleep 0
sudo mdutil -a -i off
defaults write com.apple.universalaccess reduceTransparency -bool true

The first sudo asks for your macOS password. Read the timers back with pmset -g to confirm all three now show 0, and mdutil should print “Indexing disabled.” for every volume. The recovery image is still attached at this point, so it shows up in that list as /Volumes/macOS Base System.

pmset sleep timers set to 0 and mdutil indexing disabled on a macOS KVM guest over SSH

For scale, top on the host showed the QEMU process at 220% CPU while the guest sat idle at the end of Setup Assistant, with nobody touching it. Leave indexing on if you need Finder search inside the VM, and turn it back on later with sudo mdutil -a -i on.

Detach the recovery image

The 2.5 GB BaseSystem.img stays attached after the install, and the guest mounts it as “macOS Base System” on every boot. Shut macOS down from the Apple menu (or run sudo shutdown -h now in an SSH session), wait for the QEMU process to exit, then comment out the two InstallMedia lines in your boot script:

  # -device ide-hd,bus=sata.3,drive=InstallMedia
  # -drive id=InstallMedia,if=none,file="$REPO_PATH/BaseSystem.img",format=raw

Start the VM again and watch the picker, because this change moves its default. With the recovery entry gone, OpenCore highlighted EFI and waited instead of booting macOS:

OpenCore picker on the macOS KVM guest after install with EFI highlighted and the installed macOS disk next to it

Press the Right arrow to move to macOS and press Return. From that keypress to a working SSH login took 42 seconds on our host. A plain Return only boots it once, though: after a sudo reboot the picker came back with EFI highlighted and sat there for four minutes. Press Ctrl+Return on the macOS entry instead, which makes it OpenCore’s default (it works because OSX-KVM’s OpenCore config enables AllowSetDefault; a custom OpenCore build may not). With that set, our next reboot went straight through and SSH answered 57 seconds after the reboot command, with no keypress.

Snapshot the clean install

Two hours is a lot to repeat, so take an internal qcow2 snapshot while the VM is powered off. If you try it with the guest up, qemu-img refuses with Failed to get "write" lock, which is your cue that QEMU still holds the disk:

qemu-img snapshot -c tahoe-clean mac_hdd_ng.img
qemu-img snapshot -l mac_hdd_ng.img
qemu-img info mac_hdd_ng.img

The snapshot list shows tahoe-clean, and the image reports 40.1 GiB used of its 128 GiB virtual size.

qemu-img snapshot creating tahoe-clean on the macOS KVM qcow2 disk and qemu-img info showing 40.1 GiB used

To roll back after a bad update or a broken experiment, power the VM off and run qemu-img snapshot -a tahoe-clean mac_hdd_ng.img. If you’d rather manage the VM with libvirt and virt-manager, start from the repo’s macOS-libvirt-Catalina.xml. Its -cpu argument is still Penryn, so copy the Skylake-Client flags across from OpenCore-Boot.sh before you define it. Our virsh commands cheat sheet covers snapshots and the rest once it’s defined.

Skip the repo’s boot-macOS-headless.sh for Tahoe. It still uses the Penryn CPU model and serves VNC on 0.0.0.0, so the VNC lines shown earlier on a copy of OpenCore-Boot.sh are the better headless setup. On Proxmox, the same OpenCore approach is covered in running macOS on Proxmox VE, and if you only need a throwaway macOS for CI, Docker-OSX wraps this same QEMU setup in a container.

Keep reading

Install VirtIO Drivers on Windows 11 and Server 2025: ISO and MSI KVM Install VirtIO Drivers on Windows 11 and Server 2025: ISO and MSI Install KVM and Virt-Manager on Arch Linux Virtualization Install KVM and Virt-Manager on Arch Linux Install KVM on Debian 13 / Debian 12: Complete Guide KVM Install KVM on Debian 13 / Debian 12: Complete Guide TrueNAS Proxmox Plugin: iSCSI and NVMe/TCP Setup Guide Storage TrueNAS Proxmox Plugin: iSCSI and NVMe/TCP Setup Guide Ollama Text to Speech: Run Phonon on a Mac (Tested) AI Ollama Text to Speech: Run Phonon on a Mac (Tested) Install oVirt Compute Node on CentOS Stream 9 / Rocky 9 CentOS Install oVirt Compute Node on CentOS Stream 9 / Rocky 9

37 thoughts on “macOS on KVM/QEMU: Install macOS on Linux with OSX-KVM”

  1. thanks for the time and effort in the project. when i get to install mac os step , the block for choosing the installation media drive it says.. “this drive is locked”. where have i gone wrong? thanks again

    Reply
  2. Hello, thank you for the great tutorial. I’ve used it many times but I haven’t had any luck adding the setup into Virtual Manager. Is there any way you can elaborate a bit more on the procedure? After creating the make.sh and going into Virt-Man I do see the entry KVM MacOS and get lost at that point. When I click Play it doesn’t go to the MacOs I just installed. It goes straight into the INSTALL macos again. I’m trying to get my idevices recognized on MacOS and there’s no way to get USB passthrough unless I get this setup into the Virt-Man to enable the USB redirect. Appreciate the help. Thank you kindly.

    Reply
    • I believe this is because you haven’t replaced the entry in the VM config with the file we just created for the VM’s HDD. I’m working on this step now.

      Reply
    • You need to reattach the qcow2 image from your install to the .xml. You can do this by adding the qcow storage like you would another qcow image in virt-man. Then, once the qcow image is re-associated to the qemu domain. you can choose to boot from it.

      Reply
  3. when i run the command ./basic.sh it says
    qemu-system-x86_64: -drive: requires an argument
    ./basic.sh: line 29: -device: command not found

    Reply
  4. For anyone confused on how to get from running ./basic.sh to the graphical installer, you need to open a vnc viewer and connect to localhost on port 5900

    Reply
  5. When I type ./basic.sh it says this: Could not access KVM kernel module: Permission denied
    failed to initialize KVM: Permission denied please help

    Reply
  6. Hello and thanks for sharing this tutorial. I’d like to say that I made MacOS X Catalina work pretty easily over Elementary OS 5.1.7 Hera. Actually, the main downside is that I experience a notable lag in general when using the system. I’m not a dev, but it seems that is related to graphics. Do you have any idea about that or it’s just the way Mac Os work over a virtual machine? Thanks!

    Reply
    • You need to passthrough a GPU to get acceleration to work. There is a link at the bottom of the article for it, or I’m sure Simple-KVM’s github documentation covers it. If not, reddit and other threads will most likely be able to help you too on their VT threads.

      I’m gonna setup my dads machine as a VM (Arch distro > Simple-KVM MacOs Catalina). So I’ll be doing a GPU passthrough then, but I got a native GPU (Geforce 710 1GB) to avoid driver issues in Mac OS. Until then I’m of little help, but feel free to ask. I’ve set up multiple hackintoshes and one ran without any issues feeling like a true Mac

      Reply
  7. After booting the OS by adding new disk as SAS from Virtual Machine manager. It is stuck at apple logo and a progress bar showing estimating time remaining from the past 2 hours.

    Reply
  8. Thanks for this write-up. It worked like a champ for me. Now…..how do I share my host wireless printer to my new MacOS VM?

    Reply
  9. I get stuck at Reinstall macOS where it says recovery server could not be contacted
    Im using virt-manager and installing mojave

    Reply
  10. Forgive my ignorance as I am a newbee at Terminal at the virtual machine “stuff”. I am using a 27″ iMac (2020) that came with Catalina (64 bit) pre-installed but also dual booting into Windows 10 via Bootcamp. I am trying to get Mojave (32 bit) installed on it somehow with either a virtual machine (VM) or as an extra partition. I have 32 bit software that I need to use and I already tried Parallels Desktop for Mac but it keeps on crashing the software. I also tried Virtual Box but the script hangs and does not get to the installation interface for macOS. I also tried installing Ubuntu but for some reason I was unsuccessful. I don’t know much about Terminal but I can obviously follow instructions on what command lines to paste. I searched the Web for watched many YouTube clips but nothing solves my quest yet. Within Terminal, it says the Brew is installed but what do I do next? After finding you Instruction, I thought the process may work. My Terminal menu bar says: -zsh. Do I need to change that? Does your method allow for triple booting? And how do I achieve that? Any feedback would be much appreciated.

    Reply
  11. This also happened to me. After running basic.sh, the mouse and keyboard on the guest are not working. The mouse completely disappears if I try to click in the VM. Then I have to Ctl-Alt-G to get it back

    Reply
  12. Having a bit of trouble with this, was wondering if you could suggest a fix. When I attempt to use “basic.sh” to launch the VM directly it works, but the network configuration doesn’t take for some reason so the “reinstall” step fails because it can’t reach the update servers.

    I’ve been a user of Virtual Machine Manager and libvirt on Fedora for many years and I have dozens of other machines running successfully, but when I attempt to import this one via XML and start it wither with Virt Manager or with virsh it fails with a “Permission Denied” error when trying to read the firmware files. It’s definitely not a file access issue because I’ve verified my qemu user can see and access the file – even going as far as to setting 777 access modes on them. I’m missing something but not quite sure what.

    Reply
  13. Hi !
    Thanks for this article.

    I have a problem, and I don’t see the answer.
    When I finished all the steps with no mistakes. I write : “./basic.sh”
    And the error is :
    “Unable to init server: Could not connect : Connection refused
    gtk initalization failed”

    I did some search, and the reason is I don’t have the graphical interface. But when I install this, the virtual machine doesn’t work well because I have one graphic card.

    Have you any ideas to solve my problem ?

    Thanks

    Reply
  14. For a future reader: I found that 50G is too small for a Catalina -> Ventura update. I ended up recreating my VM with 128G to avoid issues.

    Reply
  15. I have a problem, and I don’t see the answer.
    When I finished all the steps with no mistakes. I write : “./basic.sh”
    And the error is :
    “Unable to init server: Could not connect : Connection refused
    gtk initalization failed”

    Have you any ideas to solve this problem ? I have virt-manager on a Linux system, QEMU KVM on another… your jumpstart script assume a local QEMU/KVM instance, correct?

    Reply
  16. Ah! If you have virt-manager on a different system than the hypervisor, run:

    $ sudo ./make.sh –add

    This will import VM domain (XML) file into virt-manager (via the hypervisor system).

    Reply
  17. I got it setup and seems to be working ok! (Got it running using my Arch install). I do have a few questions though. Does anyone else have weird mouse issues with this? It’s almost like the mouse pointer doesn’t align when it captures it. (Hard to explain). Looking at the ‘Readme’ file in the folder, it mentions you can set this up ‘headless’. Has anyone tried that using a VPS / Cloud computing or something similar? If I want to start the Mac VM again, do I just run the ./basic.sh command, and choose the mac partition? That’s how I did it but, not sure if that’s the proper way. Thanks

    Reply
  18. This works wonderfully, but what about El Capitan? I have some old software which won’t work on newer versions. I have replaced BaseSystem.img with the appropriate one for El Capitan, but I’m stuck when it asks if I want to go ahead and install El Capitan because it can’t find the appropriate files – it wants to download from Apple. I do have a fully bootable El Capitan USB but how do I make this useable by qemu?

    Reply
  19. Just looking for a bit of post-install information. Firstly, it looks to me like it requires all 3 vDisks. I have to select to boot MacOS every time it boots. Also, anyone know of where I can get the spice agent for Mac so that the mouse works normally?

    Thanks and wonderful product. Let’s me do upgrade experiments without destroying my real system.

    Reply
    • 1. After installation you only need two of the three: ESP.qcow2 (the Clover bootloader the VM actually boots from) and your macOS system disk. BaseSystem.img is the installer, so you can delete its -drive/-device lines from basic.sh.

      2. To skip the boot menu, mount the EFI volume on ESP.qcow2 and edit Clover config.plist: set Boot > DefaultVolume to your macOS volume name (or LastBootedVolume) and Boot > Timeout to something like 3. Removing the installer disk also removes its extra boot entries.

      3. There is no SPICE guest agent for macOS. The mouse behaviour comes from basic.sh using -device usb-mouse, which is a relative pointer. Change it to -device usb-tablet and the cursor tracks the host pointer normally.

      Reply

Leave a Comment

Press ESC to close