Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

big sur requires qemu to be code-signed #842

Open
eyberg opened this issue Dec 21, 2020 · 7 comments
Open

big sur requires qemu to be code-signed #842

eyberg opened this issue Dec 21, 2020 · 7 comments
Assignees
Labels

Comments

@eyberg
Copy link
Contributor

eyberg commented Dec 21, 2020

https://www.reddit.com/r/VFIO/comments/kdhgni/qemu_hvf_support_for_mac_os_x_bug_sur_hv_error/

install should prompt the user to run the following if on big sur or later

codesign -s - --entitlements app.entitlements --force qemu-system-x86_64

app.entitlement:

<?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>
@eyberg eyberg added the osx label Dec 21, 2020
@eyberg eyberg self-assigned this Dec 23, 2020
@eyberg
Copy link
Contributor Author

eyberg commented Jan 13, 2021

I think i just ran into this (after updating to big sur) but strange that I didn't codesign before, it's not showing entitlements - and it was spurious - doesn't seem to be easily reproducible.

qemu-system-x86_64: Error: HV_ERROR
signal: abort trap
➜  ~ which qemu-system-x86_64
➜  ~ codesign -d --entitlements :-  /usr/local/bin/qemu-system-x86_64
/usr/local/bin/qemu-system-x86_64: code object is not signed at all

@joshuaquek
Copy link

joshuaquek commented Oct 19, 2021

Running into the same issue too, any fix for this on Ops?

@eyberg
Copy link
Contributor Author

eyberg commented Oct 19, 2021

@joshuaquek can you run what I pasted in the top comment here? that'll codesign it manually - we just haven't added it to the install script yet

@joshuaquek
Copy link

Thanks @eyberg !
I followed this guide (similar to what you did): https://www.arthurkoziel.com/qemu-on-macos-big-sur/

and now it works!

@joshuaquek
Copy link

I think we can close this issue

@eyberg
Copy link
Contributor Author

eyberg commented Oct 21, 2021

glad to hear it works, i'm going to keep this open until the install script is updated here https://github.com/nanovms/ops/blob/master/install.sh

@joshuaquek
Copy link

thanks @eyberg !!! 🙏🏼🙏🏼🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants