[Lxc-users] help with root mount parameters

Daniel Lezcano dlezcano at fr.ibm.com
Wed May 26 09:17:45 UTC 2010


On 05/26/2010 10:54 AM, Ralf Schmitt wrote:
> Daniel Lezcano<dlezcano at fr.ibm.com>  writes:
>
>>
>> This is internal stuff of lxc. Before this commit, several temporary
>> directories were created and never destroyed, polluting '/tmp'.
>>
>> In order to do pivot_root, we have to mount --bind the rootfs somewhere.
>> This 'somewhere' was a temporary directory and now it is
>> "/usr/lib64/lxc" by default (choosen at configure time), or optionally
>> configurable with lxc.rootfs.mount.
>
> /var/run/lxc looks like a much better choice to me.

Yes, that was the first choice but in some distros like ubuntu, this 
directory is a tmpfs. After the install of lxc, the directory will be 
destroyed at the reboot.

I thought "/var/tmp/lxc" may be a good alternative because it is defined 
as "Temporary files to be preserved between reboots." in FHS.





More information about the lxc-users mailing list