VM creation is stuck or failing
Scenarios
- The
anka createruns for a while but gets stuck. Typically stuck atprebootingorwaiting for postinstall complete. - The Anka app creation process runs for hours and never completes.
installation failed: Bad addressAMRestorePerformRestoreModeRestoreWithError failed with error: 1status 70orinstallation failed, especially after upgrading the host to 15.5 or above.
To get more verbose errors, runANKA_CLICK_DEBUG=1 anka --debug create.... If the click scripts fail, you can get the/tmp/_last.pnggenerated whenANKA_CLICK_DEBUG=1to see what the last screen was in the VM before the failure.
Common Causes and solutions
status 70can mean several things. It’s a generic error from Virtualization APIs on macOS. The main ways to fix it are:- If you’re running an older host OS version, you’ll need to install the latest MobileDevice.pkg from the latest Xcode.app/Contents/Resources/Packages/ directory. For example, on Host OS 15.x, to create 26.4 VMs you need to install the Xcode 26.4 MobileDevice.pkg first. You can download the latest Xcode.app and then extract just the MobileDevice.pkg file from the Contents/Resources/Packages/ directory. Note, this may mean extracting it from the latest Xcode beta, depending on the version you’re trying to create a VM from.
- Make sure you’re on the latest Anka CLI version.
rm -f ~/.anka/tools/*and then try again. This will clear out any older click scripts that might be causing issues.- Uninstall Anka CLI fully (
sudo /Library/Application\ Support/Veertu/Anka/tools/uninstall.sh), then reinstall it. - If attempting to set/use
http_proxyorhttps_proxy, they will not work. There is a requirement for full internet access to set up macOS properly in later 15.x VM versions. You’ll need to useANKA_NETWORK_DISCONNECTED=truewhen creating the VM to temporarily disable networking entirely and eliminate the requirement. - You’re trying to anka create a VM through SSH with
sudo anka create.... Apple’s security changes in later macOS versions make this problematic. You should use VNC > Terminal to create the VM instead as sudo, or, just create it as the current non-root user. - The required apple URLs are not whitelisted in your firewall/proxy. See https://support.apple.com/101555 for more information.
- If the VM log shows
The virtual machine failed to start, this is a problem with the Virtualization APIs accessing the keychain. Follow these steps:- Log into VNC.
- Go under System Preferences > Apple Intelligence & Siri.
- Enable Siri, wait 5 minutes, and then disable it (disable if it’s enabled already). Wait another minute or two for the Intelligence stuff to turn off fully.
- Then, delete all files under ~/Library/Keychains .
- Now go to System Preferences > Users & Groups > clicked on the (i) icon for the main user, and then do Change for Password.
- Reboot the host.
- Then try to open open /System/Library/CoreServices/Applications/Keychain\ Access.app and make sure you can log in and see the login keychain show in the list.
AMRestorePerformRestoreModeRestoreWithError failed with error: 1means that the host and VM have no internet connection.installation failed: Bad addressis a generiic error and you need to run the creation again withanka --debug create....- Anka Creation, especially for 15.x and above, requires networking to be enabled.
- Anti-virus and firewalls (even the apple firewall) are blocking networking initialization. They need to be disabled, or anka processes whitelisted.
- The macOS installation has failed for some reason. You can open the
anka view {name}to ensure that it is actually stuck or failed.- If so, try running
anka --debug create...from your terminal to see if it works a second time. If it keeps failing, report the issue to Veertu support with the output from theanka --debug createcommand. - It’s also possible that you haven’t given enough resources to the VM being created. We recommend a minimum of 2 vcpus and 4GBs of memory for stability.
- If so, try running
Examples of errors
On creation (status 70):
Fri Sep 26 09:44:34 10 (create) 59386: installing macOS 26.0.0...
ankahv-arm64: /Users/nathanpierce/Library/Application Support/Veertu/Anka/img_lib/UniversalMac_26.0_25A354_Restore.ipsw: failed to install macOS
Fri Sep 26 09:45:11 40 (create) 59386: 652a213b-b1a6-496c-ac9e-6b6a2c72cda4: failed to install /Users/nathanpierce/Library/Application Support/Veertu/Anka/img_lib/UniversalMac_26.0_25A354_Restore.ipsw: status 70
Fri Sep 26 09:45:11 40 (create) 59386: 652a213b-b1a6-496c-ac9e-6b6a2c72cda4: installation failed
anka: installation failed
In the ~/Library/Logs/Anka/anka.log, you will see the following errors:
When
gs.apple.comis not whitelistedFri Sep 26 09:35:39 40 (install) 58032: (null): installation failed: Error Domain=VZErrorDomain Code=10007 "Installation failed." UserInfo={NSLocalizedFailure=An error occurred during installation., NSLocalizedFailureReason=Installation failed., NSUnderlyingError=0x60000135c900 {Error Domain=com.apple.MobileDevice.MobileRestore Code=3004 "Failed to copy auth install options in DFU mode." UserInfo={NSLocalizedDescription=Failed to copy auth install options in DFU mode., NSLocalizedFailureReason=An unknown error occurred during installation.}}} Fri Sep 26 09:35:39 40 (install) 58032: (null): virtual machine stopped with error: Error Domain=VZErrorDomain Code=4 "Transition from state "stopped" to state "stopping" is invalid." UserInfo={NSLocalizedFailure=Invalid virtual machine state transition., NSLocalizedFailureReason=Transition from state "stopped" to state "stopping" is invalid.} Fri Sep 26 09:35:39 40 (install) 58032: failed to install macOS: Error Domain=VZErrorDomain Code=10007 "Installation failed." UserInfo={NSLocalizedFailure=An error occurred during installation., NSLocalizedFailureReason=Installation failed., NSUnderlyingError=0x60000135c900 {Error Domain=com.apple.MobileDevice.MobileRestore Code=3004 "Failed to copy auth install options in DFU mode." UserInfo={NSLocalizedDescription=Failed to copy auth install options in DFU mode., NSLocalizedFailureReason=An unknown error occurred during installation.}}}When
wkms-public.apple.comis not whitelisted:Fri Sep 26 09:43:24 40 (install) 59152: (null): installation failed: Error Domain=VZErrorDomain Code=10007 "Installation failed." UserInfo={NSLocalizedFailure=An error occurred during installation., NSLocalizedFailureReason=Installation failed., NSUnderlyingError=0x600002c34d20 {Error Domain=com.apple.MobileDevice.MobileRestore Code=-1 "AMRestorePerformRestoreModeRestoreWithError failed with error: 1109" UserInfo={NSLocalizedDescription=AMRestorePerformRestoreModeRestoreWithError failed with error: 1109, NSLocalizedFailureReason=An unknown error occurred during installation.}}} Fri Sep 26 09:43:24 40 (install) 59152: (null): virtual machine stopped with error: Error Domain=VZErrorDomain Code=4 "Transition from state "stopped" to state "stopping" is invalid." UserInfo={NSLocalizedFailure=Invalid virtual machine state transition., NSLocalizedFailureReason=Transition from state "stopped" to state "stopping" is invalid.} Fri Sep 26 09:43:24 40 (install) 59152: failed to install macOS: Error Domain=VZErrorDomain Code=10007 "Installation failed." UserInfo={NSLocalizedFailure=An error occurred during installation., NSLocalizedFailureReason=Installation failed., NSUnderlyingError=0x600002c34d20 {Error Domain=com.apple.MobileDevice.MobileRestore Code=-1 "AMRestorePerformRestoreModeRestoreWithError failed with error: 1109" UserInfo={NSLocalizedDescription=AMRestorePerformRestoreModeRestoreWithError failed with error: 1109, NSLocalizedFailureReason=An unknown error occurred during installation.}}}And finally, blocking
fcs-keys-pub-prod.cdn-apple.comcausesFri Sep 26 09:45:11 40 (install) 59390: (null): installation failed: Error Domain=VZErrorDomain Code=10007 "Installation failed." UserInfo={NSLocalizedFailure=An error occurred during installation., NSLocalizedFailureReason=Installation failed., NSUnderlyingError=0x600000eb48a0 {Error Domain=com.apple.MobileDevice.MobileRestore Code=-1 "AMRestorePerformRestoreModeRestoreWithError failed with error: 1109" UserInfo={NSLocalizedDescription=AMRestorePerformRestoreModeRestoreWithError failed with error: 1109, NSLocalizedFailureReason=An unknown error occurred during installation.}}} Fri Sep 26 09:45:11 40 (install) 59390: (null): virtual machine stopped with error: Error Domain=VZErrorDomain Code=4 "Transition from state "stopped" to state "stopping" is invalid." UserInfo={NSLocalizedFailure=Invalid virtual machine state transition., NSLocalizedFailureReason=Transition from state "stopped" to state "stopping" is invalid.} Fri Sep 26 09:45:11 40 (install) 59390: failed to install macOS: Error Domain=VZErrorDomain Code=10007 "Installation failed." UserInfo={NSLocalizedFailure=An error occurred during installation., NSLocalizedFailureReason=Installation failed., NSUnderlyingError=0x600000eb48a0 {Error Domain=com.apple.MobileDevice.MobileRestore Code=-1 "AMRestorePerformRestoreModeRestoreWithError failed with error: 1109" UserInfo={NSLocalizedDescription=AMRestorePerformRestoreModeRestoreWithError failed with error: 1109, NSLocalizedFailureReason=An unknown error occurred during installation.}}}