Run GUI in lxc container

xtavras

Renowned Member
Jun 29, 2015
31
2
73
Berlin
HI all,

general question - is it possible to run X server in lxc container on Proxmox? Fast googling shows it certainly possible, but if I start X with "startx" in debian 8 template's container I get fatal errors since /dev/tty0 does not exist, creating the later per hand doesn't solve problem, I assume there is need to touch lxc conf. files on Proxmox host. Does anybody knows which one?

Thanks.
 
When you do this, can you get console output in the management interface like with a KVM guest, or do you need to manually connect to the VNC server using a locally installed VNC client?
 
so, I wound up taking a slightly different approach to this usng X2go. This does not require any xserver or xvfb running on the guest.

First I installed LXDE in my Ubuntu container using apt-get, but with the --no-install-recommends option, so it doesn't pull in the entire X server which is just a waste of space.

Then I installed the x2go server in the container from the PPA as described here.

After that I just installed the x2go client on my desktop and connected without any trouble at all.

I was expecting this to be difficult, but this one just works. It was a positive surprise.
 

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!