Lxc with proxmox to use a LXC gui container

Hello,

I’m testing proxmox and its ability to create LXC container.

I tried to install ubuntu mate from an LXC container with template of ubuntu 16.04. It seems so that all pre existing template are just text and we have to install ourself gui interface.

For example, this is the error I have when I try to install it with apt-get install ubuntu-mate-desktop.

But I have dependances errors :

Aug 18 10:28:30 ubuntu systemd[1]: bluetooth.service: Failed with result ‘exit-code’.
dpkg: error processing package bluez (–configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of indicator-bluetooth:
indicator-bluetooth depends on bluez (>= 5); however:
Package bluez is not configured yet.

dpkg: error processing package indicator-bluetooth (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of unity-control-center:
unity-control-center depends on indicator-bluetooth; however:
Package indicator-bluetooth is not configured yet.

dpkg: error processing package unity-control-center (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of unity-control-center-signon:
unity-control-center-signon depends on unity-control-center; however:
Package unity-control-center is not configured yet.

dpkg: error processing package unity-control-center-signon (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pulseaudio-module-bluetooth:
pulseaudio-module-bluetooth depends on bluez (>= 5.23); however:
Package bluez is not configured yet.

dpkg: error processing package pulseaudio-module-bluetooth (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-bluetooth:
gnome-bluetooth depends on bluez (>= 5.5); however:
Package bluez is not configured yet.

dpkg: error processing package gnome-bluetooth (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-mate-desktop:
ubuntu-mate-desktop depends on pulseaudio-module-bluetooth; however:
Package pulseaudio-module-bluetooth is not configured yet.

dpkg: error processing package ubuntu-mate-desktop (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of blueman:
blueman depends on bluez (>= 4.61); however:
Package bluez is not configured yet.

dpkg: error processing package blueman (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-mate-core:
ubuntu-mate-core depends on pulseaudio-module-bluetooth; however:
Package pulseaudio-module-bluetooth is not configured yet.

dpkg: error processing package ubuntu-mate-core (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-user-share:
gnome-user-share depends on gnome-bluetooth (>= 3.9.3); however:
Package gnome-bluetooth is not configured yet.

dpkg: error processing package gnome-user-share (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
bluez
indicator-bluetooth
unity-control-center
unity-control-center-signon
pulseaudio-module-bluetooth
gnome-bluetooth
ubuntu-mate-desktop
blueman
ubuntu-mate-core
gnome-user-share

Is it possible to have this working perfectly on lxc or it’d not recommended?

Thanks

It’s possible to install and run GUI apps from a container, but you’d usually install individual software rather than an entire desktop. That’s unless your goal is to offer a VNC/NX type remote desktop environment, in which case installing the entire desktop does make sense.

Here it looks like package installation is failing due to the bluetooth service failing to start. You’d need to look into that particular systemd unit and either override it or mask it which should let you go a bit further.

In this blog post: http://ghanima.net/doku.php?id=wiki:lxc:guiappsinlxd

scroll down (or search) for the section that begins with: bluetoothd error (probably unnecessary)

Shaun describes a work-around for the bluetooth that you might try.

I’ve seen those same errors if I try to install a full desktop in an “unprivileged” container. I never see them in a “privileged” container though.

Brian