[Support] SpaceinvaderOne - Macinabox


Recommended Posts

I would like say, like many others, that the work on Macinabox is basically amazing. Thank you so much!

 

I would also like to add that for those working with GPU pass through, it is worthwhile to know a bit of how OpenCore works, particularly about which GPU are supported, and whether any changes in the boot arguments are needed. For example, though I am still in the middle of my setup, I know it will be important to add "agdpmod=pikera" to my boot args in the OpenCore config.plist to get my RX 5500 XT card to display properly.

 

Running Mac OS virtually is still a hackintosh, just an easier virtual hardware profile. But pass through devices have to be specifically supported, or no amount of xml changes will help you get them working. Your Nvidia cards will never work on Mac OS Mojave or newer... (as much as I would like them to)  ;)

 

pm

Link to comment

Thank you @SpaceInvaderOnefor the updated Macinabox! I've been a long fan and been using Macinabox since it came out!

 

Prior to the new version, I had accidentally destroyed my Mojave disk by breaking the EFI partition. With the new Macinabox release, I decided to go Monterey as my work MBP is using that.

 

With the similar working configuration (Mojave) for Monterey and passthrough the GPU (Sapphire Pulse RX580) and USB3 controller, I am not able to get any display to show up. When I use VNC, I can control the keyboard and mouse which is connected to the USB3 controller so I know that passthrough for USB worked.

I was wondering if anyone else ran into the no display issue, I found 2 suggestions by doing some research on my end

  1. Add `agdpmod=pikera` to the NVRAM boot-args and that didn't work for me
  2. Use the display port instead of the HDMI port on the GPU which I can't because I don't have a 40m DP cable.

Below is my yml for reference, thank you in advance!

 

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' id='6' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>Macinabox Monterey</name>
  <uuid>9669c422-5523-44b5-9abd-e7ccb47fa18b</uuid>
  <description>MacOS Monterey</description>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="default.png" os="osx"/>
  </metadata>
  <memory unit='KiB'>33554432</memory>
  <currentMemory unit='KiB'>33554432</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>12</vcpu>
  <iothreads>1</iothreads>
  <cputune>
    <vcpupin vcpu='0' cpuset='2'/>
    <vcpupin vcpu='1' cpuset='20'/>
    <vcpupin vcpu='2' cpuset='3'/>
    <vcpupin vcpu='3' cpuset='21'/>
    <vcpupin vcpu='4' cpuset='4'/>
    <vcpupin vcpu='5' cpuset='22'/>
    <vcpupin vcpu='6' cpuset='5'/>
    <vcpupin vcpu='7' cpuset='23'/>
    <vcpupin vcpu='8' cpuset='6'/>
    <vcpupin vcpu='9' cpuset='24'/>
    <vcpupin vcpu='10' cpuset='7'/>
    <vcpupin vcpu='11' cpuset='25'/>
    <emulatorpin cpuset='1,19'/>
    <iothreadpin iothread='1' cpuset='1,19'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-4.2'>hvm</type>
    <loader readonly='yes' type='pflash'>/mnt/user/system/custom_ovmf/Macinabox_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/9669c422-5523-44b5-9abd-e7ccb47fa18b_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
    <kvm>
      <hidden state='on'/>
    </kvm>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'>
    <topology sockets='1' dies='1' cores='6' threads='2'/>
    <cache mode='passthrough'/>
    <feature policy='require' name='vmx'/>
    <feature policy='require' name='topoext'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='yes'/>
  </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/user/domains/Macinabox Monterey/Monterey-opencore.img' index='2'/>
      <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='qcow2' cache='writeback'/>
      <source file='/mnt/user/domains/Macinabox Monterey/macos_disk.img' index='1'/>
      <backingStore/>
      <target dev='hdd' bus='virtio'/>
      <alias name='virtio-disk3'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </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' multifunction='on'/>
    </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='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='0x8'/>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x9'/>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 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='pci' index='5' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='5' port='0xa'/>
      <alias name='pci.5'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='6' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='6' port='0xb'/>
      <alias name='pci.6'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 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>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:06:c8:bd'/>
      <source bridge='br0'/>
      <target dev='vnet1'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/1'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/1'>
      <source path='/dev/pts/1'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-6-Macinabox Monterey/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>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x17' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev0'/>
      <rom file='/mnt/user/isos/vbios/sapphire pulse rx 580.rom'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0' multifunction='on'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x17' slot='0x00' function='0x1'/>
      </source>
      <alias name='hostdev1'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x1'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev2'/>
      <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
    </hostdev>
    <memballoon model='none'/>
  </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-kbd,bus=usb-bus.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='************************'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+bmi1,+bmi2,+xsave,+xsaveopt,+rdrand,check'/>
  </qemu:commandline>
</domain>

 

Link to comment

I've spun up a new Big Sur VM but I'm having trouble putting in my iCloud password. They keyboard is set to US but when I go to type in the password it's like it changes the keyboard layout to Greek or something. I go to Spotlight and it's all Greek characters. When I cancel out of putting in my iCloud account the keyboard returns to normal. What is going on?

Edited by Taddeusz
Link to comment

Hello all,

I successfully installed macinabox on my system yesterday. Many thanks to @ SpaceInvaderOne for the great work. Since I am currently running a Unraid server with Intel iGPU only, I am currently thinking about getting a small graphics card for the macOS VM. Due to the poor graphics performance, the VM is currently unusable.

Can you recommend a "cheap" graphics card?
Do I have to use a HDMI dongle if I want to run the VM headless with gpu passthrough? There is no monitor connected to my Unraid server. Later I want to access the VM via AnyDesk.

Edited by Pixelpaule
Link to comment

I have been trying to install monterey three times now but it never works, btw should the part where you run the userscripts complete in a few seconds ?. After I start the vm I can only chose from base system, uefi.., reset nvram and after selection the first option the vm just rebots back to the same menu

 

Link to comment

I tried installing both Monterey and big sur with the same result where the userscript completes directly after running and the vm is unable to install.

But I checked the log from the macinabox app when running and noticed that it says it has only downloaded ~2500bytes

and I am guessing that this is the problem ?

 

continuing
I am going to download the BigSur recovery media. Please be patient!
.
.
1. High Sierra (10.13)
2. Mojave (10.14)
3. Catalina (10.15)
4. Big Sur (11.6) - RECOMMENDED
5. Monterey (latest)
Big Sur (11.6) - RECOMMENDED
Downloading 694-35959...
Saving http://oscdn.apple.com/content/downloads/41/28/071-71279/5djpevqmc2w0ti2c4n1m8mkz7fm791t1ic/RecoveryImage/BaseSystem.dmg to BaseSystem.dmg...
Note: The total download size is 637.20 MB
Saving http://oscdn.apple.com/content/downloads/41/28/071-71279/5djpevqmc2w0ti2c4n1m8mkz7fm791t1ic/RecoveryImage/BaseSystem.chunklist to BaseSystem.chunklist...
Note: The total download size is 2596 bytes
.
.
mkdir: created directory '/domains/Macinabox BigSur'
I have created the Macinabox directories
.
.
Formatting '/domains/Macinabox BigSur/macos_disk.img', fmt=raw size=107374182400
.
Created vdisk
.
.
Saving http://oscdn.apple.com/content/downloads/41/28/071-71279/5djpevqmc2w0ti2c4n1m8mkz7fm791t1ic/RecoveryImage/BaseSystem.chunklist to BaseSystem.chunklist...
Note: The total download size is 2596 bytes
.
.
mkdir: created directory '/domains/Macinabox BigSur'
I have created the Macinabox directories
.
.
Formatting '/domains/Macinabox BigSur/macos_disk.img', fmt=raw size=107374182400
.
Created vdisk
.
.
Putting stock open core in the vm share
Archive: /Macinabox/bootloader/OpenCore-v16.img.zip
Putting stock open core in the vm share
Archive: /Macinabox/bootloader/OpenCore-v16.img.zip
inflating: /config/OpenCore-v16.img
Going with the default nic type for the macOS vm
macOS VM template generated and moved to server (You need to run macinabox_helper userscript)
.
.
A copy of macinabox helper and notify script has been put in appdata

Summary of what has been done

.
.
The reference /domains below refers to where you mapped that folder in the docker template on your server
(normally to /mnt/user/domains)
.
.
MacOS install media was put in your Unraid isos share named BigSur-install.img
.
.
A Vdisk of 100G was created in /domains/Macinabox BigSur
.
.
OpenCore bootloader image named BigSur-opencore.img was put in your Unraid vm share in the folder named BigSur
.
.
Custom ovmf files are in /mnt/user/system/custom_ovmf
.
.
XML template file for the vm is ready for install with macinabox helper user script.
Note This file assumes your vm share is the default location /mnt/user/domains
If it isnt you will need to change the locations accordingly after in unraid vm manager before running vm
A copy of the macinabox helper user script was placed in /mnt/user/appdata/macinabox
.
.
OK process is now complete


 

Edited by Cliff
Link to comment

Hi all,

 

First at all, thanks for macinabox, it is just owesome.

I hope someone could help me, I am completely blocked how to get my AMD Radeon Pro WX 5100 working on my MacOS Monterey VM. 

If I select the graphics on VNC, the VM works perfectly. However, when I select a dedicated GPU (AMD Radeon PRO WX 5100)  I get blocked in the TIANO CORE (Start PXE over IPv4). Mayme mention that the GPU works fine with a Debian VM. I paste my xml  and looking forward to getting some help here. Thanks in advance

 

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>Macinabox Monterey</name>
  <uuid>c702483b-1ad2-4498-95a1-4537defe10f4</uuid>
  <description>MacOS Monterey</description>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="Apple_old3.png" os="osx"/>
  </metadata>
  <memory unit='KiB'>67108864</memory>
  <currentMemory unit='KiB'>67108864</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='7'/>
    <vcpupin vcpu='1' cpuset='21'/>
    <vcpupin vcpu='2' cpuset='8'/>
    <vcpupin vcpu='3' cpuset='22'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-q35-5.1'>hvm</type>
    <loader readonly='yes' type='pflash'>/mnt/user/system/custom_ovmf/Macinabox_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/c702483b-1ad2-4498-95a1-4537defe10f4_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'>
    <topology sockets='1' dies='1' cores='2' threads='2'/>
    <cache mode='passthrough'/>
  </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/user/domains/Macinabox Monterey/macos_disk.img'/>
      <target dev='hdc' bus='virtio'/>
      <boot order='1'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </disk>
    <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='0x8'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x9'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='3' port='0xa'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 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='0xb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x3'/>
    </controller>
    <controller type='pci' index='6' model='pcie-to-pci-bridge'>
      <model name='pcie-pci-bridge'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </controller>
    <controller type='pci' index='7' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='7' port='0xc'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x4'/>
    </controller>
    <controller type='pci' index='8' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='8' port='0xd'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x5'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <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>
    <interface type='bridge'>
      <mac address='52:54:00:56:19:ae'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x03' 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'/>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
      </source>
      <rom file='/mnt/user/isos/amdradeonpro.rom'/>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0' multifunction='on'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x1'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
  <qemu:commandline>
    <qemu:arg value='-usb'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd,bus=usb-bus.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='************************'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+fma4,+bmi1,+bmi2,+xsave,+xsaveopt,+rdrand,check'/>
  </qemu:commandline>
</domain>

 

 

Link to comment

Hi Sorry to sound like a numpty

I followed the video guide ran the user scripts left everything as set in the template and got this error message when when I went to run the VM for the first time. I have not edited the xml etc.  I am trying to install Monterey onto the server so I can see if it will run the  version of Filemaker I have before I update my MacBook Pro. I do not know much about editing code so please be gentle on me.

Thank in Advance 
  Martin 


    533217232_Screenshot2022-02-26at09_37_51.png.0a4e6e75692d8b2bbd21b596107d9559.png

Link to comment
18 hours ago, Martintheshred said:

I followed the video guide ran the user scripts left everything as set in the template and got this error message when when I went to run the VM for the first time. I have not edited the xml etc.  I am trying to install Monterey onto the server so I can see if it will run the  version of Filemaker I have before I update my MacBook Pro. I do not know much about editing code so please be gentle on me.

So I don't use Macinabox but it seems that the custom ovmf file is missing off your drive. I can't tell you if it is just that it never copied or has ended up in a different location.
You could just see if it is somewhere under your appdata/Macinabox folder or just download it.

https://github.com/SpaceinvaderOne/Macinabox/tree/master/ovmf

The location specified in the VM configuration has to match the location it is stored on your drive and you should be good to go.

Link to comment

No matter what I try I only get three options when starting my vm, macOS Base system, uefi shell and reset nvram. And every time I select the first options I get a logo and progressbar for a couple of seconds then it just reboots back to the first screen with the three options again. Does any one know how to solve this ?

Link to comment

Hello. Can you help me passthrough USB mouse and keyboard ?

All fine work's with  passthrought videocard rx 570. But when i passthrought usb mouse or keyboard i see black screen

It xml without mouse and keyboard

Spoiler
<?xml version='1.0' encoding='UTF-8'?>\
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>\
  <name>Macinabox BigSur</name>\
  <uuid>d401e640-fd71-4e48-bf57-d03a43a02854</uuid>\
  <description>MacOS Big Sur</description>\
  <metadata>\
    <vmtemplate xmlns="unraid" name="Windows 10" icon="default.png" os="osx"/>\
  </metadata>\
  <memory unit='KiB'>8388608</memory>\
  <currentMemory unit='KiB'>8388608</currentMemory>\
  <memoryBacking>\
    <nosharepages/>\
  </memoryBacking>\
  <vcpu placement='static'>8</vcpu>\
  <cputune>\
    <vcpupin vcpu='0' cpuset='0'/>\
    <vcpupin vcpu='1' cpuset='8'/>\
    <vcpupin vcpu='2' cpuset='1'/>\
    <vcpupin vcpu='3' cpuset='9'/>\
    <vcpupin vcpu='4' cpuset='2'/>\
    <vcpupin vcpu='5' cpuset='10'/>\
    <vcpupin vcpu='6' cpuset='3'/>\
    <vcpupin vcpu='7' cpuset='11'/>\
  </cputune>\
  <os>\
    <type arch='x86_64' machine='pc-q35-4.2'>hvm</type>\
    <loader readonly='yes' type='pflash'>/mnt/user/system/custom_ovmf/Macinabox_CODE-pure-efi.fd</loader>\
    <nvram>/etc/libvirt/qemu/nvram/d401e640-fd71-4e48-bf57-d03a43a02854_VARS-pure-efi.fd</nvram>\
  </os>\
  <features>\
    <acpi/>\
    <apic/>\
  </features>\
  <cpu mode='host-passthrough' check='none' migratable='on'>\
    <topology sockets='1' dies='1' cores='4' threads='2'/>\
    <cache mode='passthrough'/>\
  </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/user/domains/Macinabox BigSur/BigSur-opencore.img'/>\
      <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/isos/BigSur-install.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/Macinabox BigSur/macos_disk.img'/>\
      <target dev='hde' bus='virtio'/>\
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>\
    </disk>\
    <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='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='0x02' slot='0x00' function='0x0'/>\
    </controller>\
    <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>\
    <interface type='bridge'>\
      <mac address='52:54:00:f3:7c:d7'/>\
      <source bridge='br0'/>\
      <model type='virtio'/>\
      <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'/>\
    <hostdev mode='subsystem' type='pci' managed='yes'>\
      <driver name='vfio'/>\
      <source>\
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>\
      </source>\
      <rom file='/mnt/disk1/vbios/MSI.GT710.rom'/>\
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>\
    </hostdev>\
    <hostdev mode='subsystem' type='pci' managed='yes'>\
      <driver name='vfio'/>\
      <source>\
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>\
      </source>\
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>\
    </hostdev>\
    <memballoon model='none'/>\
  </devices>\
  <qemu:commandline>\
    <qemu:arg value='-usb'/>\
    <qemu:arg value='-device'/>\
    <qemu:arg value='usb-kbd,bus=usb-bus.0'/>\
    <qemu:arg value='-device'/>\
    <qemu:arg value='************************'/>\
    <qemu:arg value='-smbios'/>\
    <qemu:arg value='type=2'/>\
    <qemu:arg value='-cpu'/>\
    <qemu:arg value='Penryn,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+fma4,+bmi1,+bmi2,+xsave,+xsaveopt,+rdrand,check'/>\
  </qemu:commandline>\
