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


Recommended Posts

On 3/19/2020 at 5:32 PM, fr05ty said:

hello i have a 5700xt that i would like to pass through to Mac Catalina i have setup macinabox and the vnc works but when i tried to pass through my gfx card it gets to the apple logo the loading bar gets halfway and stops, i have dl'd WG/LILU latest versions and added them to the K/O dir, do i have to add some other boot args to get it working/loading the 5700xt

if i change the id to iMacPro1,1 I would also have to add AppleMCEReporterDisabler.kext if i have read this sub correct i also came across an opencore page that says to add agdpmod=pikera for a navi 10 cards is this added in the Clover Configurator somewhere?

Add `agdpmod=pikera` to boot-args section in config.plist.

Use iMacPro1,1 or MacPro7,1 is the ONLY option for us(who using Hackintosh VM).You will face more issues when using others SMBios.

Edited by Leoyzen
Link to comment
6 minutes ago, ghost82 said:

Unfortunately this update probably broke the x86_validate_topology patch: I have a kernel panic related to it if booted with smp argument (equivalent to topology in xml).

I just updated and everything went well. I don't use the topology patch and using 0.5.7. I did see this this on reddit, so it may help with the patch.

 

Link to comment

Yes, I was thinking so, looked at it yesterday and saw that it was changed, now I confirm is working again.

New "disable x_86_validate_topology" patch for Catalina 10.15.4 for opencore:

 

			<dict>
				<key>Base</key>
				<string>_cpu_topology_sort</string>
				<key>Comment</key>
				<string>algrey - cpu_topology_sort -disable _x86_validate_topology</string>
				<key>Count</key>
				<integer>1</integer>
				<key>Enabled</key>
				<true/>
				<key>Find</key>
				<data>
				6AAA//8=
				</data>
				<key>Identifier</key>
				<string>kernel</string>
				<key>Limit</key>
				<integer>0</integer>
				<key>Mask</key>
				<data>
				/wAA//8=
				</data>
				<key>MaxKernel</key>
				<string></string>
				<key>MinKernel</key>
				<string></string>
				<key>Replace</key>
				<data>
				Dx9EAAA=
				</data>
				<key>ReplaceMask</key>
				<data>
				</data>
				<key>Skip</key>
				<integer>0</integer>
			</dict>

 

For clover, using hexadecimal:
Find: E80000FFFF

(Mask: FF0000FFFF)

Replace: 0F1F440000

  • Like 1
Link to comment

After failing for some months to make my R9 380 VFIO to work, i bought a RX 480 8gb Nitro+ from ebay (refurbished.... £69.99 which is good price...)

 

I managed to make passthrough work on CLover with Lilu/Weg and very simple clover config and Penryn CPU.

 

This desktop has Ryzen 3600 chipset.

 

Please could you give me an easy config to go from Clover to Opencore?

If it can support my CPU and gpu Combination that would be great. I am happy to snapshot the VM and then t ry it with the new config & Opencore EFI. Please help.

 

Thanks!

Link to comment

@Leoyzen i added the agdpmod=pikera and the AppleMCEReporterDisabler.kext and changed id to iMacPro1,1 but i still get stuck with the loading bar half way, in the vm logs i see this:

 

2020-03-25T07:33:28.814709Z qemu-system-x86_64: vfio: Unable to power on device, stuck in D3
2020-03-25T07:33:28.820691Z qemu-system-x86_64: vfio: Unable to power on device, stuck in D3

 

 

Link to comment

Hi @Leoyzen,

1st off tnx for all your great contribution here. Top.

 

Question for you from an opencore newbie.

Yesterday i tried to upgrade one of my 10.15.3 clean base image vm's (so just OS and nothing else on it) with clover to 10.15.4

Did not work of course . Tried again with the latest clover, still no luck so i thought f-it , lets try this opencore stuff.

So pulled your github EFI , trashed the clover EFI , changed nothing in my xml, rebooted and voila it booted straight up into 10.15.3.

So that was a nice introduction into the OC world. Tnx for that.

 

But now my question, as when i tried to upgrade to 10.15.4 , i got the same (opticaly) error where after all the debug messages finish and it switches to the mac logo, it freeses (foreever). Last message before it switches to the apple screen is same as in screenshot from @fr05ty

, which it passes and then freezes.

 

In the EFI folder it logs only this , last message looks a smoking gun:

00:000 00:000 OC: Failed to find ACPI SSDT-DTGP.aml
00:021 00:021 OC: Failed to find ACPI SSDT-EC.aml
00:026 00:005 OC: Failed to find ACPI SSDT-EHCI.aml
00:031 00:005 OC: Failed to find ACPI SSDT-PLUG.aml
00:067 00:035 OCB: Failed to fix the default boot Device Path

 

edit/correction  these messages i also get with a succefull boot in 10.15.3 so likely not the cause 

 

stuck.jpg.495b9474dbf6acbbb0e83b8094e09ecb.jpg

 

p.s. No screen attached , nothing passed thru, zero non apple kexts, just a clean catalina vm with vnc display btw.

 

Any ideas top of your head ?

 

catalina-clean.xml

Edited by glennv
Link to comment

update: With your new EFI and latest WEG/Lilu, it seem to pass this freeze point now and is upgrading. Just see Japanese text instead of english that its upgrading and a counter. Saw that also yesterday in recovery partition hahaha. No idea why. Lets see if it finishes, but probably it will be fine now.

japanese.jpg

Edited by glennv
Link to comment

I have successfully setup a Catalina VM using Macinabox, however I want to pass though my graphics card, AMD Radeon WX 4100 to the VM.  Whenever I add the GPU as a second graphics card, the VM freezes about halfway though bootup on the apple logo. If I change the GPU to the primary, the GPU fails to boot doing the same thing, freezing on boot.

 

I have installed Lilu and Whatevergreen Kexts via Clover, and the issue persists. Any thoughts?

Link to comment

@Leoyzen Quiick question, how do you set with OpenCore the resolution of the final VNC desktop ?

Its with your git repo set at 2560x1600. Looking at all the playlist variables, i could not find anything that controls that.

UIscaling factor i put from 2 to 1 , but does not affect the VNC OSX desktop.

In clover it was a parameter, so wondering if i can set it with OC as well. 

Other than that , OC seems way simpler then i though and wow it boots fast. Already love it and soon , when i totaly grasp it will convert all my VM's to it 

 

EDIT Just ignore please. Case of RTFM. Found it under UEFI>Output>Resolution. Missed it as was set to Max ;-)

Edited by glennv
Link to comment

Finnally got irregular number of cores assignments work. Details can be foud in git issues. I will update the manual and config.plist later.

 

3-cores/6-threads

<vcpu placement='static' current='6'>8</vcpu>
  <vcpus>
    <vcpu id='0' enabled='yes' hotpluggable='no' order='1'/>
    <vcpu id='1' enabled='yes' hotpluggable='yes' order='2'/>
    <vcpu id='2' enabled='yes' hotpluggable='yes' order='3'/>
    <vcpu id='3' enabled='yes' hotpluggable='yes' order='4'/>
    <vcpu id='4' enabled='yes' hotpluggable='yes' order='5'/>
    <vcpu id='5' enabled='yes' hotpluggable='yes' order='6'/>
    <vcpu id='6' enabled='no' hotpluggable='yes'/>
    <vcpu id='7' enabled='no' hotpluggable='yes'/>
  </vcpus>
  <cputune>
    <vcpupin vcpu='0' cpuset='6'/>
    <vcpupin vcpu='1' cpuset='14'/>
    <vcpupin vcpu='2' cpuset='7'/>
    <vcpupin vcpu='3' cpuset='15'/>
    <vcpupin vcpu='4' cpuset='5'/>
    <vcpupin vcpu='5' cpuset='13'/>
  </cputune>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='4' threads='2'/>
  </cpu>

77814089-ee3e3800-70e8-11ea-8d5a-84de907

 

5-cores/5-threads

<vcpu placement='static' current='5'>8</vcpu>
  <vcpus>
    <vcpu id='0' enabled='yes' hotpluggable='no' order='1'/>
    <vcpu id='1' enabled='yes' hotpluggable='yes' order='2'/>
    <vcpu id='2' enabled='yes' hotpluggable='yes' order='3'/>
    <vcpu id='3' enabled='yes' hotpluggable='yes' order='4'/>
    <vcpu id='4' enabled='yes' hotpluggable='yes' order='5'/>
    <vcpu id='5' enabled='no' hotpluggable='yes'/>
    <vcpu id='6' enabled='no' hotpluggable='yes'/>
    <vcpu id='7' enabled='no' hotpluggable='yes'/>
  </vcpus>
  <cputune>
    <vcpupin vcpu='0' cpuset='6'/>
    <vcpupin vcpu='1' cpuset='14'/>
    <vcpupin vcpu='2' cpuset='7'/>
    <vcpupin vcpu='3' cpuset='15'/>
    <vcpupin vcpu='4' cpuset='8'/>
  </cputune>
  <cpu mode='host-passthrough' check='none'>
    <topology sockets='1' cores='8' threads='1'/>
  </cpu>

77814400-ae2c8480-70eb-11ea-9393-0568af7

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