From ea4fb0c978600445e699594287efd88206a1ed86 Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Tue, 24 Feb 2026 14:25:36 +0100 Subject: [PATCH 1/4] Update README.md with RPM Dependencies Added Fedora/RHEL instructions to Installation Preparations section --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4391186..4c7b3b8 100644 --- a/README.md +++ b/README.md @@ -63,13 +63,23 @@ processors work just fine (even for macOS Sonoma). * Install QEMU and other packages. +This step may need to be adapted for your Linux distribution. + +#### Debian/Ubuntu + ``` sudo apt-get install qemu-system uml-utilities virt-manager git \ wget libguestfs-tools p7zip-full make dmg2img tesseract-ocr \ tesseract-ocr-eng genisoimage vim net-tools screen -y ``` - This step may need to be adapted for your Linux distribution. +#### Fedora/RHEL + + ``` + sudo dnf install qemu-system-x64 virt-manager git \ + wget libguestfs-tools p7zip make dmg2img tesseract-common \ + tesseract-langpack-eng genisoimage vim net-tools screen -y + ``` * Clone this repository on your QEMU system. Files from this repository are used in the following steps. From d950e8d382d6900ed6b7346fed84edc6686b2576 Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Tue, 24 Feb 2026 14:29:19 +0100 Subject: [PATCH 2/4] Update README.md with fedora installation Update README.md with fedora installation instructions (fix x64 dep to x86) --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4c7b3b8..1e005e3 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,7 @@ processors work just fine (even for macOS Sonoma). ### Installation Preparation -* Install QEMU and other packages. - -This step may need to be adapted for your Linux distribution. +* Install QEMU and other packages. (Note: This step may need to be adapted for your Linux distribution.) #### Debian/Ubuntu @@ -76,7 +74,7 @@ This step may need to be adapted for your Linux distribution. #### Fedora/RHEL ``` - sudo dnf install qemu-system-x64 virt-manager git \ + sudo dnf install qemu-system-x86 virt-manager git \ wget libguestfs-tools p7zip make dmg2img tesseract-common \ tesseract-langpack-eng genisoimage vim net-tools screen -y ``` From d368327e24edfc77bdec59bbc730b7fb0e4a571d Mon Sep 17 00:00:00 2001 From: Sammi Johnson Date: Fri, 6 Mar 2026 12:14:12 +0100 Subject: [PATCH 3/4] update libvirt xml for /home/sammi/.config/libvirt/qemu/nvram and 4m.fd --- macOS-libvirt-Catalina.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/macOS-libvirt-Catalina.xml b/macOS-libvirt-Catalina.xml index 05cb13f..767d7e3 100644 --- a/macOS-libvirt-Catalina.xml +++ b/macOS-libvirt-Catalina.xml @@ -43,8 +43,8 @@ hvm - /home/CHANGEME/OSX-KVM/OVMF_CODE.fd - /home/CHANGEME/OSX-KVM/OVMF_VARS.fd + /home/CHANGEME/.config/libvirt/qemu/nvram/OVMF_CODE_4M.fd + /home/CHANGEME/.config/libvirt/qemu/nvram/OVMF_VARS.4m.fd @@ -62,21 +62,21 @@ /usr/bin/qemu-system-x86_64 - +
- +
- +
From 3ab4d9513e6f2b6da4325caa66782da33ba8d6cc Mon Sep 17 00:00:00 2001 From: Sammi Johnson Date: Fri, 6 Mar 2026 12:27:12 +0100 Subject: [PATCH 4/4] add instructions to fix OVMF_*4M compat with libvirt --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e005e3..54e60fc 100644 --- a/README.md +++ b/README.md @@ -194,6 +194,14 @@ processors work just fine (even for macOS Sonoma). - (OPTIONAL) Use this macOS VM disk with libvirt (virt-manager / virsh stuff). + - Move OVMF code and vars files to `$XDG_CONFIG_HOME/libvirt/qemu/nvram` and rename var store as necessary + for your resolution + ``` + cp OVMF_VARS-.fd OVMF_VARS.4m.fd + cp OVMF_CODE_4M.fd "${XDG_CONFIG_HOME}/libvirt/qemu/nvram" + cp OVMF_VARS.4m.fd "${XDG_CONFIG_HOME}/libvirt/qemu/nvram" + ``` + - Edit `macOS-libvirt-Catalina.xml` file and change the various file paths (search for `CHANGEME` strings in that file). The following command should do the trick usually. @@ -210,7 +218,8 @@ processors work just fine (even for macOS Sonoma). virsh --connect qemu:///system define macOS.xml ``` - - If needed, grant necessary permissions to libvirt-qemu user, + - If needed, grant necessary permissions to libvirt-qemu user + (ignore spurious "invalid argument near character 3" error if encountered), ``` sudo setfacl -m u:libvirt-qemu:rx /home/$USER