Re: [Lxc-users] Is there a Redhat template?

2012-04-25 Thread Fajar A. Nugraha
2012/4/25 Sam Wang zhefw...@gmail.com: In lxc templates directory,I've found lxc-ubuntu,lxc-fedora...but there is no Redhat template. who can tell me where can I find a Redhat template? thanks a lot. I don't think there is one. Mainly because you can only download software from RHN if you

[Lxc-users] using CAN sockets inside the container

2012-04-25 Thread fae
Hi all, I'm trying to set up a test environment for my application (using CAN sockets) based on LXC, but I'm stuck now because it seems that opening this kind of sockets inside the container does not work... The following program works nice on a real host (printing fd = 3), but fails on the

[Lxc-users] [RFC PATCH] lxc-execute: search for valid init to run

2012-04-25 Thread Serge Hallyn
lxc-init used to be under /usr/lib/lxc. Now it is under /usr/lib/multiarch/lxc, but old containers will still have it under /usr/lib/lxc. So search for a valid lxc-init to run. [ This has been tested in a ubuntu package based on the debian one, but I haven't yet tested it against lxc.git.

Re: [Lxc-users] Automated Mount for every lxc container

2012-04-25 Thread bmullan
Sebastian Bachmann me@... writes: Hi, We are currently migrating from openvz to lxc and now we facing a problem which can be solved quickly but this would cause other trouble I'm trying to prevent. We had in all our VZ Containers a directory mounted from the host, which contains

Re: [Lxc-users] Automated Mount for every lxc container

2012-04-25 Thread Serge Hallyn
Quoting Sebastian Bachmann (m...@free-minds.net): -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, We are currently migrating from openvz to lxc and now we facing a problem which can be solved quickly but this would cause other trouble I'm trying to prevent. We had in all our VZ

[Lxc-users] [PATCH 3/9] lxc-clone: maintain size of lvm snapshot

2012-04-25 Thread Serge Hallyn
From: Serge Hallyn serge.hal...@ubuntu.com When creating a container as lvm snapshot, use the original size unless user explicitly overrides it. It's all well and good to day use lvextend if you run out of space, but in the meantime applications may become corrupted... Signed-off-by: Serge

[Lxc-users] [PATCH 9/9] lxc-destroy: wait until the container is stopped

2012-04-25 Thread Serge Hallyn
From: Serge Hallyn serge.hal...@ubuntu.com Author: Timothy Chen tnac...@gmail.com Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/980902 Signed-off-by: Serge Hallyn serge.hal...@ubuntu.com Cc: Timothy Chen tnac...@gmail.com --- src/lxc/lxc-destroy.in |1 + 1 file changed, 1

[Lxc-users] [PATCH 4/9] pin a container's rootfs

2012-04-25 Thread Serge Hallyn
From: Serge Hallyn serge.hal...@ubuntu.com If /var/lib/lxc is a separate filesystem, and you start and stop only a single container which has it's rootfs at /var/lib/lxc/c1/rootfs, then /var/lib/lxc will be re-mounted readonly when the container, at shutdown, does 'mount -o remount,ro /'.

[Lxc-users] [PATCH 7/9] templates: use relative paths when creating containers

2012-04-25 Thread Serge Hallyn
From: Serge Hallyn serge.hal...@ubuntu.com At the same time, allow lxc.mount.entry to specify an absolute target path relative to /var/lib/lxc/CN/rootfs, even if rootfs is a blockdev. Otherwise all such entries are ignored for blockdev-backed containers. Signed-off-by: Serge Hallyn

[Lxc-users] [PATCH 8/9] Add lxc-shutdown script

2012-04-25 Thread Serge Hallyn
From: Serge Hallyn serge.hal...@ubuntu.com It optionally waits (an optional timeout # of seconds) for the container to be STOPPED. If given -r, it reboots the container (and exits immediately). I decided to add the timeout after all because it's harder to finagle into an upstart post-stop script

[Lxc-users] [PATCH 2/9] lxc-clone: update any hwaddrs

2012-04-25 Thread Serge Hallyn
From: Serge Hallyn serge.hal...@ubuntu.com Since we are creating a new container it should not share a macaddr with the original container. Signed-off-by: Serge Hallyn serge.hal...@ubuntu.com --- src/lxc/lxc-clone.in | 14 ++ 1 file changed, 14 insertions(+) diff --git

[Lxc-users] [PATCH 1/9] several templates updates

2012-04-25 Thread Serge Hallyn
From: Serge Hallyn serge.hal...@ubuntu.com Here are some template updates from the ubuntu package: lxc-busybox: check separately for lib64 existence lxc-sshd: allow specifying ssh key, and run dhclient if no static ip is defined lxc-ubuntu: 1. set -e 2. handle resolv.conf being a symbolic