What do you see if you run "grep lxcfs /proc/1/mountinfo" inside the container?
And do you see the lxcfs tree at /var/lib/lxcfs/ on the host? On Tue, Jun 05, 2018 at 11:50:51AM -0700, Martín Fernández wrote: > Stéphane, > > I just got time to do my work on lxcfs. Installed lxcfs running on a Ubuntu > 14.04 box, installed version is 2.0.8. > > I restarted one of our containers and “I think” I see wrong output when > running `free` for example. > > lxc-info shows 1GB of memory usage and `free` shows 24GB of memory usage > which is the same as the host memory usage. Anything I could be missing ? > > Short version of the process done would be: > > - apt-get install lxcfs > - sudo init 0 (in container) > - lxc-start -n container-name -d > > Best, > Martín > > On Thu, May 31, 2018 at 12:39 AM "Stéphane Graber" < ">"Stéphane Graber" > > wrote: > > > > > > > > > On Wed, May 30, 2018 at 07:16:04PM -0700, Martín Fernández wrote: > > > Stéphane, > > > > > > Thank you very much for the quick reply! > > > > > > What are you are saying is pretty awesome! That would make it super easy > > to start using it. Is there any constraint in terms of what versions of > > LXC are supported ? I can run LXCFS with LXC 1.0.10 ? > > > > 1.0.10 should be fine though we certainly don't have all that many users > > of that release now that it's two LTS ago :) > > > > In any case, it'll be safe to install LXCFS, then create a test > > container, confirm it behaves and if it does then start restarting your > > existing containers, if it doesn't, let us know and we'll try to figure > > out why. > > > > > In order to understand a little bit more about how LXCFS works, does > > LXCFS hook into LXC starting process and mount /proc/* files ? > > > > That's correct, LXCFS when installed will create a tree at > > /var/lib/lxcfs those files then get bind-mounted on top of the > > containers /proc/* files through a LXC startup hook. > > > > > Thank you very much again! > > > > > > Best, > > > Martín > > > > > > On Wed, May 30, 2018 at 10:52 PM "Stéphane Graber" < ">"Stéphane Graber" > > > wrote: > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > lxc-users mailing list > > > > [email protected] > > > > http://lists.linuxcontainers.org/listinfo/lxc-users > > > > > > > > > > > > > > > > On Wed, May 30, 2018 at 05:08:59PM -0700, Martín Fernández wrote: > > > > > Hello, > > > > > > > > > > We are using LXC to virtualize containers in multiple of our hosts. > > We > > > > have been running with LXC for a while now. > > > > > > > > > > We started adding monitoring tools to our systems and found the > > known > > > > issue that LXC containers show the host information on /proc/meminfo > > and > > > > /proc/cpuinfo. > > > > > > > > > > I found that LXCFS solves the problems mentioned above. What would > > be > > > > required to setup LXCFS in my hosts ? Would I need to reboot all the > > > > containers ? Do I need to restore my containers filesystem ? Is there > > any > > > > guide/documentation around it ? > > > > > > > > > > Thanks before hand! > > > > > > > > > > Best, > > > > > Martín > > > > > > > > Hey there, > > > > > > > > You should just need to install lxcfs and then any container you start > > > > > > or restart will be using it. There's no way to set it up against a > > > > running container, but there's also no need to restart all your > > > > containers immediately, you can slowly roll it out if that helps. > > > > > > > > And no changes needed to the containers, it gets setup automatically > > > > through a lxc hook when the container starts. > > > > > > > > > > > > -- > > > > Stéphane Graber > > > > Ubuntu developer > > > > http://www.ubuntu.com > > > > > > > > > > > > > > > > -- > > Stéphane Graber > > Ubuntu developer > > http://www.ubuntu.com > > > > > > -- Stéphane Graber Ubuntu developer http://www.ubuntu.com
signature.asc
Description: PGP signature
_______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
