Opened 3 months ago

Last modified 3 months ago

#61996 assigned defect

qemu hvf support on Big Sur requires signing security entitlement

Reported by: jxy (Xiao-Yong) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: qemu

Description

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

Change History (2)

comment:1 Changed 3 months ago by jmroot (Joshua Root)

Owner: set to raimue
Status: newassigned

comment:2 Changed 3 months ago by trodemaster (Blake Garner)

Note: See TracTickets for help on using tickets.