Skip to main content

Audio passthrough (without external card)

From repo issue which is based off of the original writeup (also linked above)

If you want sound inside your macOS VM, whether with qemu or libvirt/virt-manager :

1) Disable System Integrity Protection (SIP) :

  • On boot, when you see the OpenCore selection screen, hit the space bar.
  • You should then see an entry that says "toggle SIP", "disable SIP" or something similar
  • Use the keyboard to select it and hit enter
  • Once the process completes, boot as normal.

2) Download latest VoodooHDA kext from here : https://sourceforge.net/projects/voodoohda/

3) Open the terminal application, run : sudo cp -R Downloads/VoodooHDA.kext /Library/Extensions (enter password when prompted).

4) Wait a few seconds, a popup should appear => "Open Security Preferences". 4a) If no popup, run : sudo kextutil -v /Library/Extensions/VoodooHDA.kext

5) If you did not click on the "Open Security Preferences", go to "Security & Privacy" section inside "System Settings application".

6) Allow "VoodooHDA" and restart.

If you want sound to get working DO NOT execute the VM as root or you will encounter some alsa errors and you won't hear anything ! => Do not run "sudo ./basic.sh" but simply "./basic.sh"

Same issue with virt-manager : ensure your current user has the appropriate rights ! : sudo adduser $USER libvirt && sudo adduser $USER kvm && sudo adduser $USER libvirt-qemu