RancherOS and sound module (missing /dev/snd)

I haven’t followed this thread for a while … the release you are referring to must be ros 0.5, isn’t it?
If I am not mistaken that is released, right? would you mind to post the link to the “page in the docs” here?

1 Like

Is there any update on this? I’m seriously interested into moving my desktop to RancherOS which would make it a lot easier for me to target RancherOS on all our server machines. Getting sound, xwindows, etc… working and somewhat supported would be a huge step forward for us.

RancherOS ros service / compose misses two features I need to build my RancherOS Desktop: tmpfs, group_add.

kernel-extra service is required!
sudo ros s enable kernel-extras
sudo ros s list

...
enabled  kernel-extras
...

My example service files:

base service (xorg, dbus, volumeicon)

#version: '2'
#services:
  xorg:
    image: "dengleros/xorg"
    container_name: xorg
    hostname: xorg
    privileged: true
    read_only: true
    restart: always
    environment:
    - DISPLAY=:0
    tmpfs:
    - /var/log
    volumes:
    - dengleros-tmp:/tmp
    # Workaround missing tmpfs
    - /var/log
    user: root

  dbus:
    image: "dengleros/dbus"
    container_name: dbus
    hostname: dbus
    read_only: true
    restart: always
    labels:                   
    - io.rancher.os.after=xorg
    volumes:
    - dengleros-varlibdbus:/var/lib/dbus
    - dengleros-varrundbus:/var/run/dbus
    - dengleros-homeuserdbus:/home/user/.dbus
    # xorg volume
    - dengleros-tmp:/tmp

  volumeicon:
    image: "dengleros/volumeicon"
    container_name: volumeicon
    hostname: volumeicon
    restart: always
    labels:
    - io.rancher.os.after=xorg
    environment:
    - DISPLAY=:0
    devices:
    - /dev/snd:/dev/snd
    volumes:
    - dengleros-volumeicon:/home/user/.config/volumeicon
    # Volume xorg
    - dengleros-tmp:/tmp 

Fluxbox DE
xterm with (user-)docker access.

#version: '2'
#services:
  fluxbox:                                   
    image: "dengleros/fluxbox"               
    container_name: fluxbox                  
    hostname: fluxbox                        
    restart: unless-stopped                  
    labels:                                  
    - io.rancher.os.after=xorg               
    - io.rancher.os.after=dbus               
    environment:                             
    - DISPLAY=:0                             
    volumes:                  
    - dengleros-homeuserfluxbox:/home/user/.fluxbox
    - /usr/bin/docker:/usr/bin/docker              
    - /var/run/docker.sock:/var/run/docker.sock    
    # Volumes xorg and dbus                        
    - dengleros-varlibdbus:/var/lib/dbus           
    - dengleros-varrundbus:/var/run/dbus           
    - dengleros-homeuserdbus:/home/user/.dbus      
    - dengleros-tmp:/tmp   

Chromium browser (needs compose group_add…)

docker run -dti --name chromium --hostname chromium --group-add audio --group-add video --volumes-from xorg --volumes-from dbus -e DISPLAY=:0 --shm-size=512m  --device /dev/snd --device /dev/dri --user root dengleros/chromium

Should boot to a fluxbox DE with xterm and (user-)docker access. Images are alpine based, but it’s possible to mix up different distributions (I started with a volumeicon @ debian and moved to alpine later).

The images are testing and not optimized, but works fine for me :wink:
Privileges should be reduced and user moved from root to a normal user…
I created a simple login screen (i3lock), but isn’t added with this example above.

@ibuildthecloud
Do you know when compose v2 syntax with group_add and tmpfs will be available at RancherOS (ros service)? group_add and tmpfs could be merged to docker-compose, but maybe not released yet…?

Any one created a wifi container with a gui / applet like wicd / connman-ui / wpa_gui?

wlan0 is inside my container (–net=host), but no interfaces listed in wpa_gui… I don’t know why the wpa_gui can’t find wlan0 interface…

Don’t know why… works fine now and moved to RancherOS service.

  wpagui:
    image: "dengleros/wpagui"
    container_name: wpagui
#    hostname: wpagui
    restart: always
    net: host
    cap_add:
    - NET_ADMIN
    labels:
    - io.rancher.os.after=xorg
    environment:
    - DISPLAY=:0
    - QT_X11_NO_MITSHM=1
    - QT_GRAPHICSSYSTEM=native
    volumes:
    - dengleros-tmp:/tmp

DenglerOS Desktop with separated xorg, dbus, volumeicon, wpa_gui, fluxbox and sound / wlan. As desktop fluxbox and manually started chromium browser and additional applications (terminator, keepassx, atom, …).