[lxc-devel] bugs with LXC container : mount and rmmod command

Daniel Lezcano daniel.lezcano at free.fr
Wed Jan 6 12:03:59 UTC 2010


Elias Olivares wrote:
> Hi 
> 
> 
> My Lxc configuration file : ( /var/lib/lxc/xxx.1g6.biz /config ) 
> 
> lxc.utsname = xxx.1g6.biz 
> lxc.tty = 4 
> lxc.pts = 1024 
> lxc.network.type = veth 
> lxc.network.flags = up 
> lxc.network.link = br0 
> lxc.network.name = eth0 
> lxc.network.mtu = 1500 
> #lxc.mount = 
> lxc.rootfs = /mnt/vmr1/xxx.1g6.biz 
> lxc.cgroup.devices.deny = a 
> # /dev/null and zero 
> lxc.cgroup.devices.allow = c 1:3 rwm 
> lxc.cgroup.devices.allow = c 1:5 rwm 
> # consoles 
> lxc.cgroup.devices.allow = c 5:1 rwm 
> lxc.cgroup.devices.allow = c 5:0 rwm 
> lxc.cgroup.devices.allow = c 4:0 rwm 
> lxc.cgroup.devices.allow = c 4:1 rwm 
> # /dev/{,u}random 
> lxc.cgroup.devices.allow = c 1:9 rwm 
> lxc.cgroup.devices.allow = c 1:8 rwm 
> lxc.cgroup.devices.allow = c 136:* rwm 
> lxc.cgroup.devices.allow = c 5:2 rwm 
> # rtc 
> lxc.cgroup.devices.allow = c 254:0 rwm 
> 
> # lxc-version 
> lxc version: 0.6.3 

There were some modifications with how the rootfs is mounted.

Can you check against the 0.6.4 version ?

wget http://lxc.sourceforge.net/download/lxc/lxc-0.6.4.tar.gz
tar xvzf lxc-0.6.4.tar.gz
cd lxc-0.6.4
./configure --localstate=/var --prefix=/usr --libdir=/usr/lib64 (if you 
are on a x86_64 arch).
make && sudo make install

Or may be you can try with the latest git repository:

git-clone git://lxc.git.sourceforge.net/gitroot/lxc/lxc
cd lxc
./autogen.sh
./configure --localstate=/var --prefix=/usr --libdir=/usr/lib64 (if you 
are on a x86_64 arch).
make && sudo make install




More information about the lxc-devel mailing list