-
-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: macos sonoma hang during startup #1114
Comments
It will do that. There's a some stuff about it in the qqX wiki. And a link to walk through for Ventura. Pretty much the same ... |
i have read and applied the suggestions of this thread but nothing changed in this thread you talk about "The Ventura VM that I had was built using the new, under-development, version." is this new version already present in quickemu 4.9.3 ( i'm using that ) o is to be released in the future ? Anyway thanks for your help |
Ciao Claudio. I have two installs of Sonoma already. You need patience to install them but my memory is that they were much the same as with Ventura. I was running a VM of Fedora 40 last night and tried to install Sonoma on that. It threw up complaints about graphics memory, so I just put that down to it being a VM. You can normally 'telescope' VM's though. ie install machines inside other machines. It's normally not a problem. I have just tried installing Sonoma, again, a third copy, on my main machine. I use Ubuntu Mate on that one. It didn't work as well as I had expected. Didn't get the graphics memory error though. Something to do with virtio on that one probably. I am starting to question the Mac distro which is getting downloaded. It doesn't have the 'installer' icon like you can see in the screenshots in #937 and as mentioned in the Quickemu instructions. I initially put this down to an Apple renaming exercise, but I am not sure that this is entirely the case. I also tried starting Sonoma from the command line, by copying quickemu out of the 'freebird' builtins to the VM folder and using At this point in time, FreeBird is identical to the current Quickemu 'master' and it runs my two previously installed Sonama distros without fault. @lj3954 did 95% of the work on adding in Sonoma. I am wondering if he might have some ideas? |
Ciao Alex , |
Might be worth trying an install of Ventura. See what happens there. Might give us some clues. |
I did very little work inside quickemu. I added sonoma to a couple of switch cases and blocked macOS guests from using some core counts they just won't boot with. Ventura and Sonoma should be identical in nearly every way. Have you been able to install a macOS guest after you modified the CPU argument?
The image is downloaded in exactly the same way that macrecovery does it, and as far as I can tell, exactly the same way an Apple computer would. Also, the image is verified using a chunklist file which also contains Apple's EFI key. There is no doubt in my mind that the image is legitimate. I'll check this out tonight. I haven't done much testing with macOS in quickemu since I finished my PR on it. |
Appreciated 👍 |
I can't get the (sonoma) installer to even boot with your new CPU arg, nor can I get my preexisting VM to boot. Ventura kernel panics with it. Whether it works correctly on Intel CPUs or not doesn't matter, silencing a couple of irrelevant errors in the console is not worth whatever regression this has caused. After reverting the CPU to Haswell, the installation was painless. I just selected the 2nd option "macOS base system" on the first boot, and the 3rd option on reboots. It was quite surprising to me how painless it was. This doesn't solve the issue, though, since macOS releases prior to Ventura will use the Penryn CPU instead. I'm currently downloading Monterey to test whether this works. |
@ctamietto Please provide the output of lscpu. It appears to me that macOS guests work very differently depending on the host's CPU, more data points would be helpful. |
I completed the install of macOS Monterey with no changes to the CPU. Once again, there was no issues. Different systems clearly have very different outcomes, much more data is needed to find a solution. |
I had wondered whether the Haswell line was actually correct when it added sse_4.2 ? The original code only grepped for 4.1 and the notes in the code said 4.1. What happens if you change the new CPU line to 4.2 on your Ryzens? For me, on Intel, Sonoma runs faultlessly. |
No dice. That emulated broadwell CPU just doesn't work here |
I tried to install ventura and sonoma en Debian Trixie. It hang or reboot and go back to the "EFI" and "macOS Base System" menu. I used to have the ventura working on this Debian with the quickemu previous version. I agree to the fact that the installation process is not the same as the startup menu is different. |
So, I just changed the new CPU instruction to 4.2 and it all works, for me. And the old one. But it's plain wrong to grep for one thing and to add another. The question now is how do fix the CPU line so that it works for everyone, Ryzen or Intel. |
@lj3954 Try this hybrid line. The old one with Haswell but tidied up.
|
That works for me. |
Yay. I'll push that to a PR, if that's okay. 🥳 |
(cherry picked from commit 960c34e)
@ctamietto try qqX 1.8.03 that I have just posted 🤞 From the main https://github.com/TuxVinyards/qqX/archive/refs/heads/main.zip |
(cherry picked from commit 960c34e)
Should also work on AMD RYZEN but please re-test Same lines as already Ryzen tested but further testing on older ryzen and notebooks would be a good idea improves on quickemu-project#1116 hopefull solves any other issues from quickemu-project#1114
(cherry picked from commit 960c34e)
Should also work on AMD RYZEN but please re-test Same lines as already Ryzen tested but further testing on older ryzen and notebooks would be a good idea improves on quickemu-project#1116 hopefull solves any other issues from quickemu-project#1114 (cherry picked from commit e4b876c)
SUCCESS 🥳
Tested with FULL complete installs of Sonoma, Catalina and Mojave. Full setup with login and preferences set. Shutdown and re-login as working. Much faster than previously with 4.9.2 through 4.9.4 etc. Fully working, no hangs, no stalls. Of new, now requires the installer icon to be pressed on the restarts. This now happens a couple of times. But this all flows smoothly. CAVEAT: not yet tested on Ryzen. Volunteers please ... Additionally note the Skylake version is also working. This is commented out but has been tested on Sonoma. A conf selector for skylake should be considered, or at least noted and archived in case of future problems. Also see notes and comments in #1214 |
Adapted from #1114 (comment) Tested full installs of Mojave, Catalina, Big Sur, Monterey, Ventura and Sonoma on AMD Ryzen 5950X. Performed updates post-install and installed Revolutionator.
A couple of CPU flags are named differently in QEMU, beware. vbmi2, for example, is avx512vbmi2 |
Note that PCID appears to be enabled by default with this cpu arg. CPUs which don't support this legacy flag, including the latest Ryzen CPUs, will get warnings. I've included disabling PCID on CPUs which don't support it in my rust quickemu. |
@lj3954 Thank you for that. I wasn't fully sure about the inclusion of @flexiondotorg you are missing the point of the one-liners. As @lj3954 has also pointed out, some of the flags are need special treatment. This is why I hesitated to write a loop in my initial work. I hadn't determined what was required at that stage. lscpu output
need the the underscores translating to hyphens. Edit: also needed for the underscore in the " Tested full installs of Mojave, Catalina, Big Sur, Monterey, Ventura and Sonoma on AMD Ryzen 5950X. " unfortunately. |
The following flags are not found in Haswell
Which is why they were treated separately. Edit: The commit has `pdpe1gb' with a minus but probably could just be omitted, to avoid confusion
|
Again
|
QEMU appears to refer to sse3 as pni. For many of these flags, though, I think it's likely they're enabled by default when you specify Haswell or whatever other architecture. SSE3, for example, was introduced in 2004. Surely anything expecting a Haswell CPU would require it. |
It works the other way round.
|
Well spotted. Not sure where that came from.
|
Adapted from #1114 (comment) Tested full installs of Mojave, Catalina, Big Sur, Monterey, Ventura and Sonoma on AMD Ryzen 5950X. Performed updates post-install and installed Revolutionator.
I've incorporated the feedback in my feature branch, What I have implemented does deviate slightly from the discussion because it also works for running macOS VMs on macOS hosts, and therefore handles macOS CPU flag conversions too. If the host CPU is "GenuineIntel" then Fully disabling huge pages (,-pdpe1gb) is absolutely required on macOS to prevent crashes on every attempted boot: Therefore, because it is now possible to run a macOS VM that, in turn, can run a VM, huge pages are always disabled on macOS hosts and guests. |
Wow |
Adapted from #1114 (comment) Tested full installs of Mojave, Catalina, Big Sur, Monterey, Ventura and Sonoma on AMD Ryzen 5950X. Performed updates post-install and installed Revolutionator.
Adapted from #1114 (comment) Tested full installs of Mojave, Catalina, Big Sur, Monterey, Ventura and Sonoma on AMD Ryzen 5950X. Performed updates post-install and installed Revolutionator.
@flexiondotorg A couple of things: I am finding that -cpu host is making my CPU churn badly. If I edit the following line to read as "xxGenuineIntel" and force AMD/Haswell, things run a lot smoother.
I also tried a PR but the bot kept blocking things and saying that I hadn't made any changes. Maybe because no lines were added. That's another issue to look at possibly. |
Please provide some performance metrics for running a VM with |
Every time I click on a GUI icon in -cpu host mode the physical Host monitors show the cores maxing out. Doesn't happen with Haswell. On my 3 year old mid-range Intel, the objective times are as follows:
Physical Host: 32 secs and Sonoma/Haswell 28s but Sonoma/Host 3min 10s (7x slower) |
Just noticed flag "eist" which is not Haswell. I think a few things crept in from the Tech PowerUp links that I referenced, before I started using Qemu source instead. https://www.techpowerup.com/cpu-specs/xeon-w-2140b.c2953 From the transitional work above #1114 (comment) |
Something NEWSubtractive CPU methods. Totally the reverse of Nick Sherlock's and Kholia's methods that have been used in Quickemu in the past. Outperforms the additive methods at runtime. 26 secs for the bc test. Very smooth installation with Ventura but having a few problems with the installer on Sonoma that need sorting, if anyone has ideas .... on tests, both haswell & skylake -ve perform well Use "sysctl -a | grep machdep.cpu" at terminal in MacOS to see flags |
* urgent fix for sonoma and quickemu-project#1114 (cherry picked from commit 960c34e) * improved macos fix Should also work on AMD RYZEN but please re-test Same lines as already Ryzen tested but further testing on older ryzen and notebooks would be a good idea improves on quickemu-project#1116 hopefull solves any other issues from quickemu-project#1114 (cherry picked from commit e4b876c) * MacOs update variant using more Haswell See quickemu-project#1117
Adapted from quickemu-project#1114 (comment) Tested full installs of Mojave, Catalina, Big Sur, Monterey, Ventura and Sonoma on AMD Ryzen 5950X. Performed updates post-install and installed Revolutionator.
I have installed quickget cloning from github
I downloaded sonoma with quickget with the command
quickget macos sonoma
see the video
https://youtu.be/07JLZCy5zlo
then I installed sonoma with the command
quickemu --vm macos-sonoma.conf
see the vidoes of the begin of installation end the end
start : https://youtu.be/MpbozxjQACw
end : https://youtu.be/Z5H0FT6Karo
it seem to me that almost at the end of the installation ( second startup ) the vm rebooted
so probably the installation in not complete ( you can view that in https://youtu.be/Z5H0FT6Karo )
when I try to boot i get a blank screen ( after i have chosen the disk of installation ) and after sometime it restart
see the video
https://youtu.be/MpbozxjQACw
my system is fedora 39
the log is void
what can i check ?
P.S: i have tried do install also big-sur monterey ventura with the same result
only the installation of catalina is working ( but is too old for what i have to do )
thank you
for any response
The text was updated successfully, but these errors were encountered: