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

Update template.xml.in and basic.sh #55

Merged
merged 6 commits into from
Nov 12, 2022
Merged

Update template.xml.in and basic.sh #55

merged 6 commits into from
Nov 12, 2022

Conversation

therealrem
Copy link
Contributor

Adding those quemu args and following with this guide (https://github.com/MobCode100/Dastux/blob/main/VoodooHDA-QEMU-KVM.md) will enable audio playback without passthrough in the macOS VM (tested with Ventura).

Adding those quemu args and following with this guide (https://github.com/MobCode100/Dastux/blob/main/VoodooHDA-QEMU-KVM.md) will enable audio playback without passthrough in the macOS VM (tested with Ventura).
Copy link
Owner

@notAperson535 notAperson535 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add these changes to basic.sh too?

Also removed ICH9 audio which is useless
@therealrem therealrem changed the title Update template.xml.in Update template.xml.in and basic.sh Nov 12, 2022
@therealrem
Copy link
Contributor Author

Also removed ICH9 audio which is useless in template.xml.in

@therealrem
Copy link
Contributor Author

Could you add these changes to basic.sh too?

done :)

@therealrem
Copy link
Contributor Author

@notAperson535 Please wait a bit, sound is actually NOT working with basic.sh despite changes I've made. Looking for a solution...

@notAperson535
Copy link
Owner

@notAperson535 Please wait a bit, sound is actually NOT working with basic.sh despite changes I've made. Looking for a solution...

Ok

@therealrem
Copy link
Contributor Author

therealrem commented Nov 12, 2022

@notAperson535

OK got it sorted. Both updated files are now fine.

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

  1. Disable System Integrity Protection (SIP) :
  • On boot, select the recovery partition (arrow keys) and press enter to boot into it.
  • Open the Terminal.
  • Run the below command (choose either one) :
    csrutil disable
    or
    csrutil enable --without kext
  • Reboot your VM in macOS.
  1. Download latest VoodooHDA kext from here : https://sourceforge.net/projects/voodoohda/

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

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

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

  5. Allow "VoodooHDA" and restart.

Credits : https://github.com/MobCode100/Dastux/blob/main/VoodooHDA-QEMU-KVM.md

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

Maybe those steps should be added in the Install Guide :-)

@notAperson535
Copy link
Owner

Maybe those steps should be added in the Install Guide :-)
Exactly what I was thinking. Merging now.

@notAperson535 notAperson535 merged commit 62e4369 into notAperson535:master Nov 12, 2022
@therealrem therealrem deleted the patch-3 branch December 11, 2022 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants