-
Notifications
You must be signed in to change notification settings - Fork 462
Test using AMD Ryzen CPU #33
Comments
Result: SUCCESS STEPS:
|
Good catch on the vhv and vpmc flags which would not work on AMD. So that means we cannot have nested virtualisation or virtual performance counters, but they are usually not enabled unless really needed. |
AMD Ryzen 5 2600 In previous installs on VMWare 15 with a different unlocker I had to add a bunch more settings. I was also able to transfer my previous VM by copying over the vmx content (with cpu mask) of a new machine (and updating the name). |
Thanks for letting me know. |
Result: Fail The guest OS doesn't even get to show me the Apple logo. I get a "Failed to start the virtual machine." Tried with both the |
Thanks for the post. Can you attach the vmx and vmware.log file to a post please? It's tricky to see what works and does not on AMD, but I will see if there is anything obvious. |
Here you go. For the record, if I don't have the |
I think it could be because you have Hyper-V enabled and VMware falls back to a mode called ULM. I believe CPUID masking is not available in that mode as it is pushed to Windows for the low level VMX/SVM operations. Can you try disabling Hyper-V and trying again? |
I have success to report with the above configuration (macOS Monterey, VMWare 16.x, Windows 11, Ryzen 9 5900X), finally The road to getting there was not easy, though. It was very difficult to completely disable Hyper-V in Windows 11. Here are the steps I took, and to be completely honest, I don't know which combination worked. The last thing I did was To check whether Hyper-V is truly disabled, run
|
Good news. I know switching off Hyper-V can be a problem. I will update the issue and the readme file. Thanks for the testing and the feedback. |
No problem. If you need me to do further testing, I can.
…On Wed, Aug 17, 2022, 21:20 David Parsons ***@***.***> wrote:
Good news. I know switching off a hyper-V can be a problem.
I will update the issue and the readme file.
Thanks for the testing and the feedback.
—
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADLJLDALZNHNZ2UAVOACF7LVZVCPBANCNFSM5Z6AN4VQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@morphine00 Could you send me a vmare.log file from the workign guest please? I'm just checking on what CPUID masks are actually doing at runtime and it's logged in vmware.log. Thanks |
There you go. |
Thanks |
For the record, the VMWare Tools also installed just fine via the standard VMWare menus. Don't know if that was relevant to this issue or not. |
AFAIK The tools should work just fine for Intel and AMD, but good to have it confirmed again. |
Result: Success At first I was also getting "Failed to start the virtual machine." error, like @morphine00 did, then I disabled hyperv via:
|
Result: Fail Monterey works like a charm, I don't understand what's wrong with Ventura. |
You have |
I tried with |
Currently not supported by VMware. There is one possible change as there have been reports of network adapter issues. Edit VMX file and change ethernet0.virtualDev = "e1000e" to ethernet0.virtualDev = "vmxnet3" |
Unfortunately, I also tried this one, with no luck. |
Ventura is hard resetting the CPU. No way I can see to sort that out. There are issues on Fusion as well. New version of Fusion and Workstation on the way which may support Ventura but be aware VMware are dropping support for future macOS versions. |
@Codling I think that VMware is masking out the AVX2 capability flag in the guest, and that is a new hard requirement of Ventura. I may be able to change the cpuid masks to force AVX2. However some bits cannot be passed thru and I'm going to have to check that out. |
Thank you, @DrDonk! Can't wait to test this out. :) |
@Codling I'm struggling with this and not sure if I have it figured out. Can you try Monterey out on your machine? If you can please set the guest to output debug log using the steps from: That gives a complete cpuid dump and differences report. You could also do that on the Ventura guest as well. I am going to be offline for 3 days so there's no rush, and don't worry if you are not able to do this. It may be worth waiting until Ventura and the next version of VMware products ships. |
CPU: AMD Ryzen 9 4900H with Radeon Guest OS: macOS Ventura 13.0 Beta 3 Guest OS: macOS Monterey 12.0.1 |
Thanks for the feedback. At this point I don't see a way of getting Ventura running. Looks like it needs something changing in the VMware core. Newer versions of products coming but as you may ahve seen VMware said wouldn't support future macOS versions. That may change but we will have to start getting used to the fact that Intel Mac is going and the journey is ccoming to an end. |
The VM reboot when i try to use xcode's simulator. My CPU is amd R7 5800h (legion r9000p). |
That is an invalid opcode panic and there is nothing I can do in VMware and the unlocker to fix this. Looks like there is code being called with Intel only opcode embedded in the executable, possibly in CoreCrypto. Best suggestion is to ask what to do in a forum that supports AMD Hackintoshes. I will add note that Xcode Simulator does not work. |
@chengzi-niude I wonder if this is related to https://forums.macrumors.com/threads/monterand-probably-the-start-of-an-ongoing-saga.2320479/page-4?post=31125212#post-31125212 |
thank you,i will try it |
It's working! thanks! AMD 3700X + Nvidia 2060S, unlocker 4.2.3, vmware workstation 16.2.4 for windows, Big Sur and Monterey. |
I am getting reports of issues with Ventura on AMD CPUs. Has anyone tested this and if so can you report whether it works or not? |
A few minutes ago, I tested Ventura 13.0 (22A380) with my settings(AMD 3700X + Nvidia 2060S, unlocker 4.2.3, vmware workstation 16.2.4 for windows), it can't boot, error message is "Your computer restarted because a problem. Press any key or wait a few seconds to continue starting up". full debug log attached. 2022-11-08T06:20:50.689Z Wa(03) vmx smc: Index 432: Inconsistent read information. |
@z16166
I am going to write a note on how to capture macOS debug output via virtual serial port. May find something of use in that log. So can you do 2 tests for me please? Do each one separately so can test each setting.
|
Here's the notes on capturing debug info. https://github.com/DrDonk/unlocker/wiki/Debugging-macOS-Guests |
Pity that I can't set vmx.buildType to "debug", because vmware will always core-dumped before booting to firmware. |
Thanks to several people helping out and the cause seems to be a missing dyld cache for the processor being used:
Not sure where we go from here, and I suspect this will also affect older Interl CPUs. |
I am going to track this in a separate issue #47 (comment) |
I'm using a Ryzen 9 5950X To Add:
To Add if missing or Replace if not 16: cpuid.0.eax and cpuid.1.ebx is not needed. This is working for monterey and big sur, and if i remember correctly, with hypervisor enabled the last time i used it. Do test if running this with hypervisor on is still working or not, as i'm unable to test now. |
@jerrywoo96 I tried your settings but if I try to select the VM in VMware I'll get an error saying |
This line is missing |
Thanks. Now it's booting fine. The VM is very slow and sluggish. I'm running this on a Ryzen 6800U. |
you can fix it by installing the VMware Tools. |
I already installed the VMware Tools but performance did not increase significantly. Yes, I need to use WSL as well. So Hypervisor is enabled. |
@jerrywoo96 thanks so much for your investigation. Now I can use macOS without having to disable the hypervisor and rebooting the machine. Performance is fairly slow but it's good enough for casual testing. Thanks! |
CPU: Ryzen 9 5950X "Failed to start the virtual machine." error, like @morphine00 and did, then I disabled hyperv via:
But im still not able to get passed Failed to start the virtual machine. It will only give that error if i have this in the VMX If i remove the masking it gives me the Guest os disable the CPU if anyone has ideas that would be helpful 🙇♂️ |
remove all your current cpuids, add this.
change |
@hamsandvich You are still using Hyper-V as the the vmware.log shows that ULM is still being used. Please disable Hyper-V, it is the only consistent way to make his work. (See https://github.com/DrDonk/unlocker/blob/main/TROUBLESHOOTING.md) The current best settings for AMD are:
|
@jerrywoo96 Thanks for the CPUID masks. I'll add the as alternatives to what I have already listed. Just FYI if you continue with Hyper-V enabled it will be slower than using VMware hypervisor and a limited set CPUID bits can be set. For example CPU vendor is not overwritten in the guest. I'm now going to shut this issue. |
I recently tested the unlocker on my son's AMD Ryzen based laptop (thanks Dan), and looking for others to try it out using a vanilla macOS installation, not one with an AMD kernel or patches. The unlocker cannot patch this but we can recommend settings for the VMX file that allows macOS to run on recent AMD CPUs
The CPU spec was: AMD Ryzen 3 3200U with Radeon Vega Mobile Gfx @ 2.60 Ghz
It ran when the following lines were added to the VMX file:
UPDATE
You must have Hyper-V disabled on Windows or VMware falls back to a mode called ULM. CPUID masking is not available in ULM mode as it is pushed to Windows for the low level VMX/SVM operations. You can see if VMware is in ULM mode on Hyper_V by searching the guest's vmware.log file for these 2 lines:
vmx IOPL_Init: Hyper-V detected by CPUID
Monitor Mode: ULM
Here is a link to a Microsoft artcile on disabling Hyper-V.
https://docs.microsoft.com/en-us/troubleshoot/windows-client/application-management/virtualization-apps-not-work-with-hyper-v
Editing the VMX file
be displayed by VMware.
So looking for others to try this out and report back here with any details on success or failure.
The text was updated successfully, but these errors were encountered: