gridrunner

**VIDEO GUIDE** Mac OSX 10.11, 10.12 and now 10.13 High Sierra !!.

Recommended Posts

6 minutes ago, david279 said:

Not really sluggish for me but this is my first hackintosh in a while. Also im using a 1080p monitor and my main rig is a 1440p 144Hz monitor so everything else looks sluggish in nature.

Have you tried using it purely through VNC client without GPU passthrough? The screen draw/refresh at 190x1080 is really slow for me.

Share this post


Link to post
Share on other sites
Just now, mikeyosm said:

Have you tried using it purely through VNC client without GPU passthrough? The screen draw/refresh at 190x1080 is really slow for me.

It was kinda sluggish in vnc but i just chalked it up to the nature of vnc, especially the way the vm has to be setup with all the edits to the xml just to get mouse scrolling to work correctly. The first go around i had with os x mouse lag was with horrible in vnc. Mouse was laggy all over and everything. I started playing with amount of cores given to it and set the topology to be a little more standard and that made it a lot better. If i gave the vm any amount of core out of the ordinary the mouse would lag all over the place. 

Share this post


Link to post
Share on other sites
3 minutes ago, david279 said:

It was kinda sluggish in vnc but i just chalked it up to the nature of vnc, especially the way the vm has to be setup with all the edits to the xml just to get mouse scrolling to work correctly. The first go around i had with os x mouse lag was with horrible in vnc. Mouse was laggy all over and everything. I started playing with amount of cores given to it and set the topology to be a little more standard and that made it a lot better. If i gave the vm any amount of core out of the ordinary the mouse would lag all over the place. 

I never got mouse scrolling to be in sync for me. Can you post your XML so I can compare? Cheers.

Share this post


Link to post
Share on other sites

Here you go 

 


 

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>Mac OS X GPU</name>
  <uuid>bb939222-c6ce-2c92-5579-e652464544f7</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Linux" icon="linux.png" os="linux"/>
  </metadata>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <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'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-2.9'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/bb939222-c6ce-2c92-5579-e652464544f6_VARS-pure-efi.fd</nvram>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='custom' match='exact' check='full'>
    <model fallback='forbid'>Penryn</model>
    <topology sockets='1' cores='4' threads='2'/>
    <feature policy='require' name='vme'/>
    <feature policy='require' name='x2apic'/>
    <feature policy='require' name='hypervisor'/>
    <feature policy='require' name='invtsc'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/disks/500GBSSDStorage/Mac/vdisk2.img'/>
      <target dev='hdd' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='3'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x11'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
    </controller>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='3' port='0x12'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
    </controller>
    <controller type='pci' index='4' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='4' port='0x13'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    </controller>
    <controller type='pci' index='5' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='5' port='0x14'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
    </controller>
    <controller type='pci' index='6' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='6' port='0x8'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:90:25:36'/>
      <source bridge='br0'/>
      <model type='e1000-82545em'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <channel type='unix'>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x09' slot='0x00' function='0x0'/>
      </source>
      <rom file='/mnt/disks/500GBSSDStorage/Windows 10 HTPC/EVGAGTX1030.rom'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x09' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x1e7d'/>
        <product id='0x371e'/>
      </source>
      <address type='usb' bus='0' port='2'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x0a5c'/>
        <product id='0x21e8'/>
      </source>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x0a' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
    </hostdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </memballoon>
  </devices>
  <seclabel type='dynamic' model='dac' relabel='yes'/>
  <qemu:commandline>
    <qemu:arg value='-usb'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-mouse,bus=usb-bus.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd,bus=usb-bus.0'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,vendor=GenuineIntel,kvm=on,+invtsc,vmware-cpuid-freq=on,'/>
  </qemu:commandline>
</domain>

 

Share this post


Link to post
Share on other sites
On 28/11/2017 at 10:49 PM, david279 said:

Here you go 

 


 


