[Lxc-users] concurrent aptitude/dpkg runs in separate containers --> bork bork bork
Trent W. Buck
twb at cybersource.com.au
Wed Jan 12 06:39:19 UTC 2011
Mike <debian at good-with-numbers.com> writes:
>> Trent W. Buck wrote:
>>> I can provision a new LXC container, which includes running a few
>>> "aptitude install foo" lines (inside the containers), and it Just Works.
>>> If I try to provision two containers at the same time, both containers
>>> appear to hang with a dpkg process in the D state[0].
>>>
>>> My config for each container looks like this:
>>
>>> lxc.mount.entry = /home /srv/lxc/proud/home none bind
>>
> Doesn't aptitude write into the home directory that you're sharing
> across containers? locks ~/.aptitude/cache?
Possibly, but dhclient's running aptitude as uid 0, whose home is in
/root, which is not shared between hosts.
In any case, IIRC I export HOME=`mktemp -d` before aptitude runs, as a
fugly workaround for etckeeper.
I suppose if containers' /tmp are tmpfses, aptitude might be running
into some problem with locking on tmpfs, although I'm not aware of any
bogus operational semantics for tmpfs...
More information about the lxc-users
mailing list