KhaosT / MacVM

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

"Installation service connection unexpectedly terminated" error #8

Closed scheblein closed 3 years ago

scheblein commented 3 years ago

Host OS: Monterey Beta 9 Model: 13" Macbook Pro M1

Error message(s): `2021-10-06 20:45:03.505441-0500 MacVM[22434:192301] Error: Error Domain=VZErrorDomain Code=1 "Installation service connection unexpectedly terminated." UserInfo={NSLocalizedFailure=Internal Virtualization error., NSLocalizedFailureReason=Installation service connection unexpectedly terminated.}

2021-10-06 20:45:08.688250-0500 MacVM[22434:192779] [logging-persist] cannot open file at line 45340 of [d24547a13b]

2021-10-06 20:45:08.688828-0500 MacVM[22434:192779] [logging-persist] os_unix.c:45340: (0) open(/var/db/DetachedSignatures) - Undefined error: 0 `

Steps to reproduce:

  1. download and unzip cloned zip from github
  2. open xcodeproj
  3. clear signing (set team to "none", set signing certificate to "sign to run locally")
  4. run project
  5. create doc
  6. set cpu count, mem size, disk size
  7. save doc
  8. select downloaded ipsw (monterey beta 9)
  9. click install button
  10. notice error in xcode console
scheblein commented 3 years ago

This error is still applicable in 12.0.1, but we have a workaround.

Upon investigation, we noticed that the "com.apple.Virtualization.Installation" process is crashing in its "com.apple.cfnetwork.cfnetworkagentclient" thread.

Workaround: Uncheck Automatic Proxy Configuration in the proxy tab of network preferences.

uncheck automatic proxy configuration

We noticed that another thread of the crashing process was "com.apple.libnetwork.pacResolution" which lead us to disabling proxies and finding that this "fixed it."

Since it's a bug in Apple's code, I will close this issue.