<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>Mac OS X GPU</name>
  <uuid>bb939222-c6ce-2c92-5579-e652464544f7</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Linux" icon="linux.png" os="linux"/>
  </metadata>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <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'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-2.9'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/bb939222-c6ce-2c92-5579-e652464544f6_VARS-pure-efi.fd</nvram>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='custom' match='exact' check='full'>
    <model fallback='forbid'>Penryn</model>
    <topology sockets='1' cores='4' threads='2'/>
    <feature policy='require' name='vme'/>
    <feature policy='require' name='x2apic'/>
    <feature policy='require' name='hypervisor'/>
    <feature policy='require' name='invtsc'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/disks/500GBSSDStorage/Mac/vdisk2.img'/>
      <target dev='hdd' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='3'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x11'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
    </controller>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='3' port='0x12'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
    </controller>
    <controller type='pci' index='4' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='4' port='0x13'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    </controller>
    <controller type='pci' index='5' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='5' port='0x14'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
    </controller>
    <controller type='pci' index='6' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='6' port='0x8'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:90:25:36'/>
      <source bridge='br0'/>
      <model type='e1000-82545em'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <channel type='unix'>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x09' slot='0x00' function='0x0'/>
      </source>
      <rom file='/mnt/disks/500GBSSDStorage/Windows 10 HTPC/EVGAGTX1030.rom'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x09' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x1e7d'/>
        <product id='0x371e'/>
      </source>
      <address type='usb' bus='0' port='2'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='yes'>
      <source>
        <vendor id='0x0a5c'/>
        <product id='0x21e8'/>
      </source>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x0a' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
    </hostdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </memballoon>
  </devices>
  <seclabel type='dynamic' model='dac' relabel='yes'/>
  <qemu:commandline>
    <qemu:arg value='-usb'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-mouse,bus=usb-bus.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd,bus=usb-bus.0'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,vendor=GenuineIntel,kvm=on,+invtsc,vmware-cpuid-freq=on,'/>
  </qemu:commandline>
</domain>

 

thanks for that, it seems i was missing some cpu optimizations so i added those now the VM is nice and fast, even through VNC. Strangely though my mouse does not sync with the VNC mouse so not sure why this isnt working. Im using Firefox on W10. Any ideas?

Share this post


Link to post
Share on other sites

Try different vnc clients. I found the built in vnc client to not be the best. I use vnc player(Chrome app) and Google remote desktop they both work great.

Sent from my SM-G955U using Tapatalk

Share this post


Link to post
Share on other sites
2 hours ago, david279 said:

Try different vnc clients. I found the built in vnc client to not be the best. I use vnc player(Chrome app) and Google remote desktop they both work great.

Sent from my SM-G955U using Tapatalk
 

Yes another good one  is no machine https://www.nomachine.com/

Share this post


Link to post
Share on other sites
On 11/12/2017 at 3:03 PM, steve1977 said:

I'll give it a go with a fresh install. I must have done something wrong along the way.

 

Before I do so, wanted to understand whether it is now supported to use Clover versions beyond 4200? There was a ticket for it, but got closed. I don't fully understand what the solution is. Can someone comment? https://sourceforge.net/p/cloverefiboot/tickets/411/

 

Any thoughts whether this is now working with Clover later than 4200?

Share this post


Link to post
Share on other sites
20 hours ago, steve1977 said:

 

Any thoughts whether this is now working with Clover later than 4200?

I havent tried a fresh install using newer clover but just quickly updated one of my vms to clover 4318 and it booted fine.

Share this post


Link to post
Share on other sites

I have been messing around with getting my osx VM to boot with a different virtual CPU from Penryn

(not that it makes any performance difference to the VM)

 

I changed the line in the XML from

 <qemu:arg value='Penryn,vendor=GenuineIntel,kvm=on,+invtsc,vmware-cpuid-freq=on'/>

to this 

 <qemu:arg value='SandyBridge,vendor=GenuineIntel,kvm=on,+invtsc,vmware-cpuid-freq=on'/>

I find when using Sandy Bridge, the host assigned vCPUs max out at 100% all the time the VM is powered on.

If anyone has time could you check and see if you have the same happen when you switch to this CPU.

I have tried it on Xeon and a Ryzen server and get the same results on both.

Share this post


Link to post
Share on other sites
9 hours ago, david279 said:

BTW high sierra updated to 10.13.2 today

can anyone confirm if after updating there are no issues in UNRAID?

Share this post


Link to post
Share on other sites

Update successful.....Ran update selected the install from HD selection in clover. It installs then boots right back up. Installed the alternate graphic drivers and everythings all good. Will try updating clover now.  

Share this post


Link to post
Share on other sites
1 hour ago, david279 said:

Update successful.....Ran update selected the install from HD selection in clover. It installs then boots right back up. Installed the alternate graphic drivers and everythings all good. Will try updating clover now.  

 

Great to hear. This reads complicated. I thought you could just upgrade and it works. Why do you need to reinstall the graphics driver again and what do you need to do with Clover?

 

Anyone tried a fresh install recently and can confirm whether latest Clover driver fixes the "black screen" issue?

Share this post


Link to post
Share on other sites

With MAC OS every time you update the OS the nvidia driver becomes incompatible simple because the build number of MAC OS doesn't match what the nvidia driver is looking for. Its crazy that something as simple as that would cause such a issue but it is what it is. Hackintoshing is not for the faint of heart. 

 

With the updating of clover i ran the v4318 installer with all the same options as gridrunners options. No need to copy over the apfs.efi and HFPPlus.efi files as they will already be in the efi partition from your original install. Copy over the vm-ackintosh config.plist to the EFI/Clover folder and add the nvidia web system parameter to it using Clover configurator. Last make sure the FakeSMC.kext is in too, it should be there from your original install but just make sure. Restart and you should be go to go.  

Share this post


Link to post
Share on other sites

are things easier if not passing through a gpu?

 

is the clover update important or can i just keep an “old” version?

 

main use case of my mac vm is mac photos. does the photos app benefit from use of a passed through gpu? unfortunately, it’s quite slow / sluggish for me.

Share this post


Link to post
Share on other sites
On 10/11/2017 at 12:40 PM, gridrunner said:

 


  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='4' threads='2'/>
  </cpu>

to this so 


  <cpu mode='custom' match='exact' check='none'>
    <model fallback='allow'>Penryn</model>
    <topology sockets='1' cores='4' threads='2'/>
  </cpu>

 

Just set the topology to how many cores that you assigned to your vm or just remove the topology line altogether.

 

Wow thanks. I was getting a boot loop of Clover -> Apple logo -> Restart -> Clover ...

 

Removing the Topology line and using the rest of your xml as a replacement finally worked.

 

I installed Clover latest (43xx), and then reinstalled Clover 4200 over it after problems for anything looking for help on a fresh install. I did that before messing with the XML above, so it's very possible the Clover version had nothing to do with it finally working, as 4200 was doing the same thing until I messed with the XML.

 

Next item to take on is GPU pass-thru.

Edited by noppadet

Share this post


Link to post
Share on other sites

Looks like I got a similar problem. I had a working OS X El Capitan VM with gpu passthrough on unRAID 6.3.5. I did this build based on Youtube tutorial - new way to create OS X VM by spaceinvader one. It wasn't stable because every ~ 4h gnu passthrough would fail. What is interesting the same was happening with Win 10 VM with gpu. After checking everything 3x I came to conclusion that something is wrong with unRAID. After updating to 6.4rc15e Windows 10 VM with GPU became rock solid, but my OS X El Capitan won't boot any more :( Already tried some suggestions from this topic but I couldn't make it boot. VM starts, I can see Clover, than apple logo pops up and than HDMI signal is lost. It was working 2 days ago ( on older unRAID ) so it's probably xml problem. Please help. ( P.S. osx key is 100% good )

 

 

 

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>ElCapitan</name>
  <uuid>f6e0a0d1-e5d8-b311-2c07-91f6d1780347</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Linux" icon="arch.png" os="linux"/>
  </metadata>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='0'/>
    <vcpupin vcpu='1' cpuset='1'/>
    <vcpupin vcpu='2' cpuset='2'/>
    <vcpupin vcpu='3' cpuset='3'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-q35-2.7'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/f6e0a0d1-e5d8-b311-2c07-91f6d1780347_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='2' threads='2'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/cache/shares/elcapitan/ElCapitan.img'/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <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>
    <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>
    <controller type='pci' index='3' model='pci-bridge'>
      <model name='pci-bridge'/>
      <target chassisNr='3'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:51:66:48'/>
      <source bridge='br0'/>
      <model type='e1000-82545em'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x03' function='0x0'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x04' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x05ac'/>
        <product id='0x0256'/>
      </source>
      <address type='usb' bus='0' port='1'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
  <seclabel type='none' model='none'/>
  <qemu:commandline>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-mouse'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='isa-applesmc,osk=I GOT THE RIGHT KEY'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,vendor=GenuineIntel'/>
  </qemu:commandline>
</domain>

 

 

Any ideas ?

 

Share this post


Link to post
Share on other sites

Try changing this line

 

<type arch='x86_64' machine='pc-q35-2.7'>hvm</type>

to 

<type arch='x86_64' machine='pc-q35-2.10'>hvm</type>

 

also change this

 

 <qemu:commandline>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-mouse'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='isa-applesmc,osk=I GOT THE RIGHT KEY'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,vendor=GenuineIntel'/>
  </qemu:commandline>
</domain>

 

to

 

  <qemu:commandline>
    <qemu:arg value='-usb'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-mouse,bus=usb-bus.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd,bus=usb-bus.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='isa-applesmc,osk=I GOT THE RIGHT KEY'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,vendor=GenuineIntel,kvm=on,+invtsc,vmware-cpuid-freq=on'/>
  </qemu:commandline>

Please try this and check back

Share this post


Link to post
Share on other sites

Did all the changes and no improvements. I also tried to delete cpu topology but still no luck. Same behavior: TianoCore -> Clover -> Apple logo ( without progress bar ) -> HDMI signal lost. 

 

Also checked VM log and saw:

 

Domain id=6 is tainted: custom-argv

Edited by Froger

Share this post


Link to post
Share on other sites

any idea why when doing passthrough, it pegs all the cores for a few minutes before booting normally? This behavior is not exhibited using vnc viewer, only with gpu/usb card pass through. I've used 2 different GPU's and same result.this is on 6.4.0_rc15e, using q35-2.10, on a working sierra img (not hight sierra).

 

--seems related to memory allocation. It takes longer the more I assign the vm.

Edited by 1812

Share this post


Link to post
Share on other sites
On 12/6/2017 at 4:28 PM, gridrunner said:

I have been messing around with getting my osx VM to boot with a different virtual CPU from Penryn

(not that it makes any performance difference to the VM)

 

I changed the line in the XML from


 <qemu:arg value='Penryn,vendor=GenuineIntel,kvm=on,+invtsc,vmware-cpuid-freq=on'/>

to this 


 <qemu:arg value='SandyBridge,vendor=GenuineIntel,kvm=on,+invtsc,vmware-cpuid-freq=on'/>

I find when using Sandy Bridge, the host assigned vCPUs max out at 100% all the time the VM is powered on.

If anyone has time could you check and see if you have the same happen when you switch to this CPU.

I have tried it on Xeon and a Ryzen server and get the same results on both.

 

I get this on my dl580 g7... actually booted halfway and then appeared o hang.. so i forced it off. (unrelated to my previous post/issue)

Edited by 1812

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Copyright © 2005-2017 Lime Technology, Inc. unRAID® is a registered trademark of Lime Technology, Inc.