Page 1 of 1
User Mode Linux (persistent) no sound
Posted: Wed Jan 15, 2025 9:24 pm
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?
Re: User Mode Linux (persistent) no sound
Posted: Thu Jan 16, 2025 9:47 pm
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