vftool
vftool copied to clipboard
Vm Wont Boot on Big Sur Xcode 12 using ARM
A few issues here out the box from an xcodebuild I get permissions denied, I then have to CD to ~/vftool/build/Release then I am able to run the following command: ./vftool -k vmlinuz -i initrd -d focal-desktop-arm64.iso -m 4096 -a "console=hvc0" without getting permission denied.
Yet when the VM starts to load from the disk image: focal-desktop-arm64.iso I get the following error:
VM start error: Error Domain=VZErrorDomain Code=2 "The boot loader is invalid." UserInfo={NSLocalizedFailure=Invalid virtual machine configuration., NSLocalizedFailureReason=The boot loader is invalid., NSUnderlyingError=0x13e6187f0 {Error Domain=VZErrorDomain Code=2 "Failed to open the kernel file." UserInfo={NSLocalizedFailure=Invalid virtual machine configuration., NSLocalizedFailureReason=Failed to open the kernel file., NSUnderlyingError=0x13e704370 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}}}
OS Is Big Sur using Xcode 12
Failed to open the kernel file
- did you uncompress the kernel file ? You can check with file vmlinuz
.
Do first mv vmlinux vmlinuz.gz
than gunzip vmlinuz.gz
. Then retry.