[lxc-users] LXCFS under Ubuntu 14.04 Trusty
Fajar A. Nugraha
list at fajar.net
Tue Mar 31 08:13:22 UTC 2015
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
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
# dpkg -l | grep lxc
ii liblxc1
1.1.0+master~20150317-1937-0ubuntu1~trusty amd64 Linux Containers
userspace tools (library)
ii lxc
1.1.0+master~20150317-1937-0ubuntu1~trusty amd64 Linux Containers
userspace tools
ii lxc-templates
1.1.0+master~20150317-1937-0ubuntu1~trusty amd64 Linux Containers
userspace tools (templates)
ii lxcfs 0.6-0ubuntu2~ubuntu14.04.1~ppa1
amd64 FUSE based filesystem for LXC
ii python3-lxc
1.1.0+master~20150317-1937-0ubuntu1~trusty amd64 Linux Containers
userspace tools (Python 3.x bindings)
# dpkg -l | grep systemd
ii libpam-systemd:amd64 204-5ubuntu20.10
amd64 system and service manager - PAM module
ii libsystemd-daemon0:amd64 204-5ubuntu20.10
amd64 systemd utility library
ii libsystemd-login0:amd64 204-5ubuntu20.10
amd64 systemd login utility library
ii systemd-services 204-5ubuntu20.10
amd64 systemd runtime services
ii systemd-shim 6-2bzr1
amd64 shim for systemd
# ps -ef | grep lxc
root 6155 1 0 22:45 ? 00:00:00 /usr/bin/lxcfs -s -f -o
allow_other /var/lib/lxcfs
root 6358 1499 0 22:49 pts/0 00:00:00 grep --color=auto lxc
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.
--
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150331/31aa87c1/attachment.html>
More information about the lxc-users
mailing list