From 430b27d0178cc68ff992f5b425aab7dca68da578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20de=20la=20Pe=C3=B1a?= Date: Fri, 26 Jan 2018 13:34:03 -0600 Subject: [PATCH] libvirt XML configuration for macOS High Sierra Due to popular demand, here is a working XML configuration file example for macOS High Sierra. Includes some few instructions in the comment. Feel free to amend it in your own push and close this PR. I've tested it in Fedora 27 with stock qemu-kvm 2.10.1, so I've changed machine to pc-q35-2.10 for a bit newer one and still works nicely so far. It's tested with your provided OVMF_CODE-pure-efi.fd AND OVMF_VARS-pure-efi-1024x768.fd only. The main motivation of having libvirt XML file is the pretty straightforward USB redirection to the guest, allowing to use it without dealing with system session, root, changing permissions, selinux and such. SPICE protocol for screen hypervisor also feels a bit faster refresh, mostly noticeable while shaking windows with mouse pointer. VNC also works as expected if preferred. The settings provided are not quite polished, maybe some libvirt and KVM modern defaults make some features redundant, however. --- CREDITS.md | 2 + macOS-HS-libvirt.xml | 147 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 149 insertions(+) create mode 100644 macOS-HS-libvirt.xml diff --git a/CREDITS.md b/CREDITS.md index 4e776ab..34ceb30 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -27,3 +27,5 @@ * Phil Dennis-Jordan - virtio-net-osx, usb-tablet and other hacks * Nikolay Dimitrov (nikidim) - Docker for Mac + +* Francisco de la Peña - libvirt XML file for macOS High Sierra diff --git a/macOS-HS-libvirt.xml b/macOS-HS-libvirt.xml new file mode 100644 index 0000000..2f5719b --- /dev/null +++ b/macOS-HS-libvirt.xml @@ -0,0 +1,147 @@ + + + macos-high-sierra + 2aca0dd6-cec9-4717-9ab2-0b7b13d111c3 + macOS High Sierra + 4194304 + 4194304 + 4 + + hvm + /home/CHANGEME/.local/share/gnome-boxes/images/OVMF_CODE.fd + /home/CHANGEME/.local/share/gnome-boxes/images/OVMF_VARS.fd + + + + + + + + + Penryn + GenuineIntel + + + + + + + + + + + + + destroy + restart + restart + + /usr/bin/qemu-kvm + + + + + +
+ + + + + + +
+ + +
+ + + + +
+ + + + +
+ + +
+ + + +
+ + + +
+ + + +
+ + + + + + +
+ + +
+ + + +
+ + + + + + +
+ +