[Lxc-users] Container with X system(s)
Bretton Woods
woods.bretton at yahoo.co.uk
Thu Aug 15 02:00:39 UTC 2013
Containers with X systems is something that really excites me. I know I lead a boring life.
The guys at theqvd.org are doing something similar with lubuntu and they have an image on there site that might be of use.
Also the LXC wrapper docker has an example. https://index.docker.io/u/rogaha/docker-desktop/
I have the idea or inclination but not the linux skill. What really excites me is the idea of using http://guac-dev.org/ infront of a shed load of containers as a light weight virtual desktop offering.
There is a really good automated script for getting xrdp right http://scarygliders.net/ which isnt a trivial task.
Good luck and post how you go.
bretton
Date: Wed, 14 Aug 2013 16:38:43 -0400
From: TuxRaiderPen <tuxraiderpen at wpascanner.com>
Subject: Re: [Lxc-users] Container with X system(s)
To: lxc-users at lists.sourceforge.net
Message-ID: <201308141638.43788.tuxraiderpen at wpascanner.com>
Content-Type: Text/Plain; charset="utf-8"
On Tuesday, August 13, 2013 12:06:50 brian mullan wrote:
> I create a container:
> *sudo lxc-create -t ubuntu -n my_cn*
> start it
> *sudo lxc-start -n my_cn*
> *login*
> add a desktop environment
> *sudo apt-get install lxde*
> I also add a remote desktop config to the container so I can access the
> desktop from the host
> (I use x2go but I've also used vnc and others).
As this is something I have been curious about...I considered doing this as a
test to see what happened.. but at the time I started with LXC my goals and
needs for LXC were and are still different...
This brings up the LXC with X v. LTS type setup...
I currently use LTS setups for an organziation that basicaly replaces all the
desktops from the LTS server... sort of back to thin client-esque systems....
I am curious as to how you use this setup....
Do you use the containers mostly remotely ie: XDMCP over SSH for WAN, XDMCP on
the LAN, and what tasks your doing in these containters... other than the
current issue.. any other isues... for the tasks your doing....
With a decent server this could be an interesting option to LTS setups... I'd
like to hear more about your containers with X installed, please.
Thanks....
------------------------------
Message: 3
Date: Wed, 14 Aug 2013 13:49:41 -0700
From: Jay Taylor <jay at jaytaylor.com>
Subject: Re: [Lxc-users] Containers are all getting same IP address
Cc: lxc-users <lxc-users at lists.sourceforge.net>
Message-ID:
<CAEOBz7O2Rbfkac7nSD1NouLhEOPEYzc=K+yWWUNFKcQ=CzPGjw at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
One additional note:
Make sure the btrfs volume is a fast disk. I just tried with an AWS EBS
volume and was unable reproduce the problem. As soon as I switched to
using an ephemeral (local storage) disk, I was able to reproduce after only
2 runs of the test script.
On Wed, Aug 14, 2013 at 1:22 PM, Jay Taylor <jay at jaytaylor.com> wrote:
> Hi Serge,
>
> I added zfs support to the application and systems creating/hosting the
> containers, and I have subsequently been unable to reproduce any issues.
>
> As far as trying to reproduce it with btrfs, I've had some success.
>
> The general system state is something like:
> N containers already running happily
> Launch N+ more containers in rapid succession (in parallell, not serially).
>
> I've modified your test script to reflect more closely what my application
> is actually doing, by slowly launching 10 containers, and then using "&" to
> rapidly fork and additional 10 clone/start operations. I have it doing 2
> cycles of this and it eventually triggers the problem (it's taken up to 3
> runs for to trigger the problem).
>
> And for reference, here is an exact copy the scripts I used to reproduce
> the problem:
>
> test.sh:
>
> #!/usr/bin/env bash
>
> prefix=$1
>
> test -z "${prefix}" && echo 'error: missing required parameter: prefix'
> 1>&2 && exit 1
>
> path=/mnt
>
> sudo lxc-destroy -n c1 2>/dev/null
> sudo lxc-create -t ubuntu -B btrfs -n c1
>
> for i in `seq 1 10`; do
> sudo lxc-clone -s -B btrfs -P $path -o c1 -n $prefix$i
> sudo lxc-start -d -n $prefix$i
> done
> for i in `seq 11 20`; do
> echo $(sudo lxc-clone -s -B btrfs -P $path -o c1 -n $prefix$i; sudo
> lxc-start -d -n $prefix$i) &
> done
>
> sleep 10
>
> # Create even more.
> for i in `seq 21 30`; do
> sudo lxc-clone -s -B btrfs -P $path -o c1 -n $prefix$i
> sudo lxc-start -d -n $prefix$i
> done
> for i in `seq 31 40`; do
> echo $(sudo lxc-clone -s -B btrfs -P $path -o c1 -n $prefix$i; sudo
> lxc-start -d -n $prefix$i) &
> done
>
>
> stop.sh:
>
> #!/usr/bin/env bash
>
> prefix=$1
>
> test -z "${prefix}" && echo 'error: missing required parameter: prefix'
> 1>&2 && exit 1
>
> sudo lxc-destroy -n c1;
>
> for i in `seq 1 40`; do
> echo $(sudo lxc-stop -k -n $prefix$i; sudo lxc-destroy -n $prefix$i) &
> done
>
>
>
> bash ./test.sh x
> bash ./test.sh y
> bash ./test.sh z
>
>
> If it doesn't manifest at first, try stopping/starting varying quantities
> of containers for several cycles. Eventually I consistently end up not
> ever getting ip addresses:
>
> x1 RUNNING - - NO
> x10 RUNNING - - NO
> x11 RUNNING - - NO
> x12 RUNNING - - NO
> x13 RUNNING - - NO
> x14 RUNNING - - NO
> x15 RUNNING - - NO
> x16 RUNNING - - NO
> x17 RUNNING - - NO
> x18 RUNNING - - NO
> x19 RUNNING - - NO
> x2 RUNNING - - NO
> x20 RUNNING - - NO
> x21 RUNNING - - NO
> x22 RUNNING - - NO
> x23 RUNNING - - NO
> x24 RUNNING - - NO
> x25 RUNNING - - NO
> x26 RUNNING - - NO
> x27 RUNNING - - NO
> x28 RUNNING - - NO
> x29 RUNNING - - NO
> x3 RUNNING - - NO
> x30 RUNNING - - NO
> x31 RUNNING - - NO
> x32 RUNNING - - NO
> x33 RUNNING - - NO
> x34 RUNNING - - NO
> x35 RUNNING - - NO
> x36 RUNNING - - NO
> x37 RUNNING - - NO
> x38 RUNNING - - NO
> x39 RUNNING - - NO
> x4 RUNNING - - NO
> x40 RUNNING - - NO
> x5 RUNNING - - NO
> x6 RUNNING - - NO
> x7 RUNNING - - NO
> x8 RUNNING - - NO
> x9 RUNNING - - NO
>
>
> On Wed, Aug 14, 2013 at 10:12 AM, Serge Hallyn <serge.hallyn at ubuntu.com>wrote:
>
>> Quoting Serge Hallyn (serge.hallyn at ubuntu.com):
>> > Quoting Jay Taylor (jay at jaytaylor.com):
>> > > After further investigation yesterday, I am not convinced it is an
>> > > IP-address issue. The affected host machines are unable to start any
>> > > existing or newly created containers. The incident that triggered the
>> > > issue was cloning 1 container into 10 new ones, and then launching
>> them all
>> > > simultaneously. Are there any known concurrency issues with LXC which
>> > > would explain why executing a lot of clone/start LXC commands at the
>> same
>> >
>> > Known, no, but that doesn't mean they're not there :)
>> >
>> > However, could you try to reproduce this with non-btrfs?
>> >
>> > I'll try to reproduce with btrfs...
>>
>> In a fresh raring instance I mounted a btrfs disk on /mnt, and did
>>
>> lxc-create -t ubuntu -B btrfs -P /mnt -n c1
>> for i in `seq 1 10`; do
>> lxc-clone -s -p /mnt -o c1 -n x$i
>> done
>> for i in `seq 1 10`; do
>> lxc-start -d -P /mnt -n x$i
>> done
>>
>> Then connected to two of the containers with lxc-console,
>> lxc-console -P /mnt -n x2
>> lxc-console -P /mnt -n x9
>>
>> both were up and had unique ip addresses.
>>
>> Again this was a raring instance with ppa:ubuntu-lxc/daily installed.
>>
>> -serge
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 4
Date: Thu, 15 Aug 2013 06:51:56 +1000
From: Michael Fox <michaelf at heimic.net>
Subject: Re: [Lxc-users] Container with X system(s)
To: tuxraiderpen at wpascanner.com
Cc: "lxc-users at lists.sourceforge.net"
<lxc-users at lists.sourceforge.net>
Message-ID:
<CAEUepcf4futETgdUxCkbmQEAf84UL3+YscGAoo9M2ycXz4sScg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
I've installed a Ubuntu 12.04.2 LTS container purely to run as a
mythtvbackend, just to see if I could get it to work. Of course mythtv
requires X windows so that you can do the initial configuration of the
backend etc. I just ssh'd into the container where this was installed/setup
and forwarded the X window back to my PC using xming software.
It seemed to work okay, not sure how it might be if you were to use an X
windows app like this day and day out though.
Thanks
Michael Fox
On Thu, Aug 15, 2013 at 6:38 AM, TuxRaiderPen
<tuxraiderpen at wpascanner.com>wrote:
> On Tuesday, August 13, 2013 12:06:50 brian mullan wrote:
> > I create a container:
> > *sudo lxc-create -t ubuntu -n my_cn*
> > start it
> > *sudo lxc-start -n my_cn*
> > *login*
> > add a desktop environment
> > *sudo apt-get install lxde*
> > I also add a remote desktop config to the container so I can access the
> > desktop from the host
> > (I use x2go but I've also used vnc and others).
>
> As this is something I have been curious about...I considered doing this
> as a
> test to see what happened.. but at the time I started with LXC my goals and
> needs for LXC were and are still different...
>
> This brings up the LXC with X v. LTS type setup...
>
> I currently use LTS setups for an organziation that basicaly replaces all
> the
> desktops from the LTS server... sort of back to thin client-esque
> systems....
>
> I am curious as to how you use this setup....
>
> Do you use the containers mostly remotely ie: XDMCP over SSH for WAN,
> XDMCP on
> the LAN, and what tasks your doing in these containters... other than the
> current issue.. any other isues... for the tasks your doing....
>
> With a decent server this could be an interesting option to LTS setups...
> I'd
> like to hear more about your containers with X installed, please.
>
> Thanks....
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
------------------------------
_______________________________________________
Lxc-users mailing list
Lxc-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users
End of Lxc-users Digest, Vol 44, Issue 20
*****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130815/8a526d91/attachment.html>
More information about the lxc-users
mailing list