Hello, newbie to incus…
On my host I have pipewire, pipewire-pulse & wireplumber running. I have sound…
I have installed the same packages on the container…no sound from the container.
I have been trying to follow a guide to setup pipewire for an incus instance.
I have also tried to familiarize myself with proxy devices by going through the lxd proxy devices video.
My understanding is that the device options:
- listen → the address to listen for traffic
- connect → the address to send traffic
- bind=instance → listen on the instance and send to host
I execute the configuration from the guide
incus config device add arch-container \ 12:23:37
PipewireSocket1 \
bind=instance \
connect=unix:/run/user/1000/pipewire-0 \
uid=1000 \
gid=1000 \
listen=unix:/tmp/pipewire-0 \
mode=0777 \
security.gid=1000 \
security.uid=1000 \
type=proxy
Am I correct in thinking that, the above command is adding a proxy device that should listen on /tmp/pipewire-0 in the instance & forward traffic to /run/user/1000/pipewire-0 on the host?
What actually happens is that on the host machine I can see /tmp/pipewire-0 (and /tmp/pipewire-0-manager). They are not on the instance.
So when I export PIPEWIRE_REMOTE=/tmp/pipewire-0-manager
on the instance and then try to test pw-play
I get an error: error: pw_context_connect() failed: Host is down
. I am guessing that’s because the socket is not there…
Is the configuration correct?
One final stupid question, if I am going to be sending the traffic to the host then why do I need to install pipewire, etc on the instance?
I have a feeling I am missing a few fundamental concepts…
Thanks in advance