Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

I had trouble getting this working trying to use others Domain XML's or "start.sh" scripts. I reccomend creating a VM via Virt-Manager and then making the small needed changes via "virsh edit".

Not Working/Tested etc:

  • 3rd Party VirtIO Drivers
  • Resolution changing
  • GPU Passthrough

Files Needed:

enoch_rev2902_boot 
MacOS X Installer.raw/iso

Setup Tested On:

uname -r && yum info qemu | grep Version -m1
4.15.17-300.fc27.x86_64
Version : 2.10.2

Virt-Manager Changes:

Overview :

  • Description
# echo 1 > /sys/module/kvm/parameters/ignore_msrs
  • Hypervisor Details
KVM
x86_x64
/usr/bin/qemu-kvm
BIOS
Q35

 


CPU :

  • Configuration
Penryn

 

Note: Leave default topology 1Socket/Core/Thread

  • Boot Options
    • Direct Kernel Boot:
  • Enable
  • Kernel Path
/path/enoch_rev2902_boot

Sata Disk 1:

  • Install Disk, can be raw/qcow etc.
  • Use SATA as Disk Bus

Sata Disk 2:

  • Install.raw MacOS X install file
  • Use SATA as Disk Bus

NIC:

  • Device Model = "e1000-82545em"

Display:

  • Display Spice/VNC Both Worked For Me
  • Video QXL

Input:

  • Tablet input for Mouse
  • USB Keyboard (PS2 Doesn't work!)

Controllers:

  • USB
  • SATA
  • PCIe
  • VirtIO

DomainXML Changes that MUST be made via VIRSH:

Add To Top:

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>

Add To Bottom:

</devices>
<qemu:commandline>
<qemu:arg value='-readconfig'/>
<qemu:arg value='/path/macintosh.cfg'/>
</qemu:commandline>
</domain>

Create "macintosh.cfg" w/ :

cat << 'EOL' >macintosh.cfg
[device "smc"]
driver = "isa-applesmc"
osk = "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
EOL

Sources:

https://github.com/kholia/OSX-KVM

https://www.kraxel.org/blog/2017/09/running-macos-as-guest-in-kvm/

 https://github.com/N3TC4T/tutorials/tree/master/osx_arch_linux_qemu

https://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/

  • No labels