</domain>\
}

 

it xml with mouse and keyboard

Spoiler
<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>Macinabox BigSur</name>
  <uuid>d401e640-fd71-4e48-bf57-d03a43a02854</uuid>
  <description>MacOS Big Sur</description>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="default.png" os="osx"/>
  </metadata>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='0'/>
    <vcpupin vcpu='1' cpuset='8'/>
    <vcpupin vcpu='2' cpuset='1'/>
    <vcpupin vcpu='3' cpuset='9'/>
    <vcpupin vcpu='4' cpuset='2'/>
    <vcpupin vcpu='5' cpuset='10'/>
    <vcpupin vcpu='6' cpuset='3'/>
    <vcpupin vcpu='7' cpuset='11'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-q35-4.2'>hvm</type>
    <loader readonly='yes' type='pflash'>/mnt/user/system/custom_ovmf/Macinabox_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/d401e640-fd71-4e48-bf57-d03a43a02854_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'>
    <topology sockets='1' dies='1' cores='4' threads='2'/>
    <cache mode='passthrough'/>
  </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/user/domains/Macinabox BigSur/BigSur-opencore.img'/>
      <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/isos/BigSur-install.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/Macinabox BigSur/macos_disk.img'/>
      <target dev='hde' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </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' multifunction='on'/>
    </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='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x9'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0xa'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </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='0x8'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:f3:7c:d7'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <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'/>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
      </source>
      <rom file='/mnt/disk1/vbios/MSI.GT710.rom'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x0749'/>
        <product id='0x1000'/>
      </source>
      <address type='usb' bus='0' port='2'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x2188'/>
        <product id='0x0ae1'/>
      </source>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
  <qemu:commandline>
    <qemu:arg value='-usb'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd,bus=usb-bus.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='************************'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+fma4,+bmi1,+bmi2,+xsave,+xsaveopt,+rdrand,check'/>
  </qemu:commandline>
</domain>

 

 

Edited by Exlife
Link to comment
14 minutes ago, Exlife said:

Hello. Can you help me passthrough USB mouse and keyboard ?

All fine work's with  passthrought videocard rx 570. But when i passthrought usb mouse or keyboard i see black screen

It xml without mouse and keyboard

  Hide contents
{\rtf1\ansi\ansicpg1252\cocoartf1504\cocoasubrtf840
{\fonttbl\f0\fnil\fcharset0 AppleSystemUIFont;}
{\colortbl;\red255\green255\blue255;\red53\green53\blue53;}
{\*\expandedcolortbl;;\cssrgb\c27059\c27059\c27059;}
\deftab560
\pard\pardeftab560\slleading20\pardirnatural\partightenfactor0

\f0\fs24 \cf2 <?xml version='1.0' encoding='UTF-8'?>\
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>\
  <name>Macinabox BigSur</name>\
  <uuid>d401e640-fd71-4e48-bf57-d03a43a02854</uuid>\
  <description>MacOS Big Sur</description>\
  <metadata>\
    <vmtemplate xmlns="unraid" name="Windows 10" icon="default.png" os="osx"/>\
  </metadata>\
  <memory unit='KiB'>8388608</memory>\
  <currentMemory unit='KiB'>8388608</currentMemory>\
  <memoryBacking>\
    <nosharepages/>\
  </memoryBacking>\
  <vcpu placement='static'>8</vcpu>\
  <cputune>\
    <vcpupin vcpu='0' cpuset='0'/>\
    <vcpupin vcpu='1' cpuset='8'/>\
    <vcpupin vcpu='2' cpuset='1'/>\
    <vcpupin vcpu='3' cpuset='9'/>\
    <vcpupin vcpu='4' cpuset='2'/>\
    <vcpupin vcpu='5' cpuset='10'/>\
    <vcpupin vcpu='6' cpuset='3'/>\
    <vcpupin vcpu='7' cpuset='11'/>\
  </cputune>\
  <os>\
    <type arch='x86_64' machine='pc-q35-4.2'>hvm</type>\
    <loader readonly='yes' type='pflash'>/mnt/user/system/custom_ovmf/Macinabox_CODE-pure-efi.fd</loader>\
    <nvram>/etc/libvirt/qemu/nvram/d401e640-fd71-4e48-bf57-d03a43a02854_VARS-pure-efi.fd</nvram>\
  </os>\
  <features>\
    <acpi/>\
    <apic/>\
  </features>\
  <cpu mode='host-passthrough' check='none' migratable='on'>\
    <topology sockets='1' dies='1' cores='4' threads='2'/>\
    <cache mode='passthrough'/>\
  </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/user/domains/Macinabox BigSur/BigSur-opencore.img'/>\
      <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/isos/BigSur-install.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/Macinabox BigSur/macos_disk.img'/>\
      <target dev='hde' bus='virtio'/>\
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>\
    </disk>\
    <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='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='0x02' slot='0x00' function='0x0'/>\
    </controller>\
    <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>\
    <interface type='bridge'>\
      <mac address='52:54:00:f3:7c:d7'/>\
      <source bridge='br0'/>\
      <model type='virtio'/>\
      <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'/>\
    <hostdev mode='subsystem' type='pci' managed='yes'>\
      <driver name='vfio'/>\
      <source>\
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>\
      </source>\
      <rom file='/mnt/disk1/vbios/MSI.GT710.rom'/>\
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>\
    </hostdev>\
    <hostdev mode='subsystem' type='pci' managed='yes'>\
      <driver name='vfio'/>\
      <source>\
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>\
      </source>\
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>\
    </hostdev>\
    <memballoon model='none'/>\
  </devices>\
  <qemu:commandline>\
    <qemu:arg value='-usb'/>\
    <qemu:arg value='-device'/>\
    <qemu:arg value='usb-kbd,bus=usb-bus.0'/>\
    <qemu:arg value='-device'/>\
    <qemu:arg value='************************'/>\
    <qemu:arg value='-smbios'/>\
    <qemu:arg value='type=2'/>\
    <qemu:arg value='-cpu'/>\
    <qemu:arg value='Penryn,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+fma4,+bmi1,+bmi2,+xsave,+xsaveopt,+rdrand,check'/>\
  </qemu:commandline>\
</domain>\
}

 

it xml with mouse and keyboard

  Hide contents
<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>Macinabox BigSur</name>
  <uuid>d401e640-fd71-4e48-bf57-d03a43a02854</uuid>
  <description>MacOS Big Sur</description>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="default.png" os="osx"/>
  </metadata>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='0'/>
    <vcpupin vcpu='1' cpuset='8'/>
    <vcpupin vcpu='2' cpuset='1'/>
    <vcpupin vcpu='3' cpuset='9'/>
    <vcpupin vcpu='4' cpuset='2'/>
    <vcpupin vcpu='5' cpuset='10'/>
    <vcpupin vcpu='6' cpuset='3'/>
    <vcpupin vcpu='7' cpuset='11'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-q35-4.2'>hvm</type>
    <loader readonly='yes' type='pflash'>/mnt/user/system/custom_ovmf/Macinabox_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/d401e640-fd71-4e48-bf57-d03a43a02854_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'>
    <topology sockets='1' dies='1' cores='4' threads='2'/>
    <cache mode='passthrough'/>
  </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/user/domains/Macinabox BigSur/BigSur-opencore.img'/>
      <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/isos/BigSur-install.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/Macinabox BigSur/macos_disk.img'/>
      <target dev='hde' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </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' multifunction='on'/>
    </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='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x9'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0xa'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </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='0x8'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:f3:7c:d7'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <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'/>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
      </source>
      <rom file='/mnt/disk1/vbios/MSI.GT710.rom'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x0749'/>
        <product id='0x1000'/>
      </source>
      <address type='usb' bus='0' port='2'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x2188'/>
        <product id='0x0ae1'/>
      </source>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
  <qemu:commandline>
    <qemu:arg value='-usb'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd,bus=usb-bus.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='************************'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Penryn,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+fma4,+bmi1,+bmi2,+xsave,+xsaveopt,+rdrand,check'/>
  </qemu:commandline>
</domain>

 

 

Did you have to do anything special to get the passthrought videocard rx 570 working ? I am blocked with the pro wx 5100z

 

Link to comment
19 hours ago, cat2devnull said:

So I don't use Macinabox but it seems that the custom ovmf file is missing off your drive. I can't tell you if it is just that it never copied or has ended up in a different location.
You could just see if it is somewhere under your appdata/Macinabox folder or just download it.

https://github.com/SpaceinvaderOne/Macinabox/tree/master/ovmf

The location specified in the VM configuration has to match the location it is stored on your drive and you should be good to go.

Hi Thank you for the info I will see if it downloaded and then let you. Know how it goes 

Link to comment
11 minutes ago, Exlife said:

I do all recommendation cat2devnull 

Well, thanks to your post I re-started the process. But this time I did not activate any USB and just the GPU. In fact,  now the GPU works and I can see the boot menu to select the disk but as I don’t have keyboard or mouse I can not move forward.  If I try to add either the USB or a USB pcie card, then I just get the black screen.   

 

I will keep you posted if I find the reason.

Link to comment
12 hours ago, ttuuxxeerr said:

Did you have to do anything special to get the passthrought videocard rx 570 working ? I am blocked with the pro wx 5100z

 

Save you needing to dig back a few pages, I've covered some of the tips/tricks for getting video card pass through working here; https://forums.unraid.net/topic/84601-support-spaceinvaderone-macinabox/?do=findComment&comment=1094263

 

Link to comment
3 minutes ago, cat2devnull said:

Save you needing to dig back a few pages, I've covered some of the tips/tricks for getting video card pass through working here; https://forums.unraid.net/topic/84601-support-spaceinvaderone-macinabox/?do=findComment&comment=1094263

 

Thanks, in fact I did.   Great post btw.

 

But my issue was that I was activating the GPU and the Keyboard/mouse USB at the same time.  Now I retried just with the GPU and it works fine. But I don’t know why a normal usb  keyboard blocks the boot

Link to comment
Just now, ttuuxxeerr said:

Thanks, in fact I did.   Great post btw.

 

But my issue was that I was activating the GPU and the Keyboard/mouse USB at the same time.  Now I retried just with the GPU and it works fine. But I don’t know why a normal usb  keyboard blocks the boot

You should be able to pass through a PCIe USB card pretty easily as long as you stub the card and assign it to the VM. My actual config is included below.375470274_ScreenShot2022-02-28at6_13_38pm.png.f649ffe54b7e7c83b46ed4fb30bde514.png

    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x0b' slot='0x00' function='0x0'/>
      </source>
      <alias name='FL1100 USB Card'/>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
    </hostdev>
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.