Basic example of Virtualization fails with Error Domain=VZErrorDomain Code=1

System details

  • MacBook Pro
  • macOS Monterey: 12.4
  • Chip: Apple M1 Max
  • Mem: 32 GB

Language & Region config

  1. Primary Language: English
  2. Secondary Langauge: Polish

STR:

  1. goto https://developer.apple.com/documentation/virtualization/running_linux_in_a_virtual_machine?language=objc
  2. download recommended https://fedora.cu.be/linux/releases/36/Everything/aarch64/os/images/pxeboot/
  3. Build it in XCode
  4. run LinuxVirtualMachine passing downloaded pxeboot files

Result: Failed to start the virtual machine. Error Domain=VZErrorDomain Code=1 "The virtual machine failed to start." UserInfo={NSLocalizedFailure=Internal Virtualization error., NSLocalizedFailureReason=The virtual machine failed to start.}

Post not yet marked as solved Up vote post of spamshaker Down vote post of spamshaker
1.5k views

Replies

Thanks for reporting the problem. It looks like the kernel changed since we tested it. We'll have to update the documentation with a link to an uncompressed kernel.

If you rename the vmlinuz to vmlinuz.gz then extract it then it will work