Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] SpaceinvaderOne - Macinabox

Featured Replies

This was unexpected. Upgrade from Sonoma...
image.png.7be109df187e2fa258db49d4d6d2f5b3.png

I assume running macinabox again would break this if I made a change, like allocating more memory?

  • Replies 3.4k
  • Views 796k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • SpaceInvaderOne
    SpaceInvaderOne

    23 Sept 2024   Basic usage instructions.   Overview   Macinabox is now self-contained and no longer requires any helper scripts. It is designed to send notifications thro

  • SpaceInvaderOne
    SpaceInvaderOne

    Finally the new Macinabox is ready. Sorry for the delay work has been a F******G B*****D lately taking all my time.   So It also has a new template so please make sure to make sure your temp

  • SpaceInvaderOne
    SpaceInvaderOne

    New Macinabox almost complete. Should be out soon. Hoping for the end of next week or shortly there after Will have a few new features such as Ventura and Sonoma support Also the companion User Sc

Posted Images

On 10/13/2024 at 8:42 AM, HomerJ said:

Just a quick question. 

 

Here is a screenshot of my XML detailing the GPU. 

 

 

 

Would someone be able to check it and confirm that it's correct and that there are no errors which would stop video and audio from being passthroughed?

 

I followed a post a few pages back to check it and make changes, but it looked to me that no changes were required, which might be related to the fact that I'm running the latest unRAID beta. 

 

Thanks heaps!!

Yer im still not getting passthrough to work with space invaders macinabox I use my own install, its something with his scripts im not sure as i havent been through what his done. If you want to do it right check out kholia/OSX-KVM. I built mine in linux ubuntu folowing his guide then moved the whole folder over made my own xml well using a generic linux install in unraid with edits to the folder it works 100% Space invader works on alot of projects so it may take some time before he gets macinabox fully fixed. 

I use macinabox only under vnc veiw for making usb pen drive installs for hackintosh's. I treid to even passthrough my usb controller and no dice. If i get time ill go through his work and see whats going on but im not up to his skill level in scripting.

Anyone able to passthrough a USB device? I'm on sonoma.

4 minutes ago, jayndoodle said:

Anyone able to passthrough a USB device? I'm on sonoma.


not on unraid do to other libs and secondary stuff.

I could pass the device get apple to see it but had issues with kext drivers and getting the apple os to use them..

on debain/proxmox yes, but htis required editing the nvram and other settings...

https://github.com/yoonsikp/macOS-KVM-PCI-Passthrough

MY macinabox worked fine under installation and over the virtio graphics but now it will not boot with the 5700xt passthrough, i have used this card before in an opencore build. any help is welcome. My XML is as follows,

 

<?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>(REDACTED)</uuid>
  <description>MacOS Big Sur</description>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="BigSur.png" os="osx"/>
  </metadata>
  <memory unit='KiB'>104333312</memory>
  <currentMemory unit='KiB'>104333312</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>44</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='6'/>
    <vcpupin vcpu='1' cpuset='34'/>
    <vcpupin vcpu='2' cpuset='7'/>
    <vcpupin vcpu='3' cpuset='35'/>
    <vcpupin vcpu='4' cpuset='8'/>
    <vcpupin vcpu='5' cpuset='36'/>
    <vcpupin vcpu='6' cpuset='9'/>
    <vcpupin vcpu='7' cpuset='37'/>
    <vcpupin vcpu='8' cpuset='10'/>
    <vcpupin vcpu='9' cpuset='38'/>
    <vcpupin vcpu='10' cpuset='11'/>
    <vcpupin vcpu='11' cpuset='39'/>
    <vcpupin vcpu='12' cpuset='12'/>
    <vcpupin vcpu='13' cpuset='40'/>
    <vcpupin vcpu='14' cpuset='13'/>
    <vcpupin vcpu='15' cpuset='41'/>
    <vcpupin vcpu='16' cpuset='14'/>
    <vcpupin vcpu='17' cpuset='42'/>
    <vcpupin vcpu='18' cpuset='15'/>
    <vcpupin vcpu='19' cpuset='43'/>
    <vcpupin vcpu='20' cpuset='16'/>
    <vcpupin vcpu='21' cpuset='44'/>
    <vcpupin vcpu='22' cpuset='17'/>
    <vcpupin vcpu='23' cpuset='45'/>
    <vcpupin vcpu='24' cpuset='18'/>
    <vcpupin vcpu='25' cpuset='46'/>
    <vcpupin vcpu='26' cpuset='19'/>
    <vcpupin vcpu='27' cpuset='47'/>
    <vcpupin vcpu='28' cpuset='20'/>
    <vcpupin vcpu='29' cpuset='48'/>
    <vcpupin vcpu='30' cpuset='21'/>
    <vcpupin vcpu='31' cpuset='49'/>
    <vcpupin vcpu='32' cpuset='22'/>
    <vcpupin vcpu='33' cpuset='50'/>
    <vcpupin vcpu='34' cpuset='23'/>
    <vcpupin vcpu='35' cpuset='51'/>
    <vcpupin vcpu='36' cpuset='24'/>
    <vcpupin vcpu='37' cpuset='52'/>
    <vcpupin vcpu='38' cpuset='25'/>
    <vcpupin vcpu='39' cpuset='53'/>
    <vcpupin vcpu='40' cpuset='26'/>
    <vcpupin vcpu='41' cpuset='54'/>
    <vcpupin vcpu='42' cpuset='27'/>
    <vcpupin vcpu='43' cpuset='55'/>
  </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/65fe3ad3-db17-467e-9101-102acd560273_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'/>
  <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/vdisk3.img'/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='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='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:c7:99:61'/>
      <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'/>
    <audio id='1' type='none'/>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x07' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x1b1c'/>
        <product id='0x1b2e'/>
      </source>
      <address type='usb' bus='0' port='2'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x1b1c'/>
        <product id='0x1b3b'/>
      </source>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x1b1c'/>
        <product id='0x1b2d'/>
      </source>
      <address type='usb' bus='0' port='4'/>
    </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 MasterChiefC

  • 2 weeks later...

On 6.12.13: Chosing to install Sonoma and everything seems to work fine until I get to the Recovery screen. But instead of a Sonoma install option I get a Sequoia option. Tried installing that and it doesn't work as apparently is a known limitation. So how does one install Sonoma as it seems whatever base image the Macinabox docker pulls down for Sonoma is really Sequoia?

 

@SpaceInvaderOne Can you verify this issue? I expect at the time you created the new docker your Sonoma option just requested the latest MacOS - which was Sonoma a the time - but now it pulls a Sequoia install image as it is 'latest'. Can you fix to download Sonoma install or update the Docker to support Sequoia outright?

  • Author

Hi, just pushed a fix and now macinbox supports Sequoia correctly. As well the the previous versions. 
 

seems like some people already mentioned this, but i wanna share my problem of this new macinabox gpu passthrough.

i can boot without any problem with qxl. but if i tried to passthrough my gpu, it stops at apple logo screen with 0% of progress.

i tested it on sonoma(but it was sequoia actually), ventura(after latest sequoia fix)

unraid version is beta 4. my gpu is RX580.

its not a problem vbios, rx580 can show display output regardless using vbios or not at the boot driver selection

Could anyone point me to current resources detailing how to get iMessage working? When I set up my Big Sur VM using macinabox many moons ago I got locked out of my apple account after signing in to apple services on the VM. Had to call Apple to unlock. I then used this guide to get iMessage working. I've got a Sonoma VM running now using this updated version of macinabox.

 

Is this method still applicable?

On 11/6/2024 at 2:21 PM, SpaceInvaderOne said:

Hi, just pushed a fix and now macinbox supports Sequoia correctly. As well the the previous versions. 
 

@SpaceInvaderOne This is outstanding - as always - very nice job, Ed!

 

Got Sequoia up and running. Passing through my RX6600 GPU works as well.

I am running into an issue, though, when trying to log into my Apple Account. It always returns an error saying "Verification Failed - an unknown error occurred". I checked my Serial# and my MAC-address to be compliant.

 

Have you seen this too?

 

Thanks again for your marvelous work.

Chris

 

7 hours ago, Edchris said:

@SpaceInvaderOne This is outstanding - as always - very nice job, Ed!

 

Got Sequoia up and running. Passing through my RX6600 GPU works as well.

I am running into an issue, though, when trying to log into my Apple Account. It always returns an error saying "Verification Failed - an unknown error occurred". I checked my Serial# and my MAC-address to be compliant.

 

Have you seen this too?

 

Thanks again for your marvelous work.

Chris

 

I just got Sequoia installed and am having the same issue: can't log into my Apple Account and get the same error. I'm really trying to get a working Mac VM using Macinbox but here is what I am running into. Hoping others can help as I'd like to use this VM for Backblaze backup. Appreciate @SpaceInvaderOne doing the work to make this possible but here is what I am wanting:

 

- Need to be able to log into my Apple Account with full iCloud functionality.

- Networking within the VM appears to not be using my LAN. I have ethernet connection shown but the router and IP addresses on a totally different subnet (192.X.X.X) when my LAN is on a 10.0.1.1 subnet. I tried to change the ethernet settings in the VM but no luck. So how do I get this new VM on my home network?

 

My needs are basic here. Ultimately I want to pass through an external USB 3.1 HD and wondering if that is possible with this VM.

 

Any advice?

 

Thanks,

-Michael

On 9/25/2024 at 5:35 PM, jdbriant said:

Can anyone help with USB passthrough. I'm trying to passthrough an iPhone but the MacOS VM is not recognizing it. Unraid sees it and I have configured the device for passthrough, but nothing inside the VM. Works for Windows easily.  Is there a trick to passing through to Mac? I've tried on BigSur and Sonoma.  Also I know you're going to say get a USB card but I'm on an itx board so it's either GPU or USB.

Thanks for this brilliant work Spaceinvader One! I can boot into Sequoia no problem.

 

But I have a similar issue. I'd like to connect my iphone to start backing up to my server, but it's not recognized in the VM. My MSI B550 Tomahawk motherboard has 2 USB controllers, and despite using the hostdev tag to pass the entire controller to the VM and trying macinabox's built in USB 2.0 and 3.0 controllers, nothing. The phone doesn't even begin charging unless i attach it to a port in the other group that's not being passed through to the VM. I have not tried a USB card, which might be my next step, unless someone has any other ideas?

 

Thanks again.

On 11/13/2024 at 1:10 PM, Edchris said:

@SpaceInvaderOne This is outstanding - as always - very nice job, Ed!

 

Got Sequoia up and running. Passing through my RX6600 GPU works as well.

I am running into an issue, though, when trying to log into my Apple Account. It always returns an error saying "Verification Failed - an unknown error occurred". I checked my Serial# and my MAC-address to be compliant.

 

Have you seen this too?

 

Thanks again for your marvelous work.

Chris

 

I have the same issue. I haven't tried a previous OS to see if I can connect to my Apple Account, but Sequoia definitely is showing, "Verification failed - an unknown error occurred" whenever I try to login to iCloud or my Apple account. I have ensured my time is correct and have tried a couple different NIC options, but the XML always defaults back to virtio-net.

@SpaceInvaderOne Super appreciate your efforts here but I'm starting to give up on this. My previous post shared the core issues I'm having with Sequoia, i.e. not being able to log in for my Apple Account. Ultimately wanting to pass thru a dedicated USB 4 device but if I can't even get to my Apple Account then the whole effort is kind of pointless. Can any one provide any guidance on how they got beyond this issue? Clean install of Sequoia using Macinbox. So nothing fancy.

I gave up on a clean Sequoia image, too, so today I installed Sonoma and confirmed that I could login to my Apple account. All was good. I just attempted to upgrade that Sonoma VM to Sequoia and immediately upon starting the new OS, it fails connecting to my Apple account. There is something about Sequoia that's preventing these VMs from connecting with valid credentials.

7 hours ago, slatan said:

I gave up on a clean Sequoia image, too, so today I installed Sonoma and confirmed that I could login to my Apple account. All was good. I just attempted to upgrade that Sonoma VM to Sequoia and immediately upon starting the new OS, it fails connecting to my Apple account. There is something about Sequoia that's preventing these VMs from connecting with valid credentials.

Did you do something except the plain installation to get your apple account working on the vm? I have the ventura VM but it locks my apple account each time i try to login which forces me to unlock my account and change my password...

I am able to install BigSur with the latest docker image. I’m sure I installed Monterey before as I just deleted that disk to start fresh again but when trying any OS newer than BigSur I am unable to boot to the recovery as just get the generic your mac has ran into a problem error and to restart.  

2 hours ago, RezzZ said:

Did you do something except the plain installation to get your apple account working on the vm? I have the ventura VM but it locks my apple account each time i try to login which forces me to unlock my account and change my password...

I didn't do anything fancy - picked Sonoma in the Macinabox container, pretty much everything else was vanilla. I bumped up CPUs to 8 and RAM to 16 in the MacOS VM. No problems with Sonoma, it let me login to my Apple account on launch. On another note. Before my attempt to upgrade Sonoma, I took a snapshot of the VM hoping to revert it in case of failure. After the failure, I reverted to the snapshot, but my VM is not getting past about 40% on the startup progress bar. Looks like I'm starting over.

I haven't updated unraid for a long time. Now I decided to update Unraid and Mackinbox. I have problems with passthrough gpu. I use BigSur with GT 710. If i set qemu 7.2 my GT 710 don't passthrough. If i set qemu 6.0 or lower then all good. I edit xml. If i edit form view then start docker macinbox then my VM BigSur use 7.2 qemu.

 

upd. i updated to 7.0 beta 4. test 8 and 9 qem. still can't passthrough.

5.2 perfect passthrough for me. Why ?

Edited by Exlife

On 11/25/2024 at 6:51 PM, Exlife said:

I haven't updated unraid for a long time. Now I decided to update Unraid and Mackinbox. I have problems with passthrough gpu. I use BigSur with GT 710. If i set qemu 7.2 my GT 710 don't passthrough. If i set qemu 6.0 or lower then all good. I edit xml. If i edit form view then start docker macinbox then my VM BigSur use 7.2 qemu.

 

upd. i updated to 7.0 beta 4. test 8 and 9 qem. still can't passthrough.

5.2 perfect passthrough for me. Why ?

 

can you see apple logo after passthrough gpu in monitor?

On 12/3/2024 at 7:52 AM, notepads said:

 

can you see apple logo after passthrough gpu in monitor?

Yes. VM loads fine. But graphics card not defined in the system. With qemu 6.0 graphics card show informations what it GT 710. If I choose higher it show "unknown video card"

Edited by Exlife

Hi there,

 

Passthrough question: 

 

I have managed to install and bring Ventura to work. without passthrough. Anything works fine.

After that I updated Open Core to the newest version and set the bootarg agdpmod=pikera

I have a Radeon 6900Xt 

When set  passtrough my Radeon, I come to the start screen, can select HD and right after that the Apple Logo appears... but then system stucks.

 

Anyone a hint what to do?

 

 

Hi guys i need help im stuck on apple logo when i start the vm i followed video dont know what to do any help ? thx

On 12/8/2024 at 12:25 PM, mikep70 said:

Hi there,

 

Passthrough question: 

 

I have managed to install and bring Ventura to work. without passthrough. Anything works fine.

After that I updated Open Core to the newest version and set the bootarg agdpmod=pikera

I have a Radeon 6900Xt 

When set  passtrough my Radeon, I come to the start screen, can select HD and right after that the Apple Logo appears... but then system stucks.

 

Anyone a hint what to do?

 

 

I myself have had difficulties for months using macinabox with a graphics card after a motherboard change.
I even recently updated to the latest Unraid version, although it's a beta, but without success.
Apparently, the issue lies with the selected QEMU version. With all the new versions, despite correct IDs and multifunction=1 for the graphics card, I was never able to boot the VM successfully with the graphics card.
The VM would get stuck at the Apple logo.

In the meantime, I also had trouble passing through a dedicated USB-PCI card correctly.
Over VNC, there were never any issues.

I am using a 6800XT and not a 6900 like you (here, the card may need to be spoofed).
What works for me now is QEMU version 6.0; unfortunately, anything above that doesn’t work and causes the VM to hang at the Apple logo again.

Maybe this helps someone.


Can someone explain why it works with QEMU v6.0 and why other QEMU versions cause this issue?
I’m just glad to have GPU passthrough working again under Unraid and macOS, and I’m happy, but I'm still curious about the root cause.
Of course, I have updated OpenCore. I was about to give up since this issue has been frustrating me for months, and without graphics acceleration, macOS wasn’t really usable for my purposes.

Hi,


i will Install MACOS Sonama!

I can install the MacOs when i Start after install the Disk is only the Apple Icon showing on VNC and 1 CPU  is going to 100% the other CPU is 0%.
I have wait over 1 Hour no actions

Have ours ideas for mee?

Thanks

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.