Re: [Lxc-users] RAM & swap caps - what isn't allowed?

2010-12-15 Thread Trent W. Buck
t...@cybersource.com.au (Trent W. Buck) writes: > Some combinations of RAM and swap caps aren't allowed, and I'm having a > hard time understanding the pattern (i.e. *why*). From the examples > below, I *think* I cannot assign a smaller swap cap than RAM cap. The explanation for this is obvious

Re: [Lxc-users] lxc.mount.entry denied mount permission for -t ext4?

2010-12-15 Thread Trent W. Buck
t...@cybersource.com.au (Trent W. Buck) writes: > Serge Hallyn > writes: > >> You have: >> >> lxc.cgroup.devices.allow = c 1:3 rwm >> lxc.cgroup.devices.allow = c 1:5 rwm >> lxc.cgroup.devices.allow = c 1:8 rwm >> lxc.cgroup.devices.allow = c 1:9 rwm >> lxc.cgroup.devices.allow = c 4:* rwm >> lxc

Re: [Lxc-users] lxc.mount.entry denied mount permission for -t ext4?

2010-12-15 Thread Trent W. Buck
Serge Hallyn writes: > You have: > > lxc.cgroup.devices.allow = c 1:3 rwm > lxc.cgroup.devices.allow = c 1:5 rwm > lxc.cgroup.devices.allow = c 1:8 rwm > lxc.cgroup.devices.allow = c 1:9 rwm > lxc.cgroup.devices.allow = c 4:* rwm > lxc.cgroup.devices.allow = c 5:0 rwm > lxc.cgroup.devices.allow =

Re: [Lxc-users] lxc.mount.entry denied mount permission for -t ext4?

2010-12-15 Thread Serge Hallyn
You have: lxc.cgroup.devices.allow = c 1:3 rwm lxc.cgroup.devices.allow = c 1:5 rwm lxc.cgroup.devices.allow = c 1:8 rwm lxc.cgroup.devices.allow = c 1:9 rwm lxc.cgroup.devices.allow = c 4:* rwm lxc.cgroup.devices.allow = c 5:0 rwm lxc.cgroup.devices.allow = c 5:1 rwm lxc.cgroup.devices.allow = c

[Lxc-users] RAM & swap caps - what isn't allowed?

2010-12-15 Thread Trent W. Buck
Some combinations of RAM and swap caps aren't allowed, and I'm having a hard time understanding the pattern (i.e. *why*). From the examples below, I *think* I cannot assign a smaller swap cap than RAM cap. Also, is there a way to specify that a container cannot use ANY swap, i.e. the swap cap is

[Lxc-users] lxc.mount.entry denied mount permission for -t ext4?

2010-12-15 Thread Trent W. Buck
When I added an ext4 lxc.mount.entry to a working Ubuntu 10.04 container, lxc-start stopped working. Please help me understand why. A partial strace is below, and a copy of proud.conf. At first I thought that lxc-start wasn't allowed to mount it because SYS_ADMIN was dropped -- but if that's so,

Re: [Lxc-users] multi-homed host

2010-12-15 Thread Brian K. White
After a long night I think I cleared up my problem and it looks like it was all me. A case of mental blinders where once you think you've done something, you neglect to double check it later when things don't work, when really you should be checking everything and making no assumptions. I had