Jump to content



Member Since 21 May 2006
Offline Last Active May 09 2017 07:50 PM

Posts I've Made

In Topic: Insanely fast virtual Mac (QEMU, OVMF, Clover and native graphics)

28 June 2016 - 10:30 PM



setting vCPU to core2duo will not work anymore and result in KernelPanic due to the lack of SSE4 support of core2duo.


​Setting vCPU to Penryn will fix this issue. In my experience without qemu-cpu-flag in clover OSX runs at x10 the normal speed, with qemu flag at roughly 1/4 .


editing FSB Values in clover menu won't help. (i tried 1Ghz, 500Mhz, 1Mhz even 1Khz... everytime the same speed)


however hardcoding x4 CPU Ratio in Clover fixed it for me. In 20 mins  i get no difference in realtime and vms system time with various loads on the vm.


here you can find the hacked clover version:





this is the config.plist i use:




​the whole efi folder with kexts and fixes for audio using ich6 /-soundhw hda:




for Sierra install you might need to change SMBIOS to iMac10,1 . After install there  are no problems when reverting it to MacPro3,1





Would be nice if you guys could try this one on your setups and report.



this is my (a bit messy) domain.xml:

OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh edit 10.11.4
or other application using the libvirt API.
<domain type='kvm'>
  <memory unit='KiB'>12312576</memory>
  <currentMemory unit='KiB'>12312576</currentMemory>
  <vcpu placement='static'>8</vcpu>
    <vcpupin vcpu='0' cpuset='4'/>
    <vcpupin vcpu='1' cpuset='5'/>
    <vcpupin vcpu='2' cpuset='6'/>
    <vcpupin vcpu='3' cpuset='7'/>
    <vcpupin vcpu='4' cpuset='8'/>
    <vcpupin vcpu='5' cpuset='9'/>
    <vcpupin vcpu='6' cpuset='10'/>
    <vcpupin vcpu='7' cpuset='11'/>
    <type arch='x86_64' machine='pc-q35-2.5'>hvm</type>
    <loader readonly='yes' type='pflash'>/home/arne/ubuntuovmf.fd</loader>
    <bootmenu enable='no'/>
  <cpu mode='custom' match='exact'>
    <model fallback='allow'>Penryn</model>
    <topology sockets='8' cores='1' threads='1'/>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
    <suspend-to-mem enabled='no'/>
    <suspend-to-disk enabled='no'/>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='directsync' io='native'/>
      <source dev='/dev/disk/by-partlabel/OSXSSD'/>
      <target dev='sdc' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/oldinstall/linuxmint-17.3-cinnamon-64bit.iso'/>
      <target dev='sde' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='4'/>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none' io='native'/>
      <source dev='/dev/sda'/>
      <target dev='sdf' bus='sata'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='5'/>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x7'/>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x0' multifunction='on'/>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x1'/>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x2'/>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    <controller type='sata' index='1'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x05' function='0x0'/>
    <controller type='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <model name='i82801b11-bridge'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    <controller type='pci' index='2' model='pci-bridge'>
      <model name='pci-bridge'/>
      <target chassisNr='2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='ioh3420'/>
      <target chassis='3' port='0x10'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    <controller type='pci' index='4' model='pcie-root-port'>
      <model name='ioh3420'/>
      <target chassis='4' port='0x18'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    <controller type='scsi' index='0'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
    <controller type='scsi' index='1' model='virtio-scsi'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
    <interface type='direct'>
      <mac address='52:54:00:0f:45:e9'/>
      <source dev='enp2s0' mode='bridge'/>
      <model type='e1000-82545em'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <sound model='ich6'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    <hostdev mode='subsystem' type='pci' managed='no'>
        <address domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
      <rom bar='on' file='/vm/vBios/6870.rom'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    <hostdev mode='subsystem' type='pci' managed='no'>
        <address domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    <hostdev mode='subsystem' type='usb' managed='yes'>
        <vendor id='0x05ac'/>
        <product id='0x0221'/>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x06' function='0x0'/>

And another thing: do not update to current ovmf (yet). while it works fine with linux/windows vm you won't get output on your OSX vm after Kernel patches. reverting to a old version (whatever ubuntu 16.04 uses) fixed it for me. 


arch linux' ovmf and ovmf from git won't work.



PS: My Host CPU is a old Xeon X5650. cannot get Nehalem/Westmere/host-passthrough to work. If i find the time i might investigate further. however for sierra Penryn is just fine :P 06:00:0 is my 6870 with added uefi support, 05:00:0 is a USB3 card (Fresco Logic FL1100)




Thanks! Your setup works fine for me even on El Capitan. Was able to boot with cpu set as Penryn and everything looks fine, including my GTX 960 and sound.


Also had major issues with mouse and keyboard lag passing my USB2 Host, solved by enabling the USB3 host in BIOS, connecting to it and passing through it instead. May help somebody.

© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy