[Lxc-users] Lxc-users Digest, Vol 44, Issue 1

Bretton Woods woods.bretton at yahoo.co.uk
Thu Aug 1 21:07:21 UTC 2013


There seemed to be a few questions about base templates.
lxc-create --pull git -n name
>
>lxc-clone --push git -n name
>
>
>I am still wondering why we are stuck with the maintenance of the stock templates that seem to have few problems.
>
>
>Is it a matter of just use docker or would the above addition be welcome to lxc?


________________________________
 From: "lxc-users-request at lists.sourceforge.net" <lxc-users-request at lists.sourceforge.net>
To: lxc-users at lists.sourceforge.net 
Sent: Thursday, 1 August 2013, 5:35
Subject: Lxc-users Digest, Vol 44, Issue 1
 

Send Lxc-users mailing list submissions to
    lxc-users at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.sourceforge.net/lists/listinfo/lxc-users
or, via email, send a message with subject or body 'help' to
    lxc-users-request at lists.sourceforge.net

You can reach the person managing the list at
    lxc-users-owner at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Lxc-users digest..."


Today's Topics:

   1. LXC Debian Wheezy Template (Danijel Vargek, Continum)
   2. Re: [Spam-Wahrscheinlichkeit=95]Re: Issues in using lxc in
      Fedora 14 (Guido J?kel)
   3. lxc-ls --fancy is lying (Tamas Papp)
   4. Re: lxc-ls --fancy is lying (Jay Taylor)
   5. Re: lxc-ls --fancy is lying (Tamas Papp)
   6. Re: lxc-ls --fancy is lying (zoolook)
   7. Re: lxc-ls --fancy is lying (Tamas Papp)
   8. Setting up server in lxc container for dummies (Dan Kegel)
   9. Re: Setting up server in lxc container for dummies (Kevin LaTona)


----------------------------------------------------------------------

Message: 1
Date: Wed, 31 Jul 2013 12:01:51 +0200 (CEST)
From: "Danijel Vargek, Continum" <danijel.vargek at continum.net>
Subject: [Lxc-users] LXC Debian Wheezy Template
To: lxc-users at lists.sourceforge.net
Message-ID:
    <1889011068.260286.1375264911675.JavaMail.zimbra at continum.net>
Content-Type: text/plain; charset=utf-8

Hi everybody,
is there a way to use Debian-Wheezy containers in a clean,
working way on lxc?

My current setup involves a Debian-Wheezy Host with several Wheezy containers.
As stated on the Debian wiki (wiki.debian.org/LXC), the original template ships
with several problems (mainly missing ttys for console login and other stuff).

We set up our containers with the template recommended on this mailinglist. 
Installation worked pretty fine, but there are some problems according to the
init scripts:

1. Stopping/Restarting containers via /etc/init.d/lxc fails with a timeout:
####
[....] Stopping Linux Containers: test.xxx.com
telinit: timeout opening/writing control channel /run/initctl
####

2. Shutdown/Reboot inside a container stops all processes except of init, so the
container finally does not shutdown or reboot.
We can see the still active init process for the container via lxc-ps
####
CONTAINER    PID TTY          TIME CMD
test.xxx.com  4352 ?        00:00:05 init
####
The only way to finally stop a container is via lxc-stop

Did anyone experience a similiar problem, or is there an existing workaround for 
this?

Regards,
Danijel

-- 
Danijel Vargek
Continum AG
Bismarckallee 7b-d
79098 Freiburg i. Br.
Tel. +49 761 217 111-74
Fax. +49 761 217 111-98
http://www.continum.net

Sitz der Gesellschaft: Freiburg im Breisgau
Registergericht: Amtsgericht Freiburg, HRB 6866
Vorstand: Rolf Mathis, Volker T. Mueller
Vorsitzender d. Aufsichtsrats: Prof. Dr. Karl-F. Fischbach 



------------------------------

Message: 2
Date: Wed, 31 Jul 2013 12:43:31 +0200
From: Guido J?kel <G.Jaekel at DNB.DE>
Subject: Re: [Lxc-users] [Spam-Wahrscheinlichkeit=95]Re: Issues in
    using lxc in Fedora 14
To: "Lxc-users at lists.sourceforge.net"
    <lxc-users at lists.sourceforge.net>
Message-ID: <51F8EA53.2000404 at DNB.DE>
Content-Type: text/plain; charset=ISO-8859-1

On 2013-07-31 12:15, Ajith Adapa wrote:
> Hi,
> 
> Thanks everyone for the time to reply back.
> 
> My only reason for using FEDORA14 is I am really uncomfortable with systemd
> which got added into FEDORA15 and above.
> 
> I initially started up with FEDORA17 and ended up with issues in systemd
> which needed some manual changes to make it work on FEDORA17. As pointed
> eventhough FEDORA14 is EOL I just wanted to try it out without systemd
> jargon as I am trying for embedded environment. If there is any better
> alternative without systemd I could try the same.


Dear Ajith,

if you need to tailor your Linux down for an embedded environment, you may take a look on Gentoo Linux. Here you may choose freely between different software alternatives. And in case of the init framework, in the moment SystemD is an option and the default is openRC.

greetings

Guido



------------------------------

Message: 3
Date: Wed, 31 Jul 2013 13:16:23 +0200
From: Tamas Papp <tompos at martos.bme.hu>
Subject: [Lxc-users] lxc-ls --fancy is lying
To: "lxc-users at lists.sourceforge.net"
    <lxc-users at lists.sourceforge.net>
Message-ID: <51F8F207.4000905 at martos.bme.hu>
Content-Type: text/plain; charset=UTF-8; format=flowed

hi All,

I've seen a couple of times in the past like this:

# lxc-ls --fancy --stopped --fancy-format name,state
NAME         STATE
--------------------
finance      STOPPED
hammer       STOPPED
ijc-cipool   STOPPED
jay          STOPPED
marvin4jsci  STOPPED
marvinci     STOPPED
svntest      STOPPED


In fact VMs are running fine, but I updated lxc (from daily ppa) this morning.

Is this some kind of bug? Do others meet this issue?


10x
tamas



------------------------------

Message: 4
Date: Wed, 31 Jul 2013 10:37:15 -0700
From: Jay Taylor <jay at jaytaylor.com>
Subject: Re: [Lxc-users] lxc-ls --fancy is lying
To: Tamas Papp <tompos at martos.bme.hu>
Cc: "lxc-users at lists.sourceforge.net"
    <lxc-users at lists.sourceforge.net>
Message-ID:
    <CAEOBz7NP-=acziLvNoK=WNJkmnBma12p6uz+m7Ct-s+2T3KkUw at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Out of curiosity, did you see it in the past before you you updated from
the PPA today?


On Wed, Jul 31, 2013 at 4:16 AM, Tamas Papp <tompos at martos.bme.hu> wrote:

> hi All,
>
> I've seen a couple of times in the past like this:
>
> # lxc-ls --fancy --stopped --fancy-format name,state
> NAME         STATE
> --------------------
> finance      STOPPED
> hammer       STOPPED
> ijc-cipool   STOPPED
> jay          STOPPED
> marvin4jsci  STOPPED
> marvinci     STOPPED
> svntest      STOPPED
>
>
> In fact VMs are running fine, but I updated lxc (from daily ppa) this
> morning.
>
> Is this some kind of bug? Do others meet this issue?
>
>
> 10x
> tamas
>
>
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&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...

------------------------------

Message: 5
Date: Wed, 31 Jul 2013 20:47:24 +0200
From: Tamas Papp <tompos at martos.bme.hu>
Subject: Re: [Lxc-users] lxc-ls --fancy is lying
To: Jay Taylor <jay at jaytaylor.com>
Cc: "lxc-users at lists.sourceforge.net"
    <lxc-users at lists.sourceforge.net>
Message-ID: <51F95BBC.8000603 at martos.bme.hu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 07/31/2013 07:37 PM, Jay Taylor wrote:
> Out of curiosity, did you see it in the past before you you updated from the PPA today?

No, I didn't.

tamas



------------------------------

Message: 6
Date: Wed, 31 Jul 2013 16:44:30 -0300
From: zoolook <nbensa+lxcusers at gmail.com>
Subject: Re: [Lxc-users] lxc-ls --fancy is lying
To: Tamas Papp <tompos at martos.bme.hu>
Cc: "lxc-users at lists.sourceforge.net"
    <lxc-users at lists.sourceforge.net>
Message-ID:
    <CADut3oC6iM7fqTadKk9yYexYki+F3reMRZX_RKNbrd3r_zzJOg at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Wed, Jul 31, 2013 at 3:47 PM, Tamas Papp <tompos at martos.bme.hu> wrote:
> On 07/31/2013 07:37 PM, Jay Taylor wrote:
>> Out of curiosity, did you see it in the past before you you updated from the PPA today?
>
> No, I didn't.
>

I did but a simple reboot fixed it.



------------------------------

Message: 7
Date: Wed, 31 Jul 2013 22:16:16 +0200
From: Tamas Papp <tompos at martos.bme.hu>
Subject: Re: [Lxc-users] lxc-ls --fancy is lying
To: zoolook <nbensa+lxcusers at gmail.com>
Cc: "lxc-users at lists.sourceforge.net"
    <lxc-users at lists.sourceforge.net>
Message-ID: <51F97090.70004 at martos.bme.hu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 07/31/2013 09:44 PM, zoolook wrote:
> On Wed, Jul 31, 2013 at 3:47 PM, Tamas Papp <tompos at martos.bme.hu> wrote:
>> On 07/31/2013 07:37 PM, Jay Taylor wrote:
>>> Out of curiosity, did you see it in the past before you you updated from the PPA today?
>> No, I didn't.
>>
> I did but a simple reboot fixed it.


Ohh, I'm afraid, I misunderstood the question.

Yes, I did as well, a couple of time.
As for that a couple of time I experienced really stopped guests after package update.

tamas



------------------------------

Message: 8
Date: Wed, 31 Jul 2013 20:24:42 -0700
From: Dan Kegel <dank at kegel.com>
Subject: [Lxc-users] Setting up server in lxc container for dummies
To: lxc-users at lists.sourceforge.net
Message-ID:
    <CAPF-yOYRdGUAFQbjKekP_dsBJgBzrMnFDvuv21LmGBVwe=z4vg at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi,
I've been happily using ubuntu's stock lxc (originally
in 12.04, now in 13.04), and finally have an occasion
to run a server inside a container.  I'd like it to
be visible from the outside.

There are plenty of web pages about this, but they seem to
assume that you've created the lxc config file by hand.
I have never done that; I just use whatever lxc-create creates.

What's the simplest way to get a container to look
like just another host on the LAN, starting with
   sudo apt-get install lxc
   sudo lxc-create -t ubuntu -n foobar
on ubuntu 13.04?

Thanks,
Dan



------------------------------

Message: 9
Date: Wed, 31 Jul 2013 21:35:26 -0700
From: Kevin LaTona <lists at studiosola.com>
Subject: Re: [Lxc-users] Setting up server in lxc container for
    dummies
To: Dan Kegel <dank at kegel.com>
Cc: lxc-users at lists.sourceforge.net
Message-ID: <14C9416C-3EBF-4DFB-A393-F022F90E6C09 at studiosola.com>
Content-Type: text/plain; charset=us-ascii

Hi Dan,


I've just started working with LXC so this how I am doing it and maybe some one else can fill in any areas I've left out.

If you are going to have a local LAN and outside WAN connection than you will need two ethernet cards ( 1 for each network )

Unless you already have a router setup that can punch a hole into your local network's firewall creating a DMZ connection for that container.


What I have been doing is creating a bridge on the host with a static ip.

Then each container is configured to it's own static ip address inside the container's /etc/network/interface config doc

If you check out this mailing list's archive for the last week or so you will find an example of most of my config files I used in this test.

The problem I was having is the gateway on a container was not loading .

So I ending up writing a simple Ubuntu startup script to manually load the gateway settings at the container's OS boot time.

For now it does the job until I can figure out why.


Bellow are the document paths to most config files you will need to deal with.

There are plenty of good blog post out on the web that will give you deeper details.



Finally you may want to check out this project to see it might make all the above easier for your needs. http://lxc-webpanel.github.io

I looked at it but ended up doing all manual configurations, as I wanted to better understand LXC structure for now.


Good luck.
-Kevin



Host ( create bridge )
/etc/network/interfaces


/etc/sysctl.conf
net.ipv4.ip_forward = 1


/etc/lxc/lxc.conf

/etc/default/lxc


/var/lib/lxc/containers_name/config

/var/lib/lxc/conatianers_name/rootfs/etc/network/interfaces





On Jul 31, 2013, at 8:24 PM, Dan Kegel <dank at kegel.com> wrote:

> Hi,
> I've been happily using ubuntu's stock lxc (originally
> in 12.04, now in 13.04), and finally have an occasion
> to run a server inside a container.  I'd like it to
> be visible from the outside.
> 
> There are plenty of web pages about this, but they seem to
> assume that you've created the lxc config file by hand.
> I have never done that; I just use whatever lxc-create creates.
> 
> What's the simplest way to get a container to look
> like just another host on the LAN, starting with
>   sudo apt-get install lxc
>   sudo lxc-create -t ubuntu -n foobar
> on ubuntu 13.04?
> 
> Thanks,
> Dan




------------------------------

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&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 1
****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130801/3b8f32d1/attachment.html>


More information about the lxc-users mailing list