Re: [Lxc-users] GUI container
On Mon, Feb 14, 2011 at 5:06 PM, Nirmal Guhan vavat...@gmail.com wrote: On Fri, Dec 17, 2010 at 10:46 AM, matto fransen ma...@matto.nl wrote: Hi, On 17 December 2010 11:28, Matto Fransen ma...@matto.nl wrote: Do I need to start container with X (level 5?). I tried these steps : I have set up an short howto on setting up an xserver in an lxc linux container, see http://box.matto.nl/lxcxserver.html Cheers, Matto Hi, Am trying these steps and installed X, xdm, xterm and blackbox in the lxc container (which is fedora 12). Restarted my container and I see that xdm service is running. However a Xnest :1 -query container ip from my workstation shows up just a black window. On the container log file, I see (WW) xf86OpenConsole: setpgid failed: Operation not permitted (WW) xf86OpenConsole: setsid failed: Operation not permitted Fatal server error: xf86OpenConsole: Cannot open virtual console 8 (No such file or directory) Do you have any clues? selinux is disabled in my system. Also though I installed blackbox in my container, not sure how that will be used since xdm does not have references to it. Can you clarify please? Thanks, ~nirmal -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] GUI container
Hi, On Tue, Feb 15, 2011 at 01:20:15AM -0800, Nirmal Guhan wrote: I have set up an short howto on setting up an xserver in an lxc linux container, see http://box.matto.nl/lxcxserver.html [ .. ] Am trying these steps and installed X, xdm, xterm and blackbox in the lxc container (which is fedora 12). Restarted my container and I see that xdm service is running. Ah, great :) However a Xnest :1 -query container ip from my workstation shows up just a black window. On the container log file, I see (WW) xf86OpenConsole: setpgid failed: Operation not permitted (WW) xf86OpenConsole: setsid failed: Operation not permitted Fatal server error: xf86OpenConsole: Cannot open virtual console 8 (No such file or directory) Do you have any clues? selinux is disabled in my system. Also though I installed blackbox in my container, not sure how that will be used since xdm does not have references to it. Can you clarify please? I have no recent experience with fedora, I will try to set up a fedora container this weekend and look into it. Cheers, Matto -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] GUI container
On 17/12/2010, at 9:40 AM, Nirmal Guhan wrote: On Thu, Dec 16, 2010 at 12:06 PM, Nirmal Guhan vavat...@gmail.com wrote: On Fri, Dec 10, 2010 at 2:40 PM, Christoph Willing c.will...@uq.edu.au wrote: On 11/12/2010, at 1:04 AM, Matto Fransen wrote: Hi, On Thu, Dec 09, 2010 at 10:21:49PM -0800, Nirmal Guhan wrote: Has anyone tried running a GUI app (firefox for instance) inside a container or as an application container? Just want to know if this requires any special steps before I tread that path. Am using Fedora 12 for both host and container. It is no problem to run GUI apps in a container. I have set up one of my containers as an X-server. From an old laptop I do X -query ip-number and run the window-manager that is installed on the container. You can use ssh -X to log in into the container and start your X-app. Most of my containers are without X (run level 3). When I have one that needs a X environment I start an Xvfb with a simple window manager (mwm) using a boot script. When I need gui type access to it, I run x11vnc in the container and access that environment from anywhere with vncviewer. Do I need to start container with X (level 5?). I tried these steps : 1. Start container in level 3. 2. lxc-console into container 3. Run Xvfb (that returned error as) #Xvfb :0 -screen 0 1024x768x16 -ac SELinux: Invalid object class mapping, disabling SELinux support. (EE) AIGLX error: dlopen of /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory) (EE) GLX: could not load software renderer 4. Run mwm # mwm Error: Can't open display: 0.0 I have set display to 0.0 If I start Xvfb with no options I still get the above errors. Any idea on what I am missing? Thanks, Nirmal Worked after setting the display to ipaddress:0. BTW, a naive question. Is it possible to start the container itself in level 5 as I do for host so I don't have to use vnc stuff ? I haven't tried it but it may work if you have a different physical display available - maybe even a different graphics card is needed. If you have the host and container each at run level 5 then they would each be running an X server. I don't think they could both control the same graphics card - you'd probably need 1 card for each X server. I'm just guessing though ... chris Christoph Willing +61 7 3365 8316 QCIF Access Grid Manager University of Queensland -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] GUI container
Hi, It is no problem to run GUI apps in a container. I have set up one of my containers as an X-server. From an old laptop I do X -query ip-number and run the window-manager that is installed on the container. You can use ssh -X to log in into the container and start your X-app. Do I need to start container with X (level 5?). I tried these steps : 1. Start container in level 3. 2. lxc-console into container 3. Run Xvfb (that returned error as) #Xvfb :0 -screen 0 1024x768x16 -ac SELinux: Invalid object class mapping, disabling SELinux support. (EE) AIGLX error: dlopen of /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory) (EE) GLX: could not load software renderer 4. Run mwm # mwm Error: Can't open display: 0.0 I have set display to 0.0 If you want the LXC container to be a xserver, then there is no need to start X in it :) That is only needed on the client (your workstation), that you run like an old-fashioned X-terminal. Just configure xdm to allow remote login. At 'boot' of the container, do a /etc/init.d/xdm start that is enough. From your workstation do either: X -query ip-number of xserver or: X -indirect ip-number of xserver depending on the configuration of xdm. See: http://tldp.org/HOWTO/XDM-Xterm/index.html Remove your /etc/init.d/rcS (in Debian that is, don't know if fedora uses that too) and create a new minimal one that just starts your sshd (so you have a loginmethod for troubleshooting) and xdm. Perhaps you need to set up your default gateway in that rcS file too. Nothing else needs to be started. Cheers, Matto signature.asc Description: Digital signature -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] GUI container
Hi, On 17 December 2010 11:28, Matto Fransen ma...@matto.nl wrote: Do I need to start container with X (level 5?). I tried these steps : I have set up an short howto on setting up an xserver in an lxc linux container, see http://box.matto.nl/lxcxserver.html Cheers, Matto -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] GUI container
On Fri, Dec 10, 2010 at 2:40 PM, Christoph Willing c.will...@uq.edu.au wrote: On 11/12/2010, at 1:04 AM, Matto Fransen wrote: Hi, On Thu, Dec 09, 2010 at 10:21:49PM -0800, Nirmal Guhan wrote: Has anyone tried running a GUI app (firefox for instance) inside a container or as an application container? Just want to know if this requires any special steps before I tread that path. Am using Fedora 12 for both host and container. It is no problem to run GUI apps in a container. I have set up one of my containers as an X-server. From an old laptop I do X -query ip-number and run the window-manager that is installed on the container. You can use ssh -X to log in into the container and start your X-app. Most of my containers are without X (run level 3). When I have one that needs a X environment I start an Xvfb with a simple window manager (mwm) using a boot script. When I need gui type access to it, I run x11vnc in the container and access that environment from anywhere with vncviewer. chris Christoph Willing +61 7 3365 8316 QCIF Access Grid Manager University of Queensland Do I need to start container with X (level 5?). I tried these steps : 1. Start container in level 3. 2. lxc-console into container 3. Run Xvfb (that returned error as) #Xvfb :0 -screen 0 1024x768x16 -ac SELinux: Invalid object class mapping, disabling SELinux support. (EE) AIGLX error: dlopen of /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory) (EE) GLX: could not load software renderer 4. Run mwm # mwm Error: Can't open display: 0.0 I have set display to 0.0 If I start Xvfb with no options I still get the above errors. Any idea on what I am missing? Thanks, Nirmal -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] GUI container
On Thu, Dec 16, 2010 at 12:06 PM, Nirmal Guhan vavat...@gmail.com wrote: On Fri, Dec 10, 2010 at 2:40 PM, Christoph Willing c.will...@uq.edu.au wrote: On 11/12/2010, at 1:04 AM, Matto Fransen wrote: Hi, On Thu, Dec 09, 2010 at 10:21:49PM -0800, Nirmal Guhan wrote: Has anyone tried running a GUI app (firefox for instance) inside a container or as an application container? Just want to know if this requires any special steps before I tread that path. Am using Fedora 12 for both host and container. It is no problem to run GUI apps in a container. I have set up one of my containers as an X-server. From an old laptop I do X -query ip-number and run the window-manager that is installed on the container. You can use ssh -X to log in into the container and start your X-app. Most of my containers are without X (run level 3). When I have one that needs a X environment I start an Xvfb with a simple window manager (mwm) using a boot script. When I need gui type access to it, I run x11vnc in the container and access that environment from anywhere with vncviewer. chris Christoph Willing +61 7 3365 8316 QCIF Access Grid Manager University of Queensland Do I need to start container with X (level 5?). I tried these steps : 1. Start container in level 3. 2. lxc-console into container 3. Run Xvfb (that returned error as) #Xvfb :0 -screen 0 1024x768x16 -ac SELinux: Invalid object class mapping, disabling SELinux support. (EE) AIGLX error: dlopen of /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory) (EE) GLX: could not load software renderer 4. Run mwm # mwm Error: Can't open display: 0.0 I have set display to 0.0 If I start Xvfb with no options I still get the above errors. Any idea on what I am missing? Thanks, Nirmal Worked after setting the display to ipaddress:0. BTW, a naive question. Is it possible to start the container itself in level 5 as I do for host so I don't have to use vnc stuff ? --Nirmal -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] GUI container
On Thu, Dec 16, 2010 at 3:54 PM, Christoph Willing c.will...@uq.edu.au wrote: On 17/12/2010, at 9:40 AM, Nirmal Guhan wrote: On Thu, Dec 16, 2010 at 12:06 PM, Nirmal Guhan vavat...@gmail.com wrote: On Fri, Dec 10, 2010 at 2:40 PM, Christoph Willing c.will...@uq.edu.au wrote: On 11/12/2010, at 1:04 AM, Matto Fransen wrote: Hi, On Thu, Dec 09, 2010 at 10:21:49PM -0800, Nirmal Guhan wrote: Has anyone tried running a GUI app (firefox for instance) inside a container or as an application container? Just want to know if this requires any special steps before I tread that path. Am using Fedora 12 for both host and container. It is no problem to run GUI apps in a container. I have set up one of my containers as an X-server. From an old laptop I do X -query ip-number and run the window-manager that is installed on the container. You can use ssh -X to log in into the container and start your X-app. Most of my containers are without X (run level 3). When I have one that needs a X environment I start an Xvfb with a simple window manager (mwm) using a boot script. When I need gui type access to it, I run x11vnc in the container and access that environment from anywhere with vncviewer. Do I need to start container with X (level 5?). I tried these steps : 1. Start container in level 3. 2. lxc-console into container 3. Run Xvfb (that returned error as) #Xvfb :0 -screen 0 1024x768x16 -ac SELinux: Invalid object class mapping, disabling SELinux support. (EE) AIGLX error: dlopen of /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory) (EE) GLX: could not load software renderer 4. Run mwm # mwm Error: Can't open display: 0.0 I have set display to 0.0 If I start Xvfb with no options I still get the above errors. Any idea on what I am missing? Thanks, Nirmal Worked after setting the display to ipaddress:0. BTW, a naive question. Is it possible to start the container itself in level 5 as I do for host so I don't have to use vnc stuff ? I haven't tried it but it may work if you have a different physical display available - maybe even a different graphics card is needed. If you have the host and container each at run level 5 then they would each be running an X server. I don't think they could both control the same graphics card - you'd probably need 1 card for each X server. I'm just guessing though ... chris Christoph Willing +61 7 3365 8316 QCIF Access Grid Manager University of Queensland May be I wasn't clear. My host is at level 3 always. So can the container be at level 5 and I don't have to use xvnc but just start my GUI Apps from the container itself ? --Nirmal -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] GUI container
On 11/12/2010, at 1:04 AM, Matto Fransen wrote: Hi, On Thu, Dec 09, 2010 at 10:21:49PM -0800, Nirmal Guhan wrote: Has anyone tried running a GUI app (firefox for instance) inside a container or as an application container? Just want to know if this requires any special steps before I tread that path. Am using Fedora 12 for both host and container. It is no problem to run GUI apps in a container. I have set up one of my containers as an X-server. From an old laptop I do X -query ip-number and run the window-manager that is installed on the container. You can use ssh -X to log in into the container and start your X-app. Most of my containers are without X (run level 3). When I have one that needs a X environment I start an Xvfb with a simple window manager (mwm) using a boot script. When I need gui type access to it, I run x11vnc in the container and access that environment from anywhere with vncviewer. chris Christoph Willing +61 7 3365 8316 QCIF Access Grid Manager University of Queensland -- Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] GUI container
Daniel Lezcano daniel.lezc...@free.fr writes: On 12/10/2010 07:21 AM, Nirmal Guhan wrote: Hi, Has anyone tried running a GUI app (firefox for instance) inside a container or as an application container? Just want to know if this requires any special steps before I tread that path. Am using Fedora 12 for both host and container. Please let me know. What I am use to do is to start the container and then: ssh -X mycontainer firefox If the traffic is only going over the loopback interface, you could simply leave the traffic unencrypted. Where dom0 and domU resolve to the host OS and container respectively, something like dom0$ xhost + domU domU$ DISPLAY=dom0:0 xlogo -- Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] GUI container
On 12/10/2010 07:21 AM, Nirmal Guhan wrote: Hi, Has anyone tried running a GUI app (firefox for instance) inside a container or as an application container? Just want to know if this requires any special steps before I tread that path. Am using Fedora 12 for both host and container. Please let me know. What I am use to do is to start the container and then: ssh -X mycontainer firefox -- ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] GUI container
On Thu, 2010-12-09 at 22:21 -0800, Nirmal Guhan wrote: Hi, Has anyone tried running a GUI app (firefox for instance) inside a container or as an application container? Just want to know if this requires any special steps before I tread that path. Am using Fedora 12 for both host and container. Please let me know. Thanx, Nirmal -- ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users Although not directly using the LXC tools, but the same backend functions (kernel namespaces), you might be interested in the sandbox tool I developed. You can learn more on: http://www.stgraber.org/category/sandbox/ It's meant to be used with recent kernels, offers nautilus integration and a GUI. I've been running a few graphical application in there without any issue. Packages are available for Ubuntu natty (development release) and Ubuntu maverick (stable release). The code automatically detects the kernel version and lets you know what to do to get GUI application support. Hope it helps! -- Stéphane Graber Ubuntu developer http://www.ubuntu.com signature.asc Description: This is a digitally signed message part -- Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] GUI container
On Fri, Dec 10, 2010 at 2:40 PM, Christoph Willing c.will...@uq.edu.au wrote: On 11/12/2010, at 1:04 AM, Matto Fransen wrote: Hi, On Thu, Dec 09, 2010 at 10:21:49PM -0800, Nirmal Guhan wrote: Has anyone tried running a GUI app (firefox for instance) inside a container or as an application container? Just want to know if this requires any special steps before I tread that path. Am using Fedora 12 for both host and container. It is no problem to run GUI apps in a container. I have set up one of my containers as an X-server. From an old laptop I do X -query ip-number and run the window-manager that is installed on the container. You can use ssh -X to log in into the container and start your X-app. Most of my containers are without X (run level 3). When I have one that needs a X environment I start an Xvfb with a simple window manager (mwm) using a boot script. When I need gui type access to it, I run x11vnc in the container and access that environment from anywhere with vncviewer. chris Christoph Willing +61 7 3365 8316 QCIF Access Grid Manager University of Queensland Thanks for all the replies. I will try and let this forum know how it goes. Thanks, Nirmal -- Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users