Skip to content

Instantly share code, notes, and snippets.

@pojntfx
Created January 23, 2021 01:28
Show Gist options
  • Save pojntfx/c41e9daed0a087a11eb83e786a15b199 to your computer and use it in GitHub Desktop.
Save pojntfx/c41e9daed0a087a11eb83e786a15b199 to your computer and use it in GitHub Desktop.
Fix Error: HV_ERROR for QEMU on macOS Big Sur
echo '<?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>' > /tmp/app.entitlements
codesign -s - --entitlements /tmp/app.entitlements --force $(which qemu-system-x86_64)
# Source: https://www.reddit.com/r/VFIO/comments/kdhgni/qemu_hvf_support_for_mac_os_x_bug_sur_hv_error/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment