-
Notifications
You must be signed in to change notification settings - Fork 30
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
Failure booting XNU on macOS 15.0 UTM VM #22
Comments
I know that the KC should be built on the same host that it'll be ran on so you might need to create a normal macOS VM to run the final step of combining the compiled kernel with all the kexts into the KernelCollection that you'll ultimately run. Does that sound right @jprx? |
Oh wait I'm sorry you are saying you did this all on the VM? |
I know that @jprx runs and tests all the VMAPPLE builds in VMs that we've marked as good, but I think he has his own step for creating the final KC |
Yes, I'm saying I did the build on the VM I was attempting to boot the KC on -> Oh wait I'm sorry you are saying you did this all on the VM? @jprx if you want to share any tips/tricks for booting this it would be greatly appreciated |
I've heard from several people that there are issues with booting custom kernels in VMs on M2 and newer chips. We currently believe this is due to issues in the KDK kernel support libraries for those chips. I only test all our supported releases on M1 where I have not encountered any issues. Are you running an M2 or newer device? |
yes. The device I was testing the VM on was a M3 MBA, I'll see if i can dig up a M1 and confirm. In the meantime is there any way to get a debug log from the VM setup I have now? |
I confirmed that I was able to build and boot a kernel into a UTM VM running macOS 15.0 using the steps provided in my first comment above on an M1 MBA host. These exact same steps fail on both a M2 and M3 MBA. I attempted using a number of different macOS 15.0 IPSWs for the target VM on the M2 + M3 hosts - none of which worked. |
On an M3 host running 15.1.1, in a UTM VM running 15.0 (with an IPSW meant for a M3) : I was able to repack a KASAN kernel from the KDK into a kernel collection and boot it:
Repacking the kernel built from from darwin-xnu-build (for 15.0) in the same way, as follows, fails to boot:
|
@jprx could you elaborate a bit more on "issues in the KDK kernel support libraries for those chips" or is there a better forum to discuss this somewhere? Discord? |
I created a UTM VM with
UniversalMac_15.0_24A335_Restore.ipsw
. On the VM, I successfully built the kernel collection for 15.0 using darwin-xnu-build with the following build command:KERNEL_CONFIG=RELEASE ARCH_CONFIG=ARM64 MACHINE_CONFIG=VMAPPLE ./build.sh --kc
(and later with DEVELOPMENT)Rebooting the VM into recovery I did the following:
After a VM reboot, the VM fails to boot with no additional information. I tried again after building a development kernel for 15.0 with the same results of it not booting. I went through these entire steps of setting up a new build vm and building for 15.1 (UniversalMac_15.1_24B2083_Restore.ipsw) with the same results.
Are there known-good instructions for getting a customer kernel up and booting that I'm missing?
The text was updated successfully, but these errors were encountered: