LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 02-24-2020, 04:45 AM   #1
Framu
Member
 
Registered: Dec 2019
Posts: 36

Rep: Reputation: Disabled
Running GUI apps inside a LXC container?


When I search the web for info about running GUI apps inside a LXC container I find very little info. I see some mention of running a GUI app inside a docker container however I want a regular LXC container. Is this actually possible?
 
Old 02-24-2020, 04:48 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Stéphane Graber, Mr. LXC himself, seems to think it's possible. That was seven years ago with LXC 1.0. No, I haven't tried it.

Last edited by berndbausch; 02-24-2020 at 04:49 AM. Reason: spelling
 
Old 02-26-2020, 12:56 PM   #3
jdrosales
LQ Newbie
 
Registered: Feb 2020
Location: Virginia, USA
Distribution: Ubuntu, Debian
Posts: 21
Blog Entries: 1

Rep: Reputation: 3
Quote:
Originally Posted by Framu View Post
When I search the web for info about running GUI apps inside a LXC container I find very little info. I see some mention of running a GUI app inside a docker container however I want a regular LXC container. Is this actually possible?
Look for the xrdp server in you distro repo, it might help you achieve what you want to do.
Alternatively, look at their github site: https://github.com/neutrinolabs/xrdp

Gook luck!
 
Old 03-03-2020, 06:50 PM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
with X in the host, you need to:

1. have communications from the GUI app to X either by a Unix pipe (presumably in a shared filesystem) or by TCP/IP crossing the container boundary.

2. the process (shell?) starting the GUI app having the correct values in the necessary environment variables. ssh may be helpful but shouldn't be necessary.

i've been trying to do this another way, with the X server itself in a container (separate for each user).
 
Old 03-30-2020, 08:13 PM   #5
simosx
Member
 
Registered: Jul 2005
Posts: 66

Rep: Reputation: 11
If you really want to use LXD (instead of LXD), then there is a more recent guide at https://gudok.xyz/lxcdeb/
 
  


Reply

Tags
lxc



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Install additional software inside lxc container crts Linux - Containers 1 10-22-2017 07:44 AM
[SOLVED] DNAT Inside a LXC Container not working Tonio- Linux - Server 3 07-10-2017 11:58 AM
How to check for mounted filesystems inside a lxc container cianfa72 Linux - Containers 11 05-31-2017 03:21 AM
[SOLVED] Outputting X display from inside an LXC Container charlie101 Linux - Virtualization and Cloud 1 02-04-2013 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration