[Support] SpaceinvaderOne - Macinabox


Recommended Posts

2 hours ago, matthew429041 said:

has anyone got imessage and the appstore working? they keep coming up can not connect to apple servers for me

You have to edit the XML and change the network adapter type from 'vmxnet3' to 'e1000-82545em'.
It should look like this:
 

<interface type='bridge'>
    <mac address='53:44:00:57:30:d4'/>
    <source bridge='br0'/>
    <model type='e1000-82545em'/>
</interface>

 

Use 'vmxnet3' for performance or 'e1000-82545em' for compatibility with Apple services.

  • Thanks 1
Link to comment
38 minutes ago, ICDeadPpl said:

You have to edit the XML and change the network adapter type from 'vmxnet3' to 'e1000-82545em'.
It should look like this:

Use 'vmxnet3' for performance or 'e1000-82545em' for compatibility with Apple services.

You will also have to correctly set ROM,MLB and SMBIOS I also had to Custom UUID Inject iD and ExposeSysVariables to get it working finally and its all perfect now. This script from another forum works well to see if anything is missing or wrong

iMessageDebug

Edited by tpruszin
add debug script
Link to comment
10 hours ago, matthew429041 said:

i was wondering if i can do updates and upgrade to macos catalina? 

To be honest, I wouldn't bother trying to upgrade from, say Mojave to Catalina. I'd just create a new clean Catalina VM and transfer my applications to it. FWIW I was able to apply the latest security update to High Sierra. I was dubious that it would work since on my real Macs it involved an update to the firmware too so I took a backup of my vdisk first.

Link to comment

Ok so mostly smooth so far but I don't keep my VMs in /mnt/user/domains so i had to do some tweaking.

I'm sure I've mucked something up now in the works but cannot figure it out.

 

Anyone care to take a look?

 

This is where it gets stuck now...

 

image.png.7ca378844c056572a788bdd5b66033e4.png

 

And 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>MacOS Catalina</name>
  <uuid>427e2dee-2768-4ceb-90d7-29da86721f8d</uuid>
  <description>MacOS Catalina</description>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="/mnt/user/vms/MacOS Catalina/icon/catalina.png" os="Catalina"/>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='14'/>
    <vcpupin vcpu='1' cpuset='30'/>
    <vcpupin vcpu='2' cpuset='15'/>
    <vcpupin vcpu='3' cpuset='31'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-q35-3.1'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/427e2dee-2768-4ceb-90d7-29da86721f8d_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none'/>
  <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/vms/MacOS Catalina/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/vms/MacOS Catalina/Catalina-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/vms/MacOS Catalina/macos_disk.img'/>
      <target dev='hde' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='4'/>
    </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='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>
    <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:29:4e:b9'/>
      <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-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,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check'/>
  </qemu:commandline>
</domain>

 

Link to comment
34 minutes ago, CorneliousJD said:

This is where it gets stuck now...

Is that the first reboot after the installation or have you got past the point where you choose your language, region and set up a user account? If the latter then what customisation have you done to the EFI partition? It might be worth waiting for SpaceInvaderOne to upload his tutorial before proceeding.

Link to comment

@CorneliousJD you need to make sure the ovmf files path match the file path that's on your server. The container uses a specific version of ovmf files to work. Look in the folder where the Mac vdisk are contained.

 

 

type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader> <nvram>/etc/libvirt/qemu/nvram/427e2dee-2768-4ceb-90d7-29da86721f8d_VARS-pure-efi.fd</nvram>

 

These lines should have a different path.

Link to comment

Has anyone figured out how to get around the "can't use Cache Control on a virtual Mac" issue? The icon in Sharing is greyed out (in Mojave and Catalina at least), and this seems to be a known issue with virtualized Macs. Wondering if this is something that has an answer?

Link to comment

Good afternoon all,

I have been trying to use this container for the past day or two and I consistently get the same thing in the log file. Any idea what I need to do to remedy the situation?

 


"I am going to download the Catalina recovery media. Please be patient!
.
.
Collecting requests (from -r requirements.txt (line 1))
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x154369bf8ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/requests/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x154369bf8dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/requests/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x154369bf8a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/requests/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x154369bf8c10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/requests/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x154369bf84d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/requests/
Could not find a version that satisfies the requirement requests (from -r requirements.txt (line 1)) (from versions: )
No matching distribution found for requests (from -r requirements.txt (line 1))
Traceback (most recent call last):
File "fetch-macos.py", line 9, in <module>
import click
ImportError: No module named click"

Link to comment

Great guide! Although I am having difficulties booting up from Clover. While everything else seems to be working just fine, I am facing this issue when pressing "Enter" in the Clover menu. After pressing the "Enter"-button, the screen turns black. I've then tried different approaches, which didn't solve the issue.

 

I've commented the same scenario in the YouTube comment section, and others are experiencing the same issue.

 

Is it possible that anyone has a clue to what I could've done wrong, or what I could try out? I am new in the unraid world, so excuse me in advance for being kind of a noob. 

Link to comment
1 hour ago, david279 said:

@CorneliousJD you need to make sure the ovmf files path match the file path that's on your server. The container uses a specific version of ovmf files to work. Look in the folder where the Mac vdisk are contained.

 

 

type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader> <nvram>/etc/libvirt/qemu/nvram/427e2dee-2768-4ceb-90d7-29da86721f8d_VARS-pure-efi.fd</nvram>

 

These lines should have a different path.

Ah whoops, that must have gotten overwritten somehow when I was tweaking stuff via the GUI, good catch! Updated and it seems to be displaying better but still getting stuck here:

 

image.png.9c2013766ffa5c720422cadcc2abeb29.png

Edited by CorneliousJD
  • Like 1
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.