[MacPorts] #61996: qemu hvf support on Big Sur requires signing security entitlement

MacPorts noreply at macports.org
Wed Jan 6 03:13:30 UTC 2021


#61996: qemu hvf support on Big Sur requires signing security entitlement
--------------------+--------------------
 Reporter:  jxy     |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  qemu
--------------------+--------------------
 When running `qemu-system-x86_64 -machine accel=hvf ...` on macOS Big Sur,
 qemu exits with `qemu-system-x86_64: Error: HV_ERROR`.  After performing
 'ad-hoc signing' and giving it the `com.apple.security.hypervisor`
 entitlement, it works.  Perhaps we need a `post-destroot` that runs
 `codesign`.  Here is what I did.

 {{{
 % ed ent.xml
 a
 <?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>
 .
 wq
 % sudo codesign -s - --entitlements ent.xml /opt/local/bin/qemu-system-
 x86_64
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61996>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list