. Advertisement .
..3..
. Advertisement .
..4..
We recently upgraded our Mac to Big Sur 11.3, but since then, we have kept receiving mysterious crashes anytime we operate emulated equipment. The error states like this qemu-system-x86_64: failed to initialize HAX: Operation not supported by device in Big Sur. Without further delay, let’s begin solving this error.
Why does the “qemu-system-x86_64: failed to initialize HAX: Operation not supported by device in Big Sur” error occur?
We recently upgraded the Mac into Big Sur 11.3, and since then, anytime we attempt to activate emulated equipment, it has been mysteriously crashing on macOS. Also, when we went to launch the emulator using the Terminal, we received the following error message.
handleCpuAcceleration: feature check for hvf
cannot add library /Users/dream/Library/Android/sdk/emulator/qemu/darwin-
x86_64/lib64/vulkan/libvulkan.dylib: failed
added library /Users/dream/Library/Android/sdk/emulator/lib64/vulkan/libvulkan.dylib
cannot add library /Users/dream/Library/Android/sdk/emulator/qemu/darwin-
x86_64/lib64/vulkan/libMoltenVK.dylib: failed
HVF error: HV ERROR
qemu-system-x86_64: failed to initialize HVF: Invalid argument Failed to open the hax module
No accelerator found.
qemu-system-x86_64: failed to initialize HAX: Operation not supported by device
added library /Users/dream/Library/Android/sdk/emulator/lib64/vulkan/libMoltenVK.dylib
How To Fix The Error?
You may get around the problem until the Search engine addresses emulator code registration with the revised entitlements by obtaining the entitlement yourself. Create a new file entitled entitlements.xml with the given information.
The Specific Solution
Entitlements are vital pairs that allow an executable to utilize a service. Under this scenario, the QEMU binary cannot construct and maintain virtual machines. So, you must include the entitlement in the binary.
First, establish an XML file called entitlements.xml with the following information.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.hypervisor</key>
<true/>
</dict>
</plist>
Then, apply this command.
codesign -s - --entitlements entitlements.xml --force /usr/local/bin/qemu-system-x86_64
Whenever you receive the problem, open the terminal in a directory that contains the qemu-system-x86_64 package.
Next, right-click on the darwin-x86 64 directory and select New Terminal Window at Folder from the menu that appears. Remember to place your entitlements.xml documents in the darwin-x86 64 directory. Finally, execute the command at the terminal.
Conclusion
Our solution on qemu-system-x86_64: failed to initialize HAX: Operation not supported by device in Big Sur has provided you a way to solve this error. You may as well use your more suitable solution if you happen to figure out any. Let us know if you have any concerns about the problem. Thank you for reading!
Read more
→ The Best Solution For “Android Device Manager fails to launch after updating to MacOS Big Sur 11.3”?
Leave a comment