[Lxc-users] mountall mounts /dev from host machine

Ulli Horlacher framstag at rus.uni-stuttgart.de
Wed Oct 26 16:47:47 UTC 2011


On Wed 2011-10-26 (18:35), Arie Skliarouk wrote:
> Hi,
> 
> On one of my ubuntu 10.04 vservers mountall mounts /dev from the host
> machine. This causes problems for syslogd that works over /dev/log.
> The vserver has properly populated /dev directory, it just mounts /dev from
> host on top of it.
> 
> I don't know how to disable this.

I have in the container config files:

lxc.cap.drop = sys_admin

Which prevents mounting by the container at all.

File systems are mounted at lxc start via container.fstab, for example:

root at vms2:/lxc# cat fex.fstab 
none /lxc/fex/dev/pts           devpts  defaults 0 0
none /lxc/fex/proc              proc    defaults 0 0
none /lxc/fex/sys               sysfs   defaults 0 0
none /lxc/fex/var/lock          tmpfs   defaults 0 0
none /lxc/fex/var/run           tmpfs   defaults 0 0
/lxc/share  /lxc/fex/share      none    bind 0 0


-- 
Ullrich Horlacher              Server- und Arbeitsplatzsysteme
Rechenzentrum                  E-Mail: horlacher at rus.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-685-65868
Allmandring 30                 Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.rus.uni-stuttgart.de/




More information about the lxc-users mailing list