[lxc-users] LXCFS under Ubuntu 14.04 Trusty
Georg Schönberger
gschoenberger at thomas-krenn.com
Tue Mar 31 09:37:18 UTC 2015
On Die, 2015-03-31 at 15:13 +0700, Fajar A. Nugraha wrote:
> On Tue, Mar 31, 2015 at 1:24 PM, Georg Schönberger <
> gschoenberger at thomas-krenn.com> wrote:
>
> > Hi!
> >
> > I am trying to set up LXCFS under Ubuntu 14.04 trusty, I am using the
> > daily ppa:
> > # cat /etc/apt/sources.list.d/ubuntu-lxc-daily-trusty.list
> > deb http://ppa.launchpad.net/ubuntu-lxc/daily/ubuntu trusty main
> >
> > What I have configured so far:
> > # apt-get install lxcfs
> > # grep lxcfs /var/lib/lxc/ubuntu1/config
> > lxc.include = /usr/share/lxc/config/common.conf.d/00-lxcfs.conf
> >
> > Unfortunately lxcfs is not mounted and I can not run it from the command
> > line:
> > # service lxcfs status
> > lxcfs stop/waiting
> > # mount | grep lxcfs
> > # lxcfs -d -s -f -o allow_other /var/lib/lxcfs
> > call to move_pid_abs (all:/) failed: invalid request
> > WARNING: failed to escape to root cgroup
> >
> > # uname -a
> > Linux trusty 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC
> > 2015 x86_64 x86_64 x86_64 GNU/Linux
> > # dpkg -l | grep lxcfs
> > ii lxcfs 0.6-0ubuntu2~ubuntu14.04.1~ppa1
> > amd64 FUSE based filesystem for LXC
> >
> > Any help on how to set it up correctly?
> >
>
> Works for me
> Try updating your OS, and make sure the dependencies are installed
> correctly. IIRC libpam-systemd is used to setup correct cgroups for users
> on login, but it is possible to have lxc installed without libpam-systemd.
> Also try rebooting your server if you haven't already done so.
OK,
I thought it would be sufficient to *just* install lxcfs from the daily
ppa. But it seems this is not the case. Therefore I upgraded *all*
packages with the ones located in daily ppa.
* First I installed lxc 1.1, but this did not change the situation:
# apt-get install lxc
The following packages will be upgraded:
liblxc1 lxc python3-lxc
# reboot
# mount | grep lxcfs
* Then I upgraded the rest:
# apt-get dist-upgrade
The following packages will be REMOVED:
cgmanager-utils
The following packages will be upgraded:
apport cgmanager lxc-templates python3-apport
python3-problem-report sysv-rc sysvinit-utils
After a reboot lxcfs is set up correctly:
# mount | grep lxcfs
lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,allow_other)
It seems for lxcfs we have to use a recent cgmanger, don't we?
Then maybe we should enhance the dependencies?
# apt-cache show lxcfs | grep Depends
Depends: cgmanager, libc6 (>= 2.17), libcgmanager0 (>=
0.35-1~ubuntu14.04.1~ppa1), libdbus-1-3 (>= 1.0.2), libfuse2 (>= 2.8.1),
libnih-dbus1 (>= 1.0.0), libnih1 (>= 1.0.0), init-system-helpers (>=
1.13~), sysv-rc (>= 2.88dsf-24) | file-rc (>= 0.8.16)
Currently also some kind of mixed versions are possible, which is not
optimal (in the case I use only 'apt-get install lxcfs'):
$ dpkg -l | grep -E 'cgma|lxcfs'
ii cgmanager 0.24-0ubuntu7.3
amd64 Central cgroup manager daemon
ii cgmanager-utils 0.24-0ubuntu7.3
amd64 Central cgroup manager daemon (utilities)
ii libcgmanager0:amd64 0.36-2ubuntu1~ubuntu14.04.1~ppa1
amd64 Central cgroup manager daemon (client library)
ii lxcfs 0.6-0ubuntu2~ubuntu14.04.1~ppa1
amd64 FUSE based filesystem for LXC
Maybe we could let lxfcs depend on a particular cgmanager version?
(which is currently not the case, cf. Depends of lxcfs above).
- Georg
More information about the lxc-users
mailing list