Apple Hypervisor is completely broken on MacOS Big Sur beta 9

I am trying to make a basic command-line tool that makes a VM and runs something using Apple Hypervisor.

When I try to run:

Code Block c
hv_vm_create(HV_VM_DEFAULT);

it gives me an error code -85377023.

I tried enforcing App Sandbox and setting the entitlement accordingly for the Big Sur compile target, and now I am getting this output in the console:

Code Block
Killed

From what I understand from this, this is AMFI killing my process. Is this a bug or my problem?

When I decided to go down the rabbit hole, I found that in the MacOS Big Sur 11.0.1 beta release notes, they deprecated hv_vm_run(_:), while the API documentation says that this function is in beta.

I didn't go as far as disabling AMFI with a kernel flag, but I am almost certain that this is not expected behavior. And that, no matter what, hv_vm_run(_:) can never be deprecated OR be in beta. I am sure that this function existed well before Big Sur.

If anyone can help me with this or just give a response, please do. Do not keep me in darkness as I don't want to waste time on something which is potentially broken.

Thank you.
See this thread. I don’t think it has all the answers you need, but there’s a lot of useful backstory for you to catch up on.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
@eskimo then this is a good question: how the hell does Parallels Desktop and VMWare work, if Apple Hypervisor is broken?
Apple Hypervisor is completely broken on MacOS Big Sur beta 9
 
 
Q