Jump to content
SpaceInvaderOne

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

1426 posts in this topic Last Reply

Recommended Posts

Thank you so much for this guide! This saved me hours and hours of work, really appreciate it. I am, however, having a problem with my Mojave VM and I'm wondering if anybody might be able to help.

 

I've followed the guide up to the point where I've copied the Clover EFI folder over to the EFI partition on my drive, and have removed the clover qcow2 image & the Mojave install .img file from my VM template.

 

I am able to boot into Mojave and sign in, however the system apps are very unstable, and Finder crashes instantly upon trying to open it, before a Finder window even appears. Is there anything I can try to tweak in my settings to increase stability? I am not yet able to launch Clover Configurator to generate proper SMBIOS values as Finder and Spotlight constantly crash.

 

In case it's relevant, I'm running dual Intel Xeon X5670 processors on a Supermicro X8DTL-iF motherboard. I'm attempting to pass 4 cores + 4 threads through to the VM.

 

When I launch the VM in UnRAID, I receive the following error in the log:

2018-11-15 21:21:01.617+0000: Domain id=4 is tainted: high-privileges
2018-11-15 21:21:01.617+0000: Domain id=4 is tainted: custom-argv
2018-11-15 21:21:01.617+0000: Domain id=4 is tainted: host-cpu
2018-11-15T21:21:01.696397Z qemu-system-x86_64: -chardev pty,id=charserial0: char device redirected to /dev/pts/1 (label charserial0)

Every time I stop & relaunch the VM, the "Domain id=" value in the log increases by 1.

 

Here is my XML:

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>Mojave</name>
  <uuid>ea91963a-4612-3ef8-99a6-12fa9461a7ad</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='8'/>
    <vcpupin vcpu='1' cpuset='20'/>
    <vcpupin vcpu='2' cpuset='9'/>
    <vcpupin vcpu='3' cpuset='21'/>
    <vcpupin vcpu='4' cpuset='10'/>
    <vcpupin vcpu='5' cpuset='22'/>
    <vcpupin vcpu='6' cpuset='11'/>
    <vcpupin vcpu='7' cpuset='23'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-q35-3.0'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/ea91963a-4612-3ef8-99a6-12fa9461a7ad_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='4' 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='qcow2' cache='writeback'/>
      <source file='/mnt/user/domains/Mojave/clover.qcow2'/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/Mojave/vdisk3.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='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:b3:7d:08'/>
      <source bridge='br0'/>
      <model type='e1000-82545em'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
    </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'/>
    <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </memballoon>
  </devices>
  <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=REDACTED'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,vendor=GenuineIntel,kvm=on,+invtsc,+ssse3,+sse4_2,+popcnt,vmware-cpuid-freq=on,'/>
  </qemu:commandline>
</domain>

Any help would be much appreciated! 

Share this post


Link to post

Hi,

 

I'm trying to install macOS, but when Clover boots there are no available macOS install:

 

missingboot.JPG.11d3d4f45946608c8aeb922e3f3cd99e.JPG

 

Config:

    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='writeback'/>
      <source file='/mnt/user/domains/HACKINTOSH/clover.qcow2'/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/HACKINTOSH/mojave.img'/>
      <target dev='hdd' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='3'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/HACKINTOSH/vdisk3.img'/>
      <target dev='hde' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='4'/>
    </disk>

As I see the config is good.

Do you have any idea what's wrong?

Thanks.

Edited by MasterMark
Correction

Share this post


Link to post

How is an unRaid share exposed to MacOS?

 

I have my iTunes library on the host array, and I know I can share it over the network, but i figured it might be more reliable over through a VM mount. I configured the following in the VM XML.

 

    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user/iTunes Library/'/>
      <target dir='iTunes Library'/>
      <alias name='fs0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </filesystem>

And I expected this to be mounted as a drive called "iTunes Library" or appear in /Volumes or at least appear in /dev as "fs0", but nothing! What am I missing?

Share this post


Link to post
2 hours ago, whiteatom said:

How is an unRaid share exposed to MacOS?

 

I have my iTunes library on the host array, and I know I can share it over the network, but i figured it might be more reliable over through a VM mount. I configured the following in the VM XML.

 


    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user/iTunes Library/'/>
      <target dir='iTunes Library'/>
      <alias name='fs0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </filesystem>

And I expected this to be mounted as a drive called "iTunes Library" or appear in /Volumes or at least appear in /dev as "fs0", but nothing! What am I missing?

last time I checked does not work like that with osx. you have to use smb/afp network share. shares via mount only work (again, iirc) in linux vm's.

Edited by 1812

Share this post


Link to post

FWIW: I'm using a $30 NVIDIA GT 640 1GB (the one with a Display Port on it) passed through in Mojave with native Metal support.

Not the fastest GPU out there but it works until the webdrivers are published.

Share this post


Link to post
1 minute ago, dmk said:

FWIW: I'm using a $30 NVIDIA GT 640 1GB (the one with a Display Port on it) passed through in Mojave with native Metal support.

Not the fastest GPU out there but it works until the webdrivers are published.

up to 7xx series is supported natively in mac os currently iirc... (maybe 9's too?) I have 2 vm's running mojave, one with a 710 and the other a 730. Maybe someday we'll get web drivers for 10 series.....

Share this post


Link to post
2 minutes ago, 1812 said:

up to 7xx series is supported natively in mac os currently iirc... (maybe 9's too?) I have 2 vm's running mojave, one with a 710 and the other a 730. Maybe someday we'll get web drivers for 10 series.....

Yeah, the GT 640 isn't fully supported (no boot screen) but it does boot to login and Metal is supported!

GT640.png.616619e4d9811e26670067a367bb8a12.png

Share this post


Link to post

Thanks SIO for an amazing guide.  Open question: I've followed everything to a T and everything is smooth up to getting my High Sierra vm working well over VNC and also in Splashtop.  However in trying to go to the next step and enable passthrough to my GT710, I'm not able to get any display on my monitor (black screen during the entire boot process).  I've got the nVidia webdrivers and downloaded the extra nvidia software from Benjamin Dobell.

 

Funny thing is, Splashtop *looks* like it's detecting my Mac booting up and ready for a VNC connection (I've got High Sierra set to auto log in to my account), however whenever I click Connect, Splashtop just says "connecting to your computer" for maybe 30 seconds, then says "Cannot connect to your computer".  I was hoping to use Splashtop to be able to try to figure out what's going wrong when I switch my VM settings from VNC to my nVidia card, but this doesn't seem to be an option.

 

Any suggestions on where I can try to troubleshoot what might be going on?

 

Thanks!

 

 

 

Share this post


Link to post
8 hours ago, iotarho said:

Any suggestions on where I can try to troubleshoot what might be going on?

710 runs w/out web drivers natively. So first step would be go back to basics and make it work that way first.

 

Also, you may not get a full boot screen the entire time, or a distorted one depending on how you have the resolution set in the "bios"

Share this post


Link to post

Hello all - thanks for the great forum post.  I've got mojave up and running.  I have everything set aside from one issue.  I'm running vnc as my display (i have a hd 4550 but it only black screens - so i've moved on), and I have the resolution I want working.  But I want to rotate the display (only in the OS).  Unfortunately the display in settings doesn't give the option even with the keyboard shortcut.  I've downloaded some mac programs that would normally do this function but they say the display isn't capable.  I've tried injecting a different edid, but none of those changed any of the rotate options.  Is there anyone out there that has successfully rotated the screen on Mojave OS with VNC?

Share this post


Link to post
22 hours ago, RussellG said:

I am unable to get my mouse to move? I removed the tablet line and still unable to get it to move?

Russell - Are you using VNC or pass through mouse?

Share this post


Link to post

Are hevc videos direct playing on High Sierra with an nvidia 1060 passed through ? Or is only cpu hardware transcoding supported ?

Share this post


Link to post

My problem with the Mojave VM is the video is choppy on both VNC and splashtop.  

Watching youtube the motion is very choppy.

I followed the directions to make the VM, and can successfully connect to it. 

I am not using a pass-thru graphics card.

I have an I7-4790 on an ASRock - Z97 Extreme6.

4 gigs of ram assigned to VM

 

Are there any common fixes for laggy systems?

 

My Windows 10 VM works great (2gigs ram), but I have it disabled while testing Mojave.

 

Edit: I deleted the efi folder, and replaced it with the efi folder from the youtube page link.  however, i now see that there are three folders in there: the EFI folder, an apple folder, and a boot folder.  I am not familiar with macs so i don't know if they should be there or not.

I have also disabled spotlight on the drive, but that didnt really make the system faster.  

 

Excerpt of logs showing error:

"...

Penryn,vendor=GenuineIntel,kvm=on,+invtsc,+avx,+avx2,+aes,+xsave,+xsaveopt,+ssse3,+sse4_2,+popcnt,vmware-cpuid-freq=on, -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on
2018-12-09 14:16:41.496+0000: Domain id=12 is tainted: high-privileges
2018-12-09 14:16:41.496+0000: Domain id=12 is tainted: custom-argv
2018-12-09 14:16:41.496+0000: Domain id=12 is tainted: host-cpu"

 

Edited by Ayefly
adding info

Share this post


Link to post

Hi,

 

I followed every step in the video, yet I'm stuck at the install part.

 

I formatted the vdisk to APFS then proceeded to launch the install, and it seems to be stuck here, at the beginning of the progress bar.

 

mojave.jpg.700a3b945eeecaf2aaea844022ba8668.jpg

 

Here is my xml.

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' id='4' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>macOS Mojave</name>
  <uuid>c4a5feba-bf16-83c0-4782-bcfef092ac5d</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Linux" icon="linux.png" os="linux"/>
  </metadata>
  <memory unit='KiB'>1048576</memory>
  <currentMemory unit='KiB'>1048576</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>1</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='0'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-3.0'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/c4a5feba-bf16-83c0-4782-bcfef092ac5d_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='1' threads='1'/>
  </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='qcow2' cache='writeback'/>
      <source file='/mnt/cache/isos/clover.qcow2'/>
      <backingStore/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <alias name='sata0-0-2'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/cache/isos/mojave.img'/>
      <backingStore/>
      <target dev='hdd' bus='sata'/>
      <alias name='sata0-0-3'/>
      <address type='drive' controller='0' bus='0' target='0' unit='3'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/cache/domains/macOS Mojave/vdisk1.img'/>
      <backingStore/>
      <target dev='hde' bus='sata'/>
      <alias name='sata0-0-4'/>
      <address type='drive' controller='0' bus='0' target='0' unit='4'/>
    </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='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <alias name='pci.1'/>
      <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'/>
      <alias name='pci.2'/>
      <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'/>
      <alias name='pci.3'/>
      <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'/>
      <alias name='pci.4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:94:15:6f'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='vmxnet3'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/0'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-4-macOS Mojave/org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'>
      <alias name='input1'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input2'/>
    </input>
    <graphics type='vnc' port='5900' autoport='yes' websocket='5700' listen='0.0.0.0' keymap='fr'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </memballoon>
  </devices>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+100</label>
    <imagelabel>+0:+100</imagelabel>
  </seclabel>
  <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=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,vendor=GenuineIntel,kvm=on,+invtsc,+avx,+avx2,+aes,+xsave,+xsaveopt,+ssse3,+sse4_2,+popcnt,vmware-cpuid-freq=on,'/>
  </qemu:commandline>
</domain>

Has anyone encountered this issue ?

 

Thanks

Share this post


Link to post

I keep getting 'there was an error connecting to the Apple ID server' when clicking Sign In on the Appstore.

I suspect it might be because Apple doesn't recognise the VM as a real MAC?

 

I have followed everything in the guide so I'm not sure why I can't access the Appstore.

 

Appstore login works on other machines and High Sierra VM, only Mojave has a problem.

Share this post


Link to post

Hi, it's me again.

 

So I managed to install Mojave, everything works but impossible to passthrough my GPU.


Boot options screens shows up fine, then the Apple logo is stuck on the top left on the screen, then nothing.

 

When I access the VM remotely, it only shows a green screen.

 

Here is my current XML. Any ideas ?

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' id='8' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>macOS Mojave</name>
  <uuid>256ebeaa-7d46-47ae-d7e3-345d93ac34cd</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Linux" icon="linux.png" os="linux"/>
  </metadata>
  <memory unit='KiB'>25165824</memory>
  <currentMemory unit='KiB'>25165824</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='2'/>
    <vcpupin vcpu='1' cpuset='8'/>
    <vcpupin vcpu='2' cpuset='3'/>
    <vcpupin vcpu='3' cpuset='9'/>
    <vcpupin vcpu='4' cpuset='4'/>
    <vcpupin vcpu='5' cpuset='10'/>
    <vcpupin vcpu='6' cpuset='5'/>
    <vcpupin vcpu='7' cpuset='11'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-3.0'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/256ebeaa-7d46-47ae-d7e3-345d93ac34cd_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='4' 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/domains/macOS Mojave/vdisk1.img'/>
      <backingStore/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <alias name='sata0-0-2'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </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='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <alias name='pci.1'/>
      <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'/>
      <alias name='pci.2'/>
      <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'/>
      <alias name='pci.3'/>
      <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'/>
      <alias name='pci.4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:12:22:0e'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='vmxnet3'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/0'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-8-macOS Mojave/org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'>
      <alias name='input1'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input2'/>
    </input>
    <graphics type='vnc' port='5900' autoport='yes' websocket='5700' listen='0.0.0.0' keymap='fr'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </memballoon>
  </devices>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+100</label>
    <imagelabel>+0:+100</imagelabel>
  </seclabel>
  <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'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,vendor=GenuineIntel,kvm=on,+invtsc,+avx,+avx2,+aes,+xsave,+xsaveopt,+ssse3,+sse4_2,+popcnt,vmware-cpuid-freq=on,'/>
  </qemu:commandline>
</domain>

 

Share this post


Link to post

Anyone had any luck upping the core count to 6 pairs? Can't find the right system definition. Seemed to work when I changed to the six core xeon e5 2013 Mac pro but nvidia graphics passthrough messed.

Share this post


Link to post
12 hours ago, Leeuujay said:

Anyone had any luck upping the core count to 6 pairs? Can't find the right system definition. Seemed to work when I changed to the six core xeon e5 2013 Mac pro but nvidia graphics passthrough messed.

I've run up to 64 cores (max allowed under osx.) the trick is to remove topology.

Edited by 1812

Share this post


Link to post

Hi,

 

Is there anything I should change in the Clover Configurator before passing through my GPU (RX 480) for it to work ? (XML 3 posts above)

 

Thanks

Share this post


Link to post
On 12/16/2018 at 10:51 AM, mikeyosm said:

I keep getting 'there was an error connecting to the Apple ID server' when clicking Sign In on the Appstore.

I suspect it might be because Apple doesn't recognise the VM as a real MAC?

 

I have followed everything in the guide so I'm not sure why I can't access the Appstore.

 

Appstore login works on other machines and High Sierra VM, only Mojave has a problem.

Also,

 

Is it possible to see fan speed from RX 570 GPU? I use istat hwmon etc and can only see GPU temperature. All other info uch as voltage, fans etc are not there.

Share this post


Link to post
On 12/17/2018 at 4:35 AM, 1812 said:

I've run up to 64 cores (max allowed under osx.) the trick is to remove topology.

This is the trick!!! It worked I can now send 6cores to vm thank you!!

Share this post


Link to post
On 12/17/2018 at 4:35 AM, 1812 said:

I've run up to 64 cores (max allowed under osx.) the trick is to remove topology.

This is the trick!!! It worked I can now send 6cores to vm thank you!!

Share this post


Link to post

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.