[lxc-users] LXCFS install issue
Rajasekar Darapuram
raj at robinsystems.com
Wed Apr 29 14:27:57 UTC 2015
Further..
Now I only have one container running on my system. I redid the steps
1. ran fusermount -uz /var/lib/lxcfs (as service lxcfs start was failing)
2. Start lxcfs..checked the status and it is running
3. Start a container
4. Check lxcfs status and it is in start/running
Now I attach to the container and run ps, I get the same error
*Error: /proc must be mounted*
* To mount /proc at boot you need an /etc/fstab line like:*
* proc /proc proc defaults*
* In the meantime, run "mount proc /proc -t proc"*
*Please let me know.*
*Thanks*
On Tue, Apr 28, 2015 at 9:37 PM, Rajasekar Darapuram <raj at robinsystems.com>
wrote:
> When I try to restart restart the containers..on lxc-start the lxcfs is
> getting killed again...Do I need to reboot the machine?
>
> So here are the steps I did
>
> 1. Stopped all containers
> 2. ran fusermount -uz /var/lib/lxcfs (as service lxcfs start was failing)
> 3. Start lxcfs..checked the status and it is running
> 4. Start a container
> 5. Check lxcfs status and it is in stop/waitting
>
> Please let me know.
>
> Thanks
>
>
> On Fri, Apr 24, 2015 at 7:38 PM, Stéphane Graber <stgraber at ubuntu.com>
> wrote:
>
>> On Fri, Apr 24, 2015 at 07:30:00PM -0500, Rajasekar Darapuram wrote:
>> > Hi
>> > When I add ppa:ubuntu-lxc/daily repo and do an apt-get install lxcfs
>> (and
>> > lxc, cgmanager) LXCFS is working fine inside containers. But the apt-get
>> > downloads the latest deb everyday..TO be consistent for all developers I
>> > downloaded the debs and wrote a script to upgrade LXC 1.10 to LXC 1.1.
>> and
>> > LXCFS. It installs the new versions of LXC and LXCFS. I was able to
>> > create containers and start the,. However when I attach to the container
>> > and run ps command I get this error (if I stop lxcfs service, then ps is
>> > working fine inside the containers)
>> >
>> > root at eqx03-flash04:/etc# lxc-ls -f
>> > NAME STATE IPV4 IPV6 GROUPS AUTOSTART
>> > ----------------------------------------------------------------------
>> > eqx03-vnode18 <http://eqx03-vnode18.robinsystems.com> STOPPED - -
>> > - NO
>> > eqx03-vnode52 <http://eqx03-vnode52.robinsystems.com> STOPPED - -
>> > - NO
>> > root at eqx03-flash04:/etc# lxc-start -n eqx03-vnode18
>> > <http://eqx03-vnode18.robinsystems.com>
>> > root at eqx03-flash04:/etc# lxc-ls -f
>> > NAME STATE IPV4 IPV6 GROUPS
>> > AUTOSTART
>> >
>> -----------------------------------------------------------------------------
>> > eqx03-vnode18 <http://eqx03-vnode18.robinsystems.com> RUNNING
>> 10.9.240.18
>> > - - NO
>> > eqx03-vnode52 <http://eqx03-vnode52.robinsystems.com> STOPPED -
>> > - - NO
>> > root at eqx03-flash04:/etc# service lxcfs status
>> > lxcfs start/running, process 22159
>> >
>> > root at eqx03-flash04:/etc# ls /var/lib/lxcfs
>> > cgroup proc
>> > root at eqx03-flash04:/etc#
>> > root at eqx03-flash04:/etc# lxc-attach -n eqx03-vnode18
>> > <http://eqx03-vnode18.robinsystems.com>
>> > *root at eqx03-vnode18:/etc# ps*
>> > *Error: /proc must be mounted*
>> > * To mount /proc at boot you need an /etc/fstab line like:*
>> > * proc /proc proc defaults*
>> > * In the meantime, run "mount proc /proc -t proc"*
>> >
>> >
>> > Also sometimes lxcfs service is getting killed and when I do an ls on
>> > /var/lib/lxcfs, I get this error
>> > transport endpoint is not connected
>> >
>> > Please let me know.
>> >
>> > Thanks
>> > Raj
>>
>> It's unfortunately a known issue with lxcfs (and one that is based on a
>> kernel limitation so unlikely to be resolved very soon).
>>
>> Restarting lxcfs (by an update or a crash) causes any container using it
>> to return empty files instead of the lxcfs files.
>>
>> The only fix for this issue is to restart all your containers whenever
>> lxcfs is restarted.
>>
>> --
>> Stéphane Graber
>> Ubuntu developer
>> http://www.ubuntu.com
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150429/a6edbc4f/attachment.html>
More information about the lxc-users
mailing list