Jump to content
Leoyzen

** Hackintosh ** Tips to make a bare metal MacOS

669 posts in this topic Last Reply

Recommended Posts

Big Sur beta 10 (20A5395g)

 

issue with textedit: some crashes when opening existing txt files (with beta 1 was several crashes) Still some issues with the search functionality; crazy scroll when opening files with many lines, cannot scroll the txt till the bottom

- preference panel icons of third party applications: not working well if a user try to install the pane in /System, icons disappear if prepane installed in /System/Library (probably it will not be fixed since you can't install in /System with a sealed system)

system preferences --> network: it takes long time to load the network panel

- during Mac OS boot there are several messages like "IOKit Daemon (kernelmanagerd) stall[0], (60s): 'ISA'" and boot takes like 4-5 minutes (same messages happen during installation with 240s stall time); Solved: if you have AppleLPCInjector kext disable it, or use device/vendor id pci8086,2916 for AppleLPC 

control center: somehow slow when clicking on the control center icon

- Clicking on top clock menu bar opens the widget (not sure but shouldn't it open clock settings?)

AM/PM clock not working (not shown in menu bar); Clock settings are now moved to languages and zones and dock & menu bar: if you want to use am/pm with 12 hours make sure to untick 24 hours in Language and regions and in dock and menu bar and check show am/pm in dock and menu bar

Languages: some strings are only in English

System preference panel not working well: some settings shows as greyed out but can be enabled, some graphical glitches

Opencore shows in bootpicker "Preboot" instead of the Mac OS volume name (Scanpolicy=0, no Mac OS volume name is shown): can be fixed manually by creating a file named .disk_label.contentDetails with the content of your disk label (for ex: MacOSBigSur) in /System/Volumes/Preboot/UUID/System/Library/CoreServices (replace UUID with the real UUID); seems fixed in beta 9 (?); anyway latest master version of opencore will rename Preboot to Macintosh-HD

Cannot mount / for read/write anymore with SIP disabled: sudo mount -uw / (not an issue related to Mac OS since it's supposed to work as it is, the seal must be broken to be able to write into /); with SecureBootModel=Default macos boots from / instead of a snapshot so it's possible to mount / in read/write; SecureBootModel=Disabled boots from the snapshot; not sure, but it could be an apple bug

Cannot connect to SMB (workaround load manually kext with "sudo kextload /System/Library/Extensions/smbfs.kext"); Still bugged in beta 9, can connect to smb shares but kernel panics during file transfers; still issues with beta 10, a lot slower than Catalina, cannot transfer "large files" (error -8084)

- Some java applications don't work, not sure what is the culprit: found the culprit, it's NSMenuFX searching for ic08; in big sur /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns has only four icons inside, Catalina has 10; as a workaround you can directly hex patch the java app, the MenuToolkit.class file (in my app is in jar-->de/codecentric/centerdevice/MenuToolkit.class); search for ic08 and patch with ic09. Several java apps could be affected.

- Some old applications packed with upx will not run, giving error about permissions (?): you may have some luck by installing homebrew+upx and decompress them with upx -d

- Full screen microsoft office apps not working when switching from full screen to not full screen: fixed in beta 10

 

I had also some issues with accessing recovery: after the apple logo+progress bar --> grey screen

I found out that deleting in opencore config.plist the prev-lang:kbd key makes recovery accessible again; a language selector will be displayed, but if I choose italian all hangs again, english works.

Also choosing italian the keyboard layout in upper right corner in recovery, with prev-lang:kbd empty, has some wrong keys...smells like another apple bug.

 

Compared to beta 9, it's not possible to boot with SecureBootModel=Default to boot from the live fs: now macos returns kernel panic, not allowed to boot from live fs. SecureBootModel must be Disabled.

Update 25/10/20: issue opened --> https://github.com/acidanthera/bugtracker/issues/1235

Edited by ghost82

Share this post


Link to post

Important: to all of you who downloaded OVMF files from my posts

 

I'm very sorry for this, OVMF files have unexpected behaviors if compiled with xcode (it seems the culprit is clang 7.0.0) (at least on my system!); they somehow work, you probably didn't notice any issue, me too, unless I detached my second hdmi monitor and I wasn't able to boot anymore (only attaching hdmi made the vm to boot again).

So, if you downloaded OVMF files from me AND you have no tianocore logo at boot that OVMF files are somehow corrupted.

Read more info here, in the bug I opened today:
https://bugzilla.tianocore.org/show_bug.cgi?id=3006

 

So switch back to that provided with unraid or download the attached version (v. 202008 stable compiled from sources): these are compiled by me on kali linux, no corrupted files, and you will notice that the tianocore logo is back (update: tianocore logo shown/not shown is not so important, it's due to xcode not supporting Hii-Binary-Package.UEFI_HII).

 

Moreover, I think all my issues I posted here related to OVMF could be related to this.

 

With the attached v. 202008 I have no problems in Catalina and Big Sur.

 

All previous attachments in the forum relating OVMF are now removed, pointing to this post.

 

Sorry again

 

Update: Newer files here (202011 stable release):

 

edk2-OVMF-202008.zip

Edited by ghost82
  • Like 1
  • Thanks 1

Share this post


Link to post

I'm back now.Changing my work company almost killed me.Finnally get some time to continue the work.

 

Seems my VM brokes somehow, I have to catch up the latest changes and create the VM again, hope there is no more issues...

Share this post


Link to post

Does anyone have problem with 10gb nic card driver? I don't know what happened but kernel panic with my 10g nic and SmallTree8259x.kext(3.8.6) drivers, I can't find any information about it.

Share this post


Link to post
5 hours ago, Leoyzen said:

Does anyone have problem with 10gb nic card driver? I don't know what happened but kernel panic with my 10g nic and SmallTree8259x.kext(3.8.6) drivers, I can't find any information about it.

What brand? If Aquantia I think I remember I read something on insanelymac (opencore discussion).

Nevermind...I think you refer to the integrated 10gbe in your X570..: however the chipset should be Aquantia or am I wrong?

If this is the case have a look here:
https://www.insanelymac.com/forum/topic/330614-aquantia-10-gb-ethernet-support-thread-10132-upwards/

 

Maybe one patch will work..

Edited by ghost82

Share this post


Link to post

Opencore latest master now supports ram mapping! And with a lot of functions: form factor, type, ECC/not ECC, registered, unbuffered, etc.

 

RAM.png.f073ce67608cf4d28960a1b61553d2b7.png

Edited by ghost82

Share this post


Link to post
On 10/18/2020 at 5:28 PM, ghost82 said:

Opencore latest master now supports ram mapping! And with a lot of functions: form factor, type, ECC/not ECC, registered, unbuffered, etc.

 

RAM.png.f073ce67608cf4d28960a1b61553d2b7.png

That seem good, will try later

Share this post


Link to post
@glennv sorry to bother you, but just to understand more, do you have more than one network in your vm (virtual or passed through)?
Because if I remember well bus 0 worked well for me (it was built in, without any injection) for only one network, but stopped to be built in after adding more.

Hi@ghost82,

Sorry for the late reply. But bussy lately including finishing a new 14 core skylake x build that replaced one of my main workstations.

Indeed i have multiple networks .. 1 x1GB and 1x10GB both passed through cards.
But you opencore device config trick worked like a charm . The xml only method not and likely as you suggested because of multiple networks. Although i remember having it working in the past when one of the 2 was a virtual network and the other a passes though card. But the virtual was never stable enough so moved to real metal ;-)

Tnx again.

Share this post


Link to post

Did anyone have a Catalina VM run into networking problems recently, specifically upload speed crawling to a halt?  It may have been an automatic update.  Was on e1000-82545em as the network adapter but that somehow broke and I had no net access.  Changed to vmxnet3 and I can connect but have very slow uploads.  Is there a newer/better network adapter to use?

 

edit: Nevermind, it started working again using e1000.

Edited by iaweegian

Share this post


Link to post

After having had a ton of success with physical hackintosh machines over the years, I'm in the process of setting up my first macOS vm in Unraid and am having a hell of a time just getting to the installer. 

 

I've built my XML mostly using Leoyzen's as a base, and am using Ghost82's opencorebasic.qcow2 as posted here. I've gotten OpenCore to boot, but I can't for the life of me get anything to show up as a boot option, including the vdisk that I brought over from a Macinabox download. The only options are resetting the NVRAM and the Openshell.

 

I'm pretty sure that there isn't any issues with the way I'm bringing it in via the XML. Is there something in the EFI folder that I have to modify?

 

I tried building my own from scratch by placing Leoyzen's OpenCore-KVM EFI folder in a newly created qcow2 but never end up being able to get to the OpenCore menu, just at the EFI shell. Here's my XML.

 

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' id='7' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>macOS-Catalina</name>
  <uuid>260d0e19-fde2-c216-874c-3136ee42a2b8</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Linux" icon="linux.png" os="linux"/>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='4'/>
    <vcpupin vcpu='1' cpuset='5'/>
    <vcpupin vcpu='2' cpuset='6'/>
    <vcpupin vcpu='3' cpuset='7'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-4.2'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/260d0e19-fde2-c216-874c-3136ee42a2b8_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='4' threads='1'/>
    <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='qcow2' cache='writeback' io='threads'/>
      <source file='/mnt/user/domains/macOS-Catalina/opencore.qcow2' index='2'/>
      <backingStore/>
      <target dev='hdd' bus='sata'/>
      <boot order='1'/>
      <alias name='sata0-0-4'/>
      <address type='drive' controller='0' bus='0' target='0' unit='4'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback' io='threads'/>
      <source file='/mnt/user/domains/macOS-Catalina/cat_installer.img' index='1'/>
      <backingStore/>
      <target dev='hde' bus='sata'/>
      <alias name='sata0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='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='0xa'/>
      <alias name='pci.3'/>
      <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='0xb'/>
      <alias name='pci.4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x3'/>
    </controller>
    <controller type='pci' index='5' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='5' port='0xc'/>
      <alias name='pci.5'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x4'/>
    </controller>
    <controller type='pci' index='6' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='6' port='0xd'/>
      <alias name='pci.6'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x5'/>
    </controller>
    <controller type='pci' index='7' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='7' port='0xe'/>
      <alias name='pci.7'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x6'/>
    </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='usb' index='0' model='ich9-ehci1'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <alias name='usb'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:3e:21:a2'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='e1000-82545em'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' 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-7-macOS-Catalina/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='usb'>
      <alias name='input2'/>
      <address type='usb' bus='0' port='3'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input3'/>
    </input>
    <graphics type='vnc' port='5900' autoport='yes' websocket='5700' 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'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <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='-cpu'/>
    <qemu:arg value='host,vendor=GenuineIntel,+hypervisor,+invtsc,kvm=on,+fma,+avx,+avx2,+aes,+ssse3,+sse4_2,+popcnt,+sse4a,+bmi1,+bmi2'/>
  </qemu:commandline>
</domain>

 

 

Share this post


Link to post
14 hours ago, mechmess said:

I've gotten OpenCore to boot, but I can't for the life of me get anything to show up as a boot option, including the vdisk that I brought over from a Macinabox download. The only options are resetting the NVRAM and the Openshell.

 

Hi,

that's strange..

I would check the path for the catalina installer.

I would check that the img of the catalina installer is properly built.

I would check in the config.plist of the opencore the ScanPolicy value (it should be 0).

If this still doesn't work, you will need to change Target value in config plist to 83 or 67, log to file; boot, let it go till the picker, shutdown, inspect the generated log file in the EFI root (you need a debug version of opencore).

 

You are also missing a third sata disk which will become your mac os disk, you need bootloader disk, the mac os installer disk, and a disk to install mac os.

Edited by ghost82

Share this post


Link to post

Thanks! For taking a look!!!

7 hours ago, ghost82 said:

I would check the path for the catalina installer.

I would check that the img of the catalina installer is properly built.

I successfully used the Macinabox docker to boot a Catalina install there. I copied that installer img over to the new VM folder. I also tried brining over the boot disk to see if it was just the installer file - neither one shows up. 

 

7 hours ago, ghost82 said:

I would check in the config.plist of the opencore the ScanPolicy value (it should be 0).

If this still doesn't work, you will need to change Target value in config plist to 83 or 67, log to file; boot, let it go till the picker, shutdown, inspect the generated log file in the EFI root (you need a debug version of opencore).

I give this a try!! I was curious if there might be something goofy going on in the config.plist, but wasn't sure where to look.

 

7 hours ago, ghost82 said:

You are also missing a third sata disk which will become your mac os disk, you need bootloader disk, the mac os installer disk, and a disk to install mac os.

This I had a handle on - I was focusing on getting the installer disk to work first, before passing through the system disk. As an aside - is there any reason why in the VM world we don't put the OpenCore boot loader on the system disk EFI partition? I've been using OC on my actual 2010 Mac Pro to get a graphical boot screen and I know that's where it is installed on that machine. 

 

 

Share this post


Link to post
16 hours ago, mechmess said:

is there any reason why in the VM world we don't put the OpenCore boot loader on the system disk EFI partition?

You can, but it's more convenient to have a separate disk, so it will not be overwritten after an update.

Share this post


Link to post

If you are using my efi there should be in the config.plist:

			<key>ScanPolicy</key>
			<integer>17760515</integer>
			<key>SecureBootModel</key>
			<string>Default</string>

Change to:

			<key>ScanPolicy</key>
			<integer>0</integer>
			<key>SecureBootModel</key>
			<string>Disabled</string>

Try.

 

If and when it boots, change also from:

			<key>Target</key>
			<integer>67</integer>

to:

			<key>Target</key>
			<integer>0</integer>

Otherwise, a log is created in the efi root at each boot, share it.

 

If I have to bet I think the issue is the scanpolicy value, I had the same behavior when I installed the first beta of big sur, no disk detected.

I don't remember what value I had when I installed Catalina, probably I wasn't using opencore at that time :D

Once installed there's no problem with 17760515.

Here is a great picture about ScanPolicy value calculation, posted on insanelymac, '0' integer value is the safe value, scanning for all.

 

ScanPolicy.png.3e8bb289cbd245d46b892d446e28a361.png

 

There's also bit 24 recently added: OC_SCAN_ALLOW_DEVICE_PCI, allow scanning devices directly connected to PCI bus (e.g. VIRTIO)

 

This is only an example to understand how scanpolicy value calculation works:

Let's say we want FSL (file system lock) + DL (device lock) + APFS + HFS + NTFS + SATA + SAS/Mac NVMe + NVMe + USB.

It's: 0 (FSL bit 0) + 1 (DL bit 1) + 8 (apfs bit 8 ) + 9 (hfs bit 9) + 11 (ntfs bit 11) + 16 (sata bit 16) + 17 (sas/mac nvme bit 17) + 19 (nvme bit 19) + 21 (usb bit 21)

Binary (swapped) representation:

1100000011010000110101

 

bit0=1

bit1=1

bit2=0

bit3=0

.....

.....

bit20=0

bit21=1

 

and so it's:

1*2^0 (bit 0) + 1*2^1 (bit 1) + 1*2^8 (bit 8 ) + 1*2^9 (bit 9) + 1*2^11 (bit 11) + 1*2^16 (bit 16) + 1*2^17 (bit 17) + 1*2^19 (bit 19) + 1*2^21 (bit 21) = 2820867

 

2820867 is the integer value going into the config.plist

 

 

UPDATE:

The value 17760515 includes: FSL+DL+APFS+SATA+SAS/Mac NVME+SCSI+NVME+PCI (bit 0+1+8+16+17+18+19+24).

Most probably to see the installer media you need bit 9 (HFS) and of course the HFSPLUS driver to be loaded (it's included in my efi); anyway, Scanpolicy 0 will be ok (maybe hfs bit was not included in the default value for security reasons).

To see the bootloader disk you probably need bit 10 (ESP-EFI), but you shouldn't need it to be shown in the picker.

Edited by ghost82

Share this post


Link to post

Could anyone please advise for onboard audio:

 

In Leoyzen's first post he talks about changing the bus to: bus 0x00 and using slot 0x02. 

 

On my machine i already have about 6 or 7 devices (i am passing through usb controllers) assigned to bus 0x00 and using slot's 0x01, 0x02, 0x03 etc.
 

I reconfigured my onboard audio to also use bus 0x00 and i gave it slot 0x02. When i tried to save the xml i got a conflict error since that bus and slot were already in use. My stubbed usb controllers are on bus 0x00 and several are on slot 0x02 (using different functions) I changed the function number on the offending usb controller (the one that had bus 0x00, slot 0x02 and function 0x0) from function 0x0 to function 0x5 and that allowed me to save the xml with bus 0x00, slot 0x02 and function 0x0 as my onboard audio. 

 

When i booted OSX did not detect my onboard audio.

 

Do i need to change all those stubbed USB controller bus numbers to a higher value and reserve bus 0x00 for solely onboard audio?

 

Or do i need to raise their slot's to a higher value but leave I can leave them on bus 0x00?

If my post is confusing please let me know and i will explain it further with graphics and xml snippets. 

Edited by CatMilk

Share this post


Link to post

Take one of the usb controllers you are using on bus 0x00 and swap it with the audio device. usb controllers do not really need to be on the 0x00 bus. I passthrough 2 usb controllers and none of them are on 0x00. 

Share this post


Link to post
1 hour ago, david279 said:

Take one of the usb controllers you are using on bus 0x00 and swap it with the audio device. usb controllers do not really need to be on the 0x00 bus. I passthrough 2 usb controllers and none of them are on 0x00. 

I can't change the bus on any of the usb controllers, when i try i get this error:

 

Capture1.PNG.0a455722b711a2953df5403213a66aae.PNG

Trying to change the bus from 0x00 to 0x01 (or higher values)

Edited by CatMilk

Share this post


Link to post
3 hours ago, CatMilk said:

I can't change the bus on any of the usb controllers, when i try i get this error:

 

Capture1.PNG.0a455722b711a2953df5403213a66aae.PNG

Trying to change the bus from 0x00 to 0x01 (or higher values)

Post your xml 

Share this post


Link to post
<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' id='2' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>MacinaboxCatalina</name>
  <uuid>a5f89fab-f17d-49ff-8481-6cfba407a4ce</uuid>
  <description>MacOS Catalina</description>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="/mnt/user/domains/MacinaboxCatalina/icon/catalina.png" os="Catalina"/>
  </metadata>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='8'/>
    <vcpupin vcpu='1' cpuset='20'/>
    <vcpupin vcpu='2' cpuset='9'/>
    <vcpupin vcpu='3' cpuset='21'/>
    <vcpupin vcpu='4' cpuset='10'/>
    <vcpupin vcpu='5' cpuset='22'/>
    <vcpupin vcpu='6' cpuset='11'/>
    <vcpupin vcpu='7' cpuset='23'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <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/a5f89fab-f17d-49ff-8481-6cfba407a4ce_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='4' threads='2'/>
    <cache mode='passthrough'/>
    <feature policy='require' name='topoext'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='writeback'/>
      <source file='/mnt/user/domains/MacinaboxCatalina/Clover.qcow2' index='3'/>
      <backingStore/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <alias name='sata0-0-2'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/MacinaboxCatalina/Catalina-install.img' index='2'/>
      <backingStore/>
      <target dev='hdd' bus='sata'/>
      <alias name='sata0-0-3'/>
      <address type='drive' controller='0' bus='0' target='0' unit='3'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/MacinaboxCatalina/macos_disk.img' index='1'/>
      <backingStore/>
      <target dev='hde' bus='sata'/>
      <alias name='sata0-0-4'/>
      <address type='drive' controller='0' bus='0' target='0' unit='4'/>
    </disk>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5' multifunction='on'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x11'/>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
    </controller>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='3' port='0x12'/>
      <alias name='pci.3'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
    </controller>
    <controller type='pci' index='4' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='4' port='0x13'/>
      <alias name='pci.4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    </controller>
    <controller type='pci' index='5' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='5' port='0x8'/>
      <alias name='pci.5'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='6' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='6' port='0x9'/>
      <alias name='pci.6'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='pci' index='7' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='7' port='0xa'/>
      <alias name='pci.7'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='8' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='8' port='0xb'/>
      <alias name='pci.8'/>
      <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='usb' index='0' model='ich9-ehci1'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <alias name='usb'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:3d:ac:f0'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='vmxnet3'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/0'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-2-MacinaboxCatalina/org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='connected'/>
      <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='0x04' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev0'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0' multifunction='on'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x04' slot='0x00' function='0x1'/>
      </source>
      <alias name='hostdev1'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x0d' slot='0x00' function='0x4'/>
      </source>
      <alias name='hostdev2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev3'/>
      <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x08' slot='0x00' function='0x1'/>
      </source>
      <alias name='hostdev4'/>
      <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x08' slot='0x00' function='0x3'/>
      </source>
      <alias name='hostdev5'/>
      <address type='pci' domain='0x0000' bus='0x08' 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='-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>

and this is my onboard audio where i have moved it to bus 0x00 , slot 0x02 and function 0x0 as mentioned in my first post.

<hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x0d' slot='0x00' function='0x4'/>
      </source>
      <alias name='hostdev2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </hostdev>

and below is what i raised to function 5 to get unraid to build the xml when i gave function 0x0 to the above onboard audio.

<controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5' multifunction='on'/>
    </controller>

 

Share this post


Link to post

Big Sur updated to 11.0.1 RC (beta 20B5022a) - still issues with smb and transfers for only some files (error -8084), will try a clean install when the final version will come since some other people report no issues.

Opencore fixed the incompatibility with SecureBoot and Big Sur, now SecureBootModel = Default will boot the os instead of a kernel panic.

 

Catalina updated to 10.5.7 19H5: no issues

Share this post


Link to post

Gonna install now. Apple has a event this week so looks like big sur and the apple silicone macs are coming this week. 

Share this post


Link to post

Same, work great :)

I don't understand SecureBootModel = Default, I don t have it with my Catalina VM, I had it for Big Sur and .. no boot lol

Remove and lets go all work :)

Share this post


Link to post

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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