Jump to content
Leoyzen

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

669 posts in this topic Last Reply

Recommended Posts

Posted (edited)

I just made a opencore github (links here)to helping people quick start building a hackintosh VM, also we can track, discuss issues there. 

The repo contains most common technics which we discuss here. And this thread will be a support thread.

Edited by Leoyzen

Share this post


Link to post
Posted (edited)
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

Share this post


Link to post
2 hours ago, david279 said:

10.15.4 is out. Backup your VMs and give it a go.

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

Share this post


Link to post
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.

 

Share this post


Link to post
2 minutes ago, david279 said:

I did see this this on reddit

Thanks, I will look deeper into tomorrow; for all experiencing the same problem, fastest solution is of course deleting the topology line in the xml.

Share this post


Link to post
6 hours ago, ghost82 said:

Thanks, I will look deeper into tomorrow; for all experiencing the same problem, fastest solution is of course deleting the topology line in the xml.

Tou can get the latest patch from AMD Vanilla.

Share this post


Link to post

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

Share this post


Link to post

I finnally get newer cpu generation works with topology defined, but still can't set odd or imregular cores like 5/10, 6/12.Only 4/8 or 8/16 works now.Maybe more patches needed too.

Share this post


Link to post

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!

Share this post


Link to post

@ameenoSee the main thread, there is a github link which contains the most recents opencore configuartion, you can start from it.

Share this post


Link to post

@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

 

 

Share this post


Link to post

@fr05tyPlz, add '-v debug=0x100 keepsyms=1' to your boot-args and post your error log.We can't help with this little information.

Share this post


Link to post

@Leoyzen Sorry I got distracted last night was going to post a pic of the -v , but I will have a look tonight at the log method you suggested, where will I find the log after I try to boot? 

20200326_153316.jpg

Share this post


Link to post
8 minutes ago, fr05ty said:

where will I find the log after I try to boot? 

Change "Target" in your config plist to 83 (integer), then boot and you will find the log in the EFI folder.

Share this post


Link to post
Posted (edited)

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

Share this post


Link to post

@fr05ty @glennv

I update the git repo(add MCEDisabler) and tested it in 10.15.4, it's all fine.

Did you add Lilu/WEG/AppleALC to your kexts folder and enable it in config.plist?

Did you put all others things under repo EFI to your EFI folder?(Because from your logging, the ACPI staffs is missing)

Share this post


Link to post

Tnx, will try your new repo. I did not put Lilu/WEG/AppleALC yet in there as it all worked fine without it in 10.15.3, but was on my list to test.

For the rest i just cloned your whole EFI folder so its there.

 efi.jpg.40dc6f1935d3905615549a7e72aad9da.jpg

Share this post


Link to post
Posted (edited)

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

Share this post


Link to post
Posted (edited)

Done. Tnx for the help and the nice start in the OC world. HAve to start doing some reading i guess ;-)

 

 

result.jpg

Edited by glennv

Share this post


Link to post

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?

Share this post


Link to post
Posted (edited)

@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

Share this post


Link to post

Update:

 

I'm able to see my Radeon Pro WX 4100 in system information.  But it doesn't show in the "About this Mac" page, and I'm not able to change the graphics to anything other than 1280x1024.  

image.png.f818cc08f69f36b79a85324faec978dd.png

 

Any Suggestions?

Share this post


Link to post
Posted (edited)

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

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.