**VIDEO GUIDE** How to Install MacOS Mojave or High Sierra as a VM


SpaceInvaderOne

Recommended Posts

2 minutes ago, Jorgen said:

 

Thank you, thank you, thank you!!!

I tried adding a mouse and keyboard earlier but couldn't get it to work. I incorrectly assumed this was because of vt-d missing, but your post prompted me to have another crack at it.  For some reason I had selected "USB Mode = 3.0 XHCI" when I first created the VM. Once I spotted that in the XML and changed it back to "2.0 EHCI" things started working again.

 

Thanks again for your help, and for all the awesome guides your are producing!

Your welcome, glad you got the vm fixed :D

Link to comment

Hello Guys;

I was running without issues OS Sierra (10.12) on VMware Workstation 12 pro, after upgrade VMware Workstation I tried to power on the VM and got the error "DSMOS: SMC read error K0: 133"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/DontStealMacOS/DontStealMacOS-26.50/Dont_Steal_MacOS.cpp:191

 

I watched the videos but it's only cover the upgrade process, in my case I am not able to power on the VM.

 

Any Ideas?

Regards

OSmac issue.PNG

Link to comment
39 minutes ago, Zague said:

I was running without issues OS Sierra (10.12) on VMware Workstation 12 pro

You do realize this is a forum for a totally different platform, right? This is the forum owned and run by Limetech for running their unraid software. You would probably get more relevant answers on a VMware forum.

Link to comment
On 6/16/2017 at 3:38 PM, 1812 said:

 

Link to thread?

 

http://www.insanelymac.com/forum/topic/309087-insanely-fast-virtual-mac-qemu-ovmf-clover-and-native-graphics/page-25

 

Looks like this requries QEMU 2.9.0 to work. The parameters are simple enough to add to the unraid XML, but I haven't updated to 6.4-rc yet. 

Once 6.4 is stable and those parameters are confirmed working we should be able to use macOS on unraid with unpatched clover versions.

Link to comment
2 hours ago, lionceau said:

 

http://www.insanelymac.com/forum/topic/309087-insanely-fast-virtual-mac-qemu-ovmf-clover-and-native-graphics/page-25

 

Looks like this requries QEMU 2.9.0 to work. The parameters are simple enough to add to the unraid XML, but I haven't updated to 6.4-rc yet. 

Once 6.4 is stable and those parameters are confirmed working we should be able to use macOS on unraid with unpatched clover versions.

 

Looks like potentially a great find.

Link to comment

One issue I have in my VM having followed this mechanism is crackly sound when watching videos. It is a bit strange, seems to happen whether I output the sound over HDMI to my built in monitor speakers or through my USB connected B&W desktop speakers so it seems more system based if you see what I mean. Any ideas?

 

 

Actually the more I try things, it seems like it is a Safari issue as Chrome doesn't do this....can't be VM related I guess.

Edited by planetwilson
Link to comment
On 27/06/2017 at 5:20 PM, lionceau said:

 

http://www.insanelymac.com/forum/topic/309087-insanely-fast-virtual-mac-qemu-ovmf-clover-and-native-graphics/page-25

 

Looks like this requries QEMU 2.9.0 to work. The parameters are simple enough to add to the unraid XML, but I haven't updated to 6.4-rc yet. 

Once 6.4 is stable and those parameters are confirmed working we should be able to use macOS on unraid with unpatched clover versions.

 

I have tried this with 6.4-rc6 and El Capitan 10.11.6. It works as said with the latest unmodified and minimally configured Clover.

However, to try out Sierra 10.12.5, I am hoping 6.4 will be released with the applesmc patch applied to qemu 2.9.0. That will allow Sierra to run without putting in FakeSMC.

 

For those interested, I put the qemu -cpu options in the libvirt xml as follows:

 

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

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

 

Glad to see it even works with IvyBridge as the guest CPU model :-)

 

 

Link to comment

I'm on 6.4 rc6

 

When update xml to pc-q35-2.9 I get Kernel Panic! pc-q35-2.7 = OK

Any one else got this ?

 

Below is a dump from my VM

 

//Peter 

 

Quote

virsh dumpxml macOS-Sierra
<domain type='kvm' id='7' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>macOS-Sierra</name>
  <uuid>43ec82e1-22ff-2814-5118-ea8a3c8a8edf</uuid>
  <description>OSX Sierran</description>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="macos-Sierra.png" os="osx"/>
  </metadata>
  <memory unit='KiB'>33554432</memory>
  <currentMemory unit='KiB'>33554432</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>6</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='4'/>
    <vcpupin vcpu='1' cpuset='5'/>
    <vcpupin vcpu='2' cpuset='6'/>
    <vcpupin vcpu='3' cpuset='12'/>
    <vcpupin vcpu='4' cpuset='13'/>
    <vcpupin vcpu='5' cpuset='14'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <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/43ec82e1-22ff-2814-5118-ea8a3c8a8edf_VARS-pure-efi.fd</nvram>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='3' 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>destroy</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none' io='native'/>
      <source dev='/dev/vg_virtual_machines/lv_Sierra'/>
      <backingStore/>
      <target dev='vda' bus='sata'/>
      <alias name='sata0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0' model='piix3-uhci'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <model name='i82801b11-bridge'/>
      <alias name='pci.1'/>
      <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'/>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:00:20:30'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='e1000-82545em'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
    </interface>
    <input type='mouse' bus='ps2'>
      <alias name='input0'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input1'/>
    </input>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev0'/>
      <rom bar='on' file='/mnt/appdata/vbios-VIDIA-GeForce-GTX-660/vbios.rom'/>
      <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='0x06' slot='0x00' function='0x1'/>
      </source>
      <alias name='hostdev1'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc52b'/>
        <address bus='3' device='3'/>
      </source>
      <alias name='hostdev2'/>
      <address type='usb' bus='0' port='1'/>
    </hostdev>
    <memballoon model='none'>
      <alias name='balloon0'/>
    </memballoon>
  </devices>
  <seclabel type='none' model='none'/>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+100</label>
    <imagelabel>+0:+100</imagelabel>
  </seclabel>
  <qemu:commandline>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,vendor=GenuineIntel'/>
  </qemu:commandline>
</domain>

 

Link to comment
5 hours ago, peter_sm said:

I'm on 6.4 rc6

 

When update xml to pc-q35-2.9 I get Kernel Panic! pc-q35-2.7 = OK

Any one else got this ?

 

Below is a dump from my VM

 

//Peter 

 

 

 

Initially I got the same result as you, with a working sierra 10.12.5 VM.

 

I then started to work thru the problem with a new el capitan VM (10.11.6). Using the most recent Clover (r4097). 

With the following vm xml and clover config.plist, it works well. I can also passthrough AMD graphics card and USB 3 PCI card.

Still haven't been successful with a new Sierra VM. It got stuck while booting the installer. This seems to be a reported problem since 10.12.4. Would like to try again with a patched qemu 2.9.0 (applesmc patched).

 

 

 

<domain type='kvm' id='64' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>qemu el capitan- ovmf - try</name>
  <uuid>0450821b-8594-5d90-dd1b-c84fe897c924</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Linux" icon="linux.png" os="linux"/>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>2</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='7'/>
    <vcpupin vcpu='1' cpuset='6'/>
  </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/0450821b-8594-5d90-dd1b-c84fe897c924_VARS-pure-efi.fd</nvram>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='2' threads='1'/>
  </cpu>
  <clock offset='utc'/>
  <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'/>
      <source file='/mnt/cache/vm_images/clover-qemu29.img'/>
      <backingStore/>
      <target dev='hda' bus='sata'/>
      <alias name='sata0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/vm_images/ElCapitan.img'/>
      <backingStore/>
      <target dev='hdb' bus='sata'/>
      <alias name='sata0-0-1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb'/>
      <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'>
      <alias name='usb'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <model name='i82801b11-bridge'/>
      <alias name='pci.1'/>
      <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'/>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:00:20:30'/>
      <source bridge='br0'/>
      <target dev='vnet2'/>
      <model type='e1000-82545em'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/2'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/2'>
      <source path='/dev/pts/2'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <input type='mouse' bus='ps2'>
      <alias name='input0'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input1'/>
    </input>
    <graphics type='vnc' port='5901' autoport='yes' websocket='5701' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <memballoon model='none'>
      <alias name='balloon0'/>
    </memballoon>
  </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-tablet'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='Xxxxxxxxxxxxxxxxxxxxxxxxx'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='IvyBridge,vendor=GenuineIntel,kvm=on,+invtsc,vmware-cpuid-freq=on'/>
  </qemu:commandline>
</domain>
 

Config.plist

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

<key>Boot</key>

<dict>

                <key>Arguments</key>

                <string>-v</string>

</dict>

<key>RtVariables</key>

<dict>

<key>BooterConfig</key>

<string>0x28</string>

<key>CsrActiveConfig</key>

<string>0x67</string>

<key>ROM</key>

<string>UseMacAddr0</string>

</dict>

<key>SMBIOS</key>

<dict>

<key>BiosReleaseDate</key>

<string>09/03/2013</string>

<key>BiosVendor</key>

<string>Apple Inc.</string>

<key>BiosVersion</key>

<string>IM142.88Z.0118.B00.1309031249</string>

<key>Board-ID</key>

<string>Xxxxxxxxxxxxxxxxxx</string>

<key>BoardManufacturer</key>

<string>Apple Inc.</string>

<key>BoardType</key>

<integer>10</integer>

<key>ChassisAssetTag</key>

<string>iMac-Aluminum</string>

<key>ChassisManufacturer</key>

<string>Apple Inc.</string>

<key>ChassisType</key>

<string>13</string>

<key>Family</key>

<string>iMac</string>

<key>Manufacturer</key>

<string>Apple Inc.</string>

<key>ProductName</key>

<string>iMac14,2</string>

<key>SerialNumber</key>

<string>Xxxxxxxxxxxxxxxxxx</string>

<key>Trust</key>

<false/>

<key>Version</key>

<string>1.0</string>

</dict>

</dict>

</plist>

Link to comment
14 hours ago, SLL said:

 

Initially I got the same result as you, with a working sierra 10.12.5 VM.

 

I then started to work thru the problem with a new el capitan VM (10.11.6). Using the most recent Clover (r4097). 

With the following vm xml and clover config.plist, it works well. I can also passthrough AMD graphics card and USB 3 PCI card.

Still haven't been successful with a new Sierra VM. It got stuck while booting the installer. This seems to be a reported problem since 10.12.4. Would like to try again with a patched qemu 2.9.0 (applesmc patched).

 

 

 

<domain type='kvm' id='64' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>qemu el capitan- ovmf - try</name>
  <uuid>0450821b-8594-5d90-dd1b-c84fe897c924</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Linux" icon="linux.png" os="linux"/>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>2</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='7'/>
    <vcpupin vcpu='1' cpuset='6'/>
  </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/0450821b-8594-5d90-dd1b-c84fe897c924_VARS-pure-efi.fd</nvram>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='2' threads='1'/>
  </cpu>
  <clock offset='utc'/>
  <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'/>
      <source file='/mnt/cache/vm_images/clover-qemu29.img'/>
      <backingStore/>
      <target dev='hda' bus='sata'/>
      <alias name='sata0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/cache/vm_images/ElCapitan.img'/>
      <backingStore/>
      <target dev='hdb' bus='sata'/>
      <alias name='sata0-0-1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb'/>
      <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'>
      <alias name='usb'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <model name='i82801b11-bridge'/>
      <alias name='pci.1'/>
      <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'/>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:00:20:30'/>
      <source bridge='br0'/>
      <target dev='vnet2'/>
      <model type='e1000-82545em'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/2'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/2'>
      <source path='/dev/pts/2'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <input type='mouse' bus='ps2'>
      <alias name='input0'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input1'/>
    </input>
    <graphics type='vnc' port='5901' autoport='yes' websocket='5701' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <memballoon model='none'>
      <alias name='balloon0'/>
    </memballoon>
  </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-tablet'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='Xxxxxxxxxxxxxxxxxxxxxxxxx'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='IvyBridge,vendor=GenuineIntel,kvm=on,+invtsc,vmware-cpuid-freq=on'/>
  </qemu:commandline>
</domain>
 

Config.plist

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

<key>Boot</key>

<dict>

                <key>Arguments</key>

                <string>-v</string>

</dict>

<key>RtVariables</key>

<dict>

<key>BooterConfig</key>

<string>0x28</string>

<key>CsrActiveConfig</key>

<string>0x67</string>

<key>ROM</key>

<string>UseMacAddr0</string>

</dict>

<key>SMBIOS</key>

<dict>

<key>BiosReleaseDate</key>

<string>09/03/2013</string>

<key>BiosVendor</key>

<string>Apple Inc.</string>

<key>BiosVersion</key>

<string>IM142.88Z.0118.B00.1309031249</string>

<key>Board-ID</key>

<string>Xxxxxxxxxxxxxxxxxx</string>

<key>BoardManufacturer</key>

<string>Apple Inc.</string>

<key>BoardType</key>

<integer>10</integer>

<key>ChassisAssetTag</key>

<string>iMac-Aluminum</string>

<key>ChassisManufacturer</key>

<string>Apple Inc.</string>

<key>ChassisType</key>

<string>13</string>

<key>Family</key>

<string>iMac</string>

<key>Manufacturer</key>

<string>Apple Inc.</string>

<key>ProductName</key>

<string>iMac14,2</string>

<key>SerialNumber</key>

<string>Xxxxxxxxxxxxxxxxxx</string>

<key>Trust</key>

<false/>

<key>Version</key>

<string>1.0</string>

</dict>

</dict>

</plist>

 

Turns out the above vm and clover config works with sierra 10.12.5 as well (with fakeSMC added). Earlier kernel panic happened when my VM was configured with 6 core 2 threads. For some reason it panic straight away. This configuration works with qemu 2.7. Changed to 4 core 2 threads works fine.

 

 

Link to comment
2 minutes ago, SLL said:

 

Turns out the above vm and clover config works with sierra 10.12.5 as well (with fakeSMC added). Earlier kernel panic happened when my VM was configured with 6 core 2 threads. For some reason it panic straight away. This configuration works with qemu 2.7. Changed to 4 core 2 threads works fine.

 

 

Yes its always best to use a cpu topology that would exist in a cpu that apple would use in a real machine.

Link to comment
34 minutes ago, SLL said:

 

Turns out the above vm and clover config works with sierra 10.12.5 as well (with fakeSMC added). Earlier kernel panic happened when my VM was configured with 6 core 2 threads. For some reason it panic straight away. This configuration works with qemu 2.7. Changed to 4 core 2 threads works fine.

 

 

 

One final update: specify CPU model as IvyBridge (or SandyBridge) seems to work but the system CPU usage skyrocketed. Go back to Penryn and everything is fine.

 

Link to comment

I followed the guide on the latest video using my macbook pro and vmware to install everything into the vdisk then move it into unRAID but I'm stuck on the bootloop when trying to start the VM right after the Clover menu. I'm assuming it's because I screw up somewhere with the AppleSMC/OSK Key but I can't figure out what the issue is. 

 

Here's the message I'm getting -> imgur link

And here's what my XML template looks like right now -> pastebin link

 

Any idea on where I might be screwing up? 

Link to comment
5 hours ago, Laucien said:

I followed the guide on the latest video using my macbook pro and vmware to install everything into the vdisk then move it into unRAID but I'm stuck on the bootloop when trying to start the VM right after the Clover menu. I'm assuming it's because I screw up somewhere with the AppleSMC/OSK Key but I can't figure out what the issue is. 

 

Here's the message I'm getting -> imgur link

And here's what my XML template looks like right now -> pastebin link

 

Any idea on where I might be screwing up? 

Hi Yes,

I really should make a new guide from start to finish soon. You need to install the fake SMC (see the video on upgrading to 10.12.4) when you have created the VM in VMware Fusion before converting to kvm.

then you must remove the osk key part in the XML. Many people don't realise it is actually 3 lines you need to remove.

  <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=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,vendor=GenuineIntel'/>
  </qemu:commandline>
</domain>

You don't just remove the  <qemu:arg value='isa-applesmc,osk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'/>

You must remove these 3 lines when using fake SMC.

    <qemu:arg value='-device'/>
    <qemu:arg value='isa-applesmc,osk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'/>
    <qemu:arg value='-smbios'/>

Hope that helps 

Link to comment

Not sure if that is the correct forum but I am having an issue with the NTP server. The time is always behind however the NTP process is running (“Set date & time automatically” is on):

ps ax| grep ntp
10290   ??  Ss     0:00.02 /usr/sbin/ntpd -c /private/etc/ntp-restrict.conf -n -g -p /var/run/ntpd.pid -f /var/db/ntp.drift
10321 s002  S+     0:00.00 grep ntp

Is there anything I have overlooked?

Link to comment
  • 1 month later...
  • 1 month later...

Are people able to log into the App Store on a fresh/clean Sierra 10.12.6 vm?  I've tried several VM creation attempts and they've all resulted in "Verification Failed. There was an error connecting to the Apple ID server". 

 

Upon finalizing the Fusion VM, I had verified that I could log in using a valid Apple ID into the App Store, however after converting to KVM and running it in unraid, I hit upon the above error.

 

Here's my VM xml:


<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>Sierra_10.12.6</name>
  <uuid>190d9ca4-3e22-8b21-bcfe-eba9a9a53d31</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Ubuntu" icon="ubuntu.png" os="ubuntu"/>
  </metadata>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='10'/>
    <vcpupin vcpu='1' cpuset='26'/>
    <vcpupin vcpu='2' cpuset='11'/>
    <vcpupin vcpu='3' cpuset='27'/>
    <vcpupin vcpu='4' cpuset='12'/>
    <vcpupin vcpu='5' cpuset='28'/>
    <vcpupin vcpu='6' cpuset='13'/>
    <vcpupin vcpu='7' cpuset='29'/>
  </cputune>
  <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/190d9ca4-3e22-8b21-bcfe-eba9a9a53d31_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='4' threads='2'/>
  </cpu>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</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/OCZ_VERTEX460_A22BF061439003586/VM_Images/MacOS_Sierra_10.12.6/sierra_10.12.6_new.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='piix3-uhci'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
    </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='0x01' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:51:66:48'/>
      <source bridge='br0'/>
      <model type='vmxnet3'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x046d'/>
        <product id='0xc52b'/>
        <address bus='1' device='6'/>
      </source>
      <address type='usb' bus='0' port='1'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
  <seclabel type='none' model='none'/>
  <qemu:commandline>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,vendor=GenuineIntel'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=02:00.0,bus=pcie.0,multifunction=on,x-vga=on'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=02:00.1,bus=pcie.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='vfio-pci,host=00:1d.0,bus=root.1,addr=00.0'/>
  </qemu:commandline>
</domain>

Link to comment
16 hours ago, jwegman said:

Are people able to log into the App Store on a fresh/clean Sierra 10.12.6 vm?  I've tried several VM creation attempts and they've all resulted in "Verification Failed. There was an error connecting to the Apple ID server". 

 

Upon finalizing the Fusion VM, I had verified that I could log in using a valid Apple ID into the App Store, however after converting to KVM and running it in unraid, I hit upon the above error.

 

...to answer my own question, the issue was resolved by changing the bridge interface's model type from 'vmxnet3' to 'e1000-82545em' (as Gridrunner uses in his example vm.xml):


    <interface type='bridge'>
      <mac address='52:54:00:51:66:48'/>
      <source bridge='br0'/>
      <model type='vmxnet3'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </interface>

 

...which Unraid resulted in altering the bridge interface element with the following (it automatically added the target dev, and alias):


    <interface type='bridge'>
      <mac address='52:54:00:51:66:48'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='e1000-82545em'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </interface>

Link to comment

High Sierra   10.13    
So now High Sierra is here its time for a new video. Things are a lot better for OSX VMs now. Since qemu 2.9 we don't need to use a patched clover.
We can pass through the CPU frequency to the guest from the XML.


This video although for High Sierra will also work for Sierra

 

HOW TO INSTALL HIGH SIERRA OR SIERRA ON UNRAID

 

 

 

 

Video how to create the install media is below.

 

 

https://www.youtube.com/watch?v=BFPiK1Ggbks

 

Edited by gridrunner
Link to comment

Exciting, thanks. Will give it a try soon. Just one question.

 

I am still on 6.3. Does this impact the guide and better to wait until 6.4 is out? Quote from this thread below:

 

 

** I have tried this with 6.4-rc6 and El Capitan 10.11.6. It works as said with the latest unmodified and minimally configured Clover.

** However, to try out Sierra 10.12.5, I am hoping 6.4 will be released with the applesmc patch applied to qemu 2.9.0. That will allow Sierra to run without putting in FakeSMC.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.