User Mode Linux (persistent) no sound

Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
libertas
Posts: 119
Joined: Thu Apr 22, 2021 8:35 pm
Has thanked: 24 times
Been thanked: 3 times

User Mode Linux (persistent) no sound

Post by libertas »

Hi,

I'd like to run several programs in which I have low trust (like Telegram client) in a container.

It seems that both rw-sandbox.sh and rw-sandbox-lxc.sh cannot provide a persistent container that could be able to save session information, as I don't want to have to associate devices or enter credential each day I want to use some app.

User Mode Linux seemed like a good candidate, as it can be run with persistent storage.
http://distro.ibiblio.org/fatdog/web/faqs/uml.html

I can run Telegram inside of it, but there's no audio output, as no audio device is detected.
Is it possible to have audio from a UML virtual machine?

Or, can some lxc container be made persistent?

Or do I have to jump into some fatter virtual machine, like Qemu, Kvm or VirtualBox?

step
Posts: 561
Joined: Thu Aug 13, 2020 9:55 am
Has thanked: 60 times
Been thanked: 206 times
Contact:

Re: User Mode Linux (persistent) no sound

Post by step »

libertas wrote: Wed Jan 15, 2025 9:24 pm

I can run Telegram inside of it, but there's no audio output, as no audio device is detected.
Is it possible to have audio from a UML virtual machine?

I don't know for sure but I found the following quote, which makes me think the answer to your question is, "yes".

Appendix A. UML Command-Line Options
There are a number of UML-specific command-line options. The largest group configures the hardware and devices that the virtual machine will have. The rest are used to specify how the instance will be managed from the host, to set debugging options, or to print information about the UML instance.

Device and Hardware Specifications
The following options set configurations for virtual devices and hardware.

• dsp= dsp device and mixer= mixer device—These two options specify the host audio interfaces for the use of the UML audio pass-through driver. The default values are /dev/sound/dsp and /dev/sound/mixer, respectively. If you wish to play sound from within your UML instance, and the host digital signal processor ...

source: https://www.oreilly.com/library/view/us ... 6/apa.html
but there isn't any other information on that page.

See also https://user-mode-linux.sourceforge.net ... tches.html

Post Reply

Return to “FatDog”