install gui with lxc container

thierryb180381

New Member
Aug 14, 2017
14
0
1
43
Hello,

I begin to interest to LXC Container as I could use it on Proxmox.

For the moment, I'm just used with virtual machine based on KVM.

I see that first we have to use a template by OS. it seems that this template is always minimal. So for example, with ubuntu or fedora container, if we want a Gui, we will have to install manually the package associated?

Like ubuntu-mate-desktop for mate environment but for Fedora, I dont see which package to install after. Or maybe a container it's not made to have necessary a gui interface so not possible for some distributions?

Thanks.
 
Hello,

But it's a template you have made yourself?

Thanks for the link to your project but to understand, the way you proceed :

- you started by a minimal template as there is in lxc so without gui
- you installed packages for gui
- and finally you recreated a new template from your new container?

Thanks.
 
Hello,

But it's a template you have made yourself?

Thanks for the link to your project but to understand, the way you proceed :

- you started by a minimal template as there is in lxc so without gui
- you installed packages for gui
- and finally you recreated a new template from your new container?

Thanks.
Yes thats it :)
 
Ha ok thanks for your answer for ubuntu, but for example, what happens if I would install a fedora template? I would have to find the right package for x interface myself also?
 
Hello,

I try to install myself mate desktop in my LXC container 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


Even with apt-get -f install or dpkg --configure -a resolves that :(.

Do you have an idea?

Thanks.
 
I had the same, it should work, but yes not with the metapackage. There are a lot of packages that only works on a real machine. Wo you must separate.
 
Hello, I don't understand. What do you call meta package?

I tried several different ways :

- without any modification of repo with : apt install --install-suggests mate-desktop

- with ppa:ubuntu-mate-dev/xenial-mate and apt install mate-core mate-desktop-environment : it works but too light (for example, when I put a usb key, I don't see it in the desktop as it was the case on my actual host native ubuntu mate, even if in both case, usb key is detected) and then when i try to install mate-desktop-environment-extras, it hangs with error on bluez and blueman)

Thanks.
 
Mate-desktop is a metapackages that includes a lot of packages, and that is the problem. You must install for example: mate-core, mate-terminal, firefox and others. You must manually select the packages you want.
 
Hello,

To be more precise with just mate-desktop-environment-core, it works but I don't see my usb key even if it's detected with dmesg on the container. It seems when searching on internet, that I could need dconf-editor (which is present in my built in Ubuntu Mate and not in this minimal container). So as you said for example, I have to install it manually or maybe it's too precise and ou advise me to install a more global package?

Could tell me exactly which packages you installed to have the equivalent of pre build Ubuntu Mate 16.04 ? (if it doesnt take you too much time in case you always have the list), but a environment enough complete to be able to display an usb key when it detects it).

Many thanks.
 
Last edited:
I don't know what packages i have installed exactly. It is a long time ago that i have build the system. But my knowledge usbkey and other hardware can't work. It's a container not an KVM. That is the reason that i installed x2go. This is the only way you can enter in graphical mode, with that you can mount also an specific path. And yes you can also use an KDE-Neon Desktop with nomachine. This works also fine. Had it installed for some months .
If you would like to compare the packageslist simply download my template. Then list all installed packages. For example:
Code:
dpkg –get-selections '*' > packages.txt
You can also install that packages on a targetsystem like:
Code:
dpkg –set-selections < packags.txt
apt-get dselect-upgrade
 
Hello,

Thanks I will try for your template to see which packages are installed and compare it to mine.

A last question, if on my guest container, I see the device, I don't understand why this usb key can't be mounted automatically because it's in a container? Why dmesg work to detect it on the guest and the auto mounting could not work?

Or even if it's not auto mounted, to just have to click on it tu mount maybe?

Thanks :)
 
Last edited:
Hello,

When I try to import your template and directly to connect on it with my x2goclient, I have an error message which say : "
Échec de la connexionmesg: ttyname failed: Inappropriate ioctl for device".

You see where is the problem?

Thanks.
 
Hello,

When I try to import your template and directly to connect on it with my x2goclient, I have an error message which say : "
Échec de la connexionmesg: ttyname failed: Inappropriate ioctl for device".

Have it installed here fresh on PVE5, and works fine.

Thanks.
Have here on PVE5 an fresh installed, and it works fine.

Client on KDE-Neon 16.04.

Here my config:
Code:
rch: amd64
cores: 4
hostname: mate
memory: 2148
net0: name=eth0,bridge=vmbr0,hwaddr=6A:7C:AF:67:F0:97,ip=dhcp,ip6=auto,type=veth
ostype: ubuntu
rootfs: HDD-vmdata-LXC:subvol-109-disk-1,acl=1,size=10G
swap: 512
 
Last edited:
Hello,

just getting started with Proxmox and LXC...
I was able to upload your template to Proxmox V5..
Created a CT from it and ran into the same errror message as thierryb180381 when connecting to it via X2Go (from windows, type: MATE):
"mesg: ttyname failed: Inappropriate ioctl for device"
Quick search showed a possible relation to Vagrant, but I don't see this happening here in your image..

You ran the image on what looks to me like a full VM, is that correct?
Might this eror be related to running it as a container (template)?

Any idea how to fix this..?
Thanks!

Regards
Niels
 
you can also try this if you want fedora 25

here is the full link https://ask.fedoraproject.org/en/qu...king-graphical-desktop-on-f25-server-edition/
but essential commands are :
First of all install GNOME Shell Desktop Environment:
su -c 'dnf group install workstation-product-environment'

Then, you will have to set Graphical Login as Default:
su -c 'systemctl set-default graphical.target'

And also you might have to enable gdm.service:
su -c 'systemctl enable gdm.service'

I am sure if you search for proper commands for the distro you want to use you can find them too.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!