KhaosT / MacVM

macOS VM for Apple Silicon using Virtualization API
Apache License 2.0
1.31k stars 95 forks source link

macOS Ventura VM Support #34

Closed moyitpro closed 2 years ago

moyitpro commented 2 years ago

I have a developer account and wanted to try to create a VM with the macOS Ventura support with the ipsw. It doesn't seem to do anything as the install process is stuck at 0%.

Also noticed that nothing is written to the image file either.

0+0 records in 0+0 records out 0 bytes transferred in 0.000006 secs (0 bytes/sec)

Is it because I'm running macOS Monterey and creating and running a Ventura VM requires me to also run the same OS? I don't want to do that since of compatibility issues and I kind of want to try to run it in a VM first. Anyone experiencing the same issue?

KhaosT commented 2 years ago

It's working for me. It will stuck at 0% for about a minute (talking with Apple to do the VM personalization stuff) then it moves forward fine.

moyitpro commented 2 years ago

Still having the same issue

https://user-images.githubusercontent.com/161183/172260337-ae5dafbf-2828-44da-9e93-269705bea2b2.mp4

2022-06-06 18:27:33.118256-0400 MacVM[17022:630450] [default] Failed to get state for list identifier com.apple.LSSharedFileList.ApplicationRecentDocuments Error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (Access to list denied) UserInfo={NSDebugDescription=Access to list denied} 2022-06-06 18:27:45.244557-0400 MacVM[17022:630795] [default] Failed to get state for list identifier com.apple.LSSharedFileList.ApplicationRecentDocuments Error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (Access to list denied) UserInfo={NSDebugDescription=Access to list denied} 2022-06-06 18:27:45.247387-0400 MacVM[17022:630795] [default] Insert failed for list identifier com.apple.LSSharedFileList.ApplicationRecentDocuments Error: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (Access to list denied) UserInfo={NSDebugDescription=Access to list denied} 2022-06-06 18:27:46.594045-0400 MacVM[17022:629803] Metal API Validation Enabled 2022-06-06 18:28:01.871129-0400 MacVM[17022:630795] [logging-persist] cannot open file at line 45530 of [9ff244ce07] 2022-06-06 18:28:01.872425-0400 MacVM[17022:630795] [logging-persist] os_unix.c:45530: (0) open(/var/db/DetachedSignatures) - Undefined error: 0 0+0 records in 0+0 records out 0 bytes transferred in 0.000007 secs (0 bytes/sec) 2022-06-06 18:29:31.101400-0400 MacVM[17022:629803] Error: Error Domain=VZErrorDomain Code=1 "Installation failed." UserInfo={NSLocalizedFailure=Internal Virtualization error., NSLocalizedFailureReason=Installation failed., NSUnderlyingError=0x600000aa0c90 {Error Domain=VZErrorDomain Code=1 "(null)"}} 0+0 records in 0+0 records out 0 bytes transferred in 0.000007 secs (0 bytes/sec) 2022-06-06 18:30:48.721629-0400 MacVM[17022:629803] Error: Error Domain=VZErrorDomain Code=1 "Installation failed." UserInfo={NSLocalizedFailure=Internal Virtualization error., NSLocalizedFailureReason=Installation failed., NSUnderlyingError=0x600000aba310 {Error Domain=VZErrorDomain Code=1 "(null)"}}

fkorotkov commented 2 years ago

You need to recompile and use Xcode 14 Beta. At least that helped in my case.

moyitpro commented 2 years ago

You need to recompile and use Xcode 14 Beta. At least that helped in my case. 2022-06-06_21-17-03

It appeared that this did the trick as the VM managed to create after recompiling it with Xcode 14.