You are not logged in.

#1 2024-02-29 14:01:21

Succulent of your garden
Member
Registered: 2024-02-29
Posts: 16

[SOLVED] Arch Virtual machine not working with sound (Pipewire issue)

Hi

I been creating a Qemu machine by command line  like this:

     qemu-system-x86_64 -enable-kvm -smp 6 -m 4G -nic user,model=virtio -drive file=ArchVm.Cow2,media=disk,if=virtio -cdrom ~/Downloads/archlinux-2024.02.01-x86_64.iso -device intel-hda -device hda-duplex

But for some reason the Arch machine doesn't make any sound, but everything else works fine. Also I tried with the  flag -vga virtio -display sdl,gl=on to get more performace, also this option works. But now the only thing left to complete my setup is the sound issue.

I installed pipewire, wireplumber, pipewire-audio, pipewire-alsa, pipewire-pulse and pipewire-jack but i'm been unable to connect the vm to the host to be able to produce sound. I'm not sure what could be wrong. The host system also use pipewire and works well. 

If I'm not wrong ussing virt-manager probably I can get vms with sound working, but I like to launch my vms by hotkeys, and also I don't want to have the extra packages for virt-manager in my system.  but I could make an installation to check if what I'm saying is true. 

For any help and comment. Thanks !

Last edited by Succulent of your garden (2024-03-07 22:22:56)

Offline

#2 2024-02-29 14:03:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,754

Re: [SOLVED] Arch Virtual machine not working with sound (Pipewire issue)

You aren't adding an audio device that your virtual card connects to: https://wiki.archlinux.org/title/QEMU#Audio -- and are relevant backends (like qemu-audio-pipewire) installed?

Last edited by V1del (2024-02-29 14:09:01)

Offline

#3 2024-03-07 22:20:00

Succulent of your garden
Member
Registered: 2024-02-29
Posts: 16

Re: [SOLVED] Arch Virtual machine not working with sound (Pipewire issue)

Thanks very Much V1del. I just launched the backend service with the ideal flags for my system  and works.

   Have a nice week

Last edited by Succulent of your garden (2024-03-07 22:20:24)

Offline

Board footer

Powered by FluxBB