Re: [Lxc-users] Cluster Resource Agent

2011-04-07 Thread Christoph Mitasch
Hi Brian,

I'm using the init script supplied with Ubuntu Natty.

Regards,
Christoph

On 04/06/2011 07:55 PM, Brian K. White wrote:
 On 4/6/2011 4:56 AM, Christoph Mitasch wrote:
 Hi,

 I'm wondering if anybody is using LXC in a high availability cluster.

 I tried to use it in a Pacemaker Cluster together with DRBD.

 In theory there would be the VirtualDomain Resource Agent supporting
 libvirt. But since my libvirt experience together with LXC was not
 promising, I think the best option is to use lxc-tools.

 It worked for me when using the lxc init script (/etc/init.d/lxc) for
 active/passive configurations.

 As far as I found out only /etc/lxc/ and corresponding lxc rootfs dirs
 have to be shared. /var/lib/lxc should not be necessary, because lxc
 init script doesn't use lxc-create/lxc-destroy.

 Anything else to take care of when moving LXC containers around machines?

 For active/active and more advanced configurations an OCF Resource Agent
 for LXC would be nice. It could be similar to the ManageVE RA for OpenVZ:
 http://hg.linux-ha.org/agents/raw-file/tip/heartbeat/ManageVE

 Regards,
 Christoph
 
 What lxc init script? I think we all write our own and there is no 
 official one yet.
 
 I write one for openSUSE but it's not in the suse lxc package nor in any 
 other official suse package, just in a stand-alone rclxc package in my 
 buildservice repo.
 
 If the official packages for other distros includes an init script, it 
 will be different for each one since containers are such a low-level 
 feature that can be used for so many different kinds of jobs, it's hard 
 to imagine what an official init script would even be like.
 

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] what's the difference in lxc-attach

2011-04-07 Thread Cedric Le Goater
On 04/07/2011 07:46 AM, Ramez Hanna wrote:
 from a post that i found earlier in the archive
 subject entering a container by Daniel Lezcano
 
 i cannot see the differece between lxc-attach and lxc-execute
 could someone explain?

lxc-execute creates a container and exec's a command/application 
inside it (see manual). 

lxc-attach enters a *running* container and exec's a command inside 
it (manual soon to come). This ability of creating an exogenous 
process inside a container requires a kernel patchset.

C.

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] opensuse containers

2011-04-07 Thread Daniel Lezcano
On 04/06/2011 09:07 PM, Ramez Hanna wrote:
 i have fixed the fedora script earlier when i needed fedora containers
 but now i need several opensuse containers, but my knowledge of opensuse
 isn't that deep
 did anyone create a lxc-opensuse?
Nope, I created an opensuse container, so I know that works well but I 
didn't created the template.
As far as I remember, it is very similar than the fedora container.

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] opensuse containers

2011-04-07 Thread Ramez Hanna
On Thu, Apr 7, 2011 at 12:14 PM, Brian K. White br...@aljex.com wrote:

 On 4/7/2011 4:43 AM, Daniel Lezcano wrote:
  On 04/06/2011 09:07 PM, Ramez Hanna wrote:
  i have fixed the fedora script earlier when i needed fedora containers
  but now i need several opensuse containers, but my knowledge of opensuse
  isn't that deep
  did anyone create a lxc-opensuse?
  Nope, I created an opensuse container, so I know that works well but I
  didn't created the template.
  As far as I remember, it is very similar than the fedora container.

 Not really.

 I have a slightly out of date manual recipe here:
 http://en.opensuse.org/LXC

 opensuse has nothing like febootstrap which the fedora template relies
 on. The closest they have (without using an autoinst.xml) is zypper, but
 it still requires some user interaction no matter what.
 Much of the rest of the setup is different too.

according to febootstrap developer and the thread with subject fedora
template  it is no longer usable in that way
so i had created a different template using only yum
so i beleive it could be done in the same way ith zypper i'll look into it


 I never made this into a template script because I hadn't yet decided if
 it was better to do this or do something based on an autoinst.xml
 instead. I follow this recipe myself when creating new containers if I'm
 not starting by copying a previously created container.

 It could be improved though. Some steps are unnecessary wrt the network
 config files in /etc, they just satisfy yast so the container looks more
 like a regular system to an admin who might use yast not realising he's
 even in a container.

 --
 bkw


 --
 Xperia(TM) PLAY
 It's a major breakthrough. An authentic gaming
 smartphone on the nation's most reliable network.
 And it wants your games.
 http://p.sf.net/sfu/verizon-sfdev
 ___
 Lxc-users mailing list
 Lxc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/lxc-users

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users


Re: [Lxc-users] Container with different architecture like arm on x86 [How-to]

2011-04-07 Thread Brian K. White
On 4/7/2011 5:23 AM, l...@zitta.fr wrote:

 qemu has 2 modes system and user
 You described system mode and I used user mode

That resolves a lot of the mystery right there. I hadn't realized qemu 
had such a mode.

The other issues are either

* obviated by the fact that you're already doing it and the world didn't 
blow up (kernel/abi/environment compatibility),

* or the usefulness outweighs the cost (each process runs in it's own 
qemu instance).

Pretty slick.

-- 
bkw

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users