Xorg support for containers?

verulian

Active Member
Feb 18, 2019
165
15
38
44
Is it possible to run a full desktop distribution of Linux (ie, Xubuntu) as a container in Proxmox? Or does it have to be a virtual machine with virtualized graphics that may not be available to containers?
 
yes, you can use Xubuntu desktop.
We use Xubuntu LXC container as terminal server for some bugaltery software :)
 
Interesting, can you explain how to get xorg working in a container? For example, I installed the Ubuntu 18.04 container as per the available template from Proxmox. I then did a `tasksel install xubuntu-desktop` and it installed Xubuntu Desktop just fine, however when I attempted to start xorg I hit errors. I suddenly thought or realized that perhaps this would have trouble running as a container... Is there a particular process to follow to get it working properly and to show up in the Proxmox container Console?
 
So what would you do in a case where you need to maintain open some apps that execute and need to stay running in xorg?

Perhaps I'm misunderstanding as I'm thinking that x2go doesn't "stay" running on the server side as far as graphical interface provisioning goes and only instantiates when a client connects.
 
9NfbSKZ.png
 
So what would you do in a case where you need to maintain open some apps that execute and need to stay running in xorg?

Perhaps I'm misunderstanding as I'm thinking that x2go doesn't "stay" running on the server side as far as graphical interface provisioning goes and only instantiates when a client connects.

applications don't closed after disconnect from server. clients able reconnect to server and software still running on it.
 
That's excellent and seems simple enough to get going. I was able to simply `apt install x2goserver` and pretty much get it going.

One question I guess I have is how would you initiate some kind of graphical app to start at system boot? For example, if I want the container to run at boot and to execute a graphical app in a session that needs to start up before any user logs in manually (let's say a VPN connection tool), then is there a way to do this?
 
hmm i just reboot server, and see that DE (xfce etc) or DM (GDM etc) not start before users login (and users can user different DE on server) so yu can't start some software before session
and after login still no DM process
 
Yes I see this too. I'm trying to figure out a way to get it to start automatically somehow, but I'm not seeing a solution yet.
 
Thanks @tom! Good to see others doing this, but one thing it doesn't seem to cover is the latter portion of this discussion regarding starting xorg at system start with accompanying GUI apps (without requiring user interaction).
 

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!