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