Opened 21 months ago

Closed 9 months ago

#61996 closed defect (fixed)

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


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 entitlement, it works. Perhaps we need a post-destroot that runs codesign. Here is what I did.

% ed ent.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
% sudo codesign -s - --entitlements ent.xml /opt/local/bin/qemu-system-x86_64

Change History (3)

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

Owner: set to raimue
Status: newassigned

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

comment:3 Changed 9 months ago by raimue (Rainer Müller)

Resolution: fixed
Status: assignedclosed

I think this problem has already been resolved and should work with qemu @6.2.0.

Note: See TracTickets for help on using tickets.