From f45630bd7fb3b3322b9ecf00b5edd50534fdcd1a Mon Sep 17 00:00:00 2001 From: turalto Date: Sat, 11 Apr 2026 20:15:17 +0400 Subject: [PATCH] Update libvirt configuration for recent versions of QEMU/libvirt and OVMF filename changes --- README.md | 8 +- macOS-libvirt.xml | 199 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 204 insertions(+), 3 deletions(-) create mode 100644 macOS-libvirt.xml diff --git a/README.md b/README.md index 4391186..23a104b 100644 --- a/README.md +++ b/README.md @@ -186,12 +186,12 @@ processors work just fine (even for macOS Sonoma). - (OPTIONAL) Use this macOS VM disk with libvirt (virt-manager / virsh stuff). - - Edit `macOS-libvirt-Catalina.xml` file and change the various file paths (search + - Edit `macOS-libvirt.xml` file and change the various file paths (search for `CHANGEME` strings in that file). The following command should do the - trick usually. + trick if the repo folder is inside `/home/$USER`. ``` - sed "s/CHANGEME/$USER/g" macOS-libvirt-Catalina.xml > macOS.xml + sed "s/CHANGEME/$USER/g" macOS-libvirt.xml > macOS.xml virt-xml-validate macOS.xml ``` @@ -211,6 +211,8 @@ processors work just fine (even for macOS Sonoma). - Launch `virt-manager` and start the `macOS` virtual machine. + Note: The older `macOS-libvirt-Catalina.xml` is preserved in the repository + for reference. `macOS-libvirt.xml` is recommended for modern setups (QEMU >= 8.x). ### Headless macOS diff --git a/macOS-libvirt.xml b/macOS-libvirt.xml new file mode 100644 index 0000000..339881f --- /dev/null +++ b/macOS-libvirt.xml @@ -0,0 +1,199 @@ + + + + + + macOS + 2aca0dd6-cec9-4717-9ab2-0b7b13d111c3 + macOS + + + 4194304 + 4194304 + + + 4 + + + + hvm + /home/CHANGEME/OSX-KVM/OVMF_CODE_4M.fd + /home/CHANGEME/OSX-KVM/OVMF_VARS-1920x1080.fd + + + + + + + + + + qemu64 + + + + + + + + + + + + destroy + restart + restart + + + /usr/bin/qemu-system-x86_64 + + + +
+ + + + + + + +
+ + + + + + + +
+ + + + + + + + +
+ + + + + + + +
+ + +
+ + +
+ + + + +
+ + + +