[Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread C. L. Martinez
Hi all, I have setup my first OL6 container but it doesn't starts. When I launch lxc-start command, nothing appears: [root@ol6host templates]# lxc-start -n ol6vmserver -o /tmp/ol.log --logpriority=DEBUG My config is: # Container configuration for Oracle Linux 6 lxc.arch = x86_64 lxc.utsname =

Re: [Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread Fajar A. Nugraha
On Sun, Oct 21, 2012 at 3:42 PM, C. L. Martinez carlopm...@gmail.com wrote: Hi all, I have setup my first OL6 container but it doesn't starts. How? lxc-start 1350808610.466 WARN lxc_conf - rootfs specified but no console found at '/usr/lib64/lxc/rootfs/dev/console' Does

Re: [Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread Fajar A. Nugraha
On Sun, Oct 21, 2012 at 3:46 PM, Fajar A. Nugraha l...@fajar.net wrote: lxc-start 1350808610.466 WARN lxc_conf - rootfs specified but no console found at '/usr/lib64/lxc/rootfs/dev/console' Does /usr/lib64/lxc/rootfs/dev/console exists? Sorry. It should be does /dev/console exists

Re: [Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread C. L. Martinez
On Sun, Oct 21, 2012 at 8:51 AM, Fajar A. Nugraha l...@fajar.net wrote: On Sun, Oct 21, 2012 at 3:46 PM, Fajar A. Nugraha l...@fajar.net wrote: lxc-start 1350808610.466 WARN lxc_conf - rootfs specified but no console found at '/usr/lib64/lxc/rootfs/dev/console' Does

Re: [Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread Fajar A. Nugraha
On Sun, Oct 21, 2012 at 4:14 PM, C. L. Martinez carlopm...@gmail.com wrote: On Sun, Oct 21, 2012 at 8:51 AM, Fajar A. Nugraha l...@fajar.net wrote: On Sun, Oct 21, 2012 at 3:46 PM, Fajar A. Nugraha l...@fajar.net wrote: lxc-start 1350808610.466 WARN lxc_conf - rootfs specified but no

Re: [Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread C. L. Martinez
On Sun, Oct 21, 2012 at 9:20 AM, Fajar A. Nugraha l...@fajar.net wrote: -- No, problem continues ... I have used this template to create my lxc container: In that I says use the unmodified config file first. For example, it says lxc.devttydir = lxc (which you commented out). If you HAVE

Re: [Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread Fajar A. Nugraha
On Sun, Oct 21, 2012 at 4:23 PM, C. L. Martinez carlopm...@gmail.com wrote: On Sun, Oct 21, 2012 at 9:20 AM, Fajar A. Nugraha l...@fajar.net wrote: -- No, problem continues ... I have used this template to create my lxc container: In that I says use the unmodified config file first. For

Re: [Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread C. L. Martinez
On Sun, Oct 21, 2012 at 9:27 AM, Fajar A. Nugraha l...@fajar.net wrote: On Sun, Oct 21, 2012 at 4:23 PM, C. L. Martinez carlopm...@gmail.com wrote: On Sun, Oct 21, 2012 at 9:20 AM, Fajar A. Nugraha l...@fajar.net wrote: -- No, problem continues ... I have used this template to create my lxc

Re: [Lxc-users] Problems starting OL6.3 lxc container

2012-10-21 Thread Fajar A. Nugraha
On Sun, Oct 21, 2012 at 4:41 PM, C. L. Martinez carlopm...@gmail.com wrote: If you HAVE used the default config file created by the template, but it still doesn't work, you should probably contact the template creator directly (it's on top of the template file) and ask them how to use the

Re: [Lxc-users] [lxc-attach error] Failed to open /proc/4468/ns/pid. Failed to enter namespace

2012-10-21 Thread Frank Scholten
Laptop (Linux 3.2.0-25-generic x86_64) $ ls /proc/self/ns ipc net uts Desktop (Linux 3.5.0-17-generic x86_64) $ ls /proc/self/ns ipc net uts Do you have links to the kernel sources + patches that I need in for lxc-attach to work? Also, where is the official lxc repo located? Github,

Re: [Lxc-users] systemd inside LXC

2012-10-21 Thread John
On 19/10/12 16:51, Serge Hallyn wrote: Add: lxc.network.type = empty If you don't have any lxc.network.type sections, then the container shares network with the host, and so the container talks to the host's systemd. (same with upstart) Thanks for the reply, I will try that tomorrow. I

Re: [Lxc-users] systemd inside LXC

2012-10-21 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): Serge, I'm going to top post here simply because this is going to go off in a different direction and bringing in an old thread but it is related... Back on February 14 you responded to a message about Fedora 16 in a container, which is

Re: [Lxc-users] systemd inside LXC

2012-10-21 Thread Serge Hallyn
Quoting John (l...@jelmail.com): On 19/10/12 16:51, Serge Hallyn wrote: Add: lxc.network.type = empty If you don't have any lxc.network.type sections, then the container shares network with the host, and so the container talks to the host's systemd. (same with upstart)

[Lxc-users] Unable to run systemd in an LXC / cgroup container.

2012-10-21 Thread Michael H. Warfield
Hello, This is being directed to the systemd-devel community but I'm cc'ing the lxc-users community and the Fedora community on this for their input as well. I know it's not always good to cross post between multiple lists but this is of interest to all three communities who may have valuable

Re: [Lxc-users] systemd inside LXC

2012-10-21 Thread Michael H. Warfield
On Sun, 2012-10-21 at 14:49 -0500, Serge Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): Serge, I'm going to top post here simply because this is going to go off in a different direction and bringing in an old thread but it is related... Back on February 14 you

Re: [Lxc-users] [systemd-devel] Unable to run systemd in an LXC / cgroup container.

2012-10-21 Thread Michael H. Warfield
On Mon, 2012-10-22 at 02:53 +0200, Kay Sievers wrote: On Sun, Oct 21, 2012 at 11:25 PM, Michael H. Warfield m...@wittsend.com wrote: This is being directed to the systemd-devel community but I'm cc'ing the lxc-users community and the Fedora community on this for their input as well. I

Re: [Lxc-users] systemd inside LXC

2012-10-21 Thread Michael H. Warfield
On Sun, 2012-10-21 at 14:49 -0500, Serge Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): Serge, ... Short of building a custom systemd, I don't know how to fix that problem and I suspect this OP is going to run into this same thing (container taking over host's