Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-4867

LXCFS "fusermount: mount failed: Operation not permitted"

      lxcfs service starts and crashes directly on startup. Can be then stopped only with rc-service lxcfs zap

       

      Running lxcfs manually doesn't work

      csxhost ~ # /usr/bin/lxcfs -s -f -o allow_other /var/lib/lxcfs
      hierarchies:
        0: fd:   5: pids
        1: fd:   6: net_prio
        2: fd:   7: perf_event
        3: fd:   8: net_cls
        4: fd:   9: freezer
        5: fd:  10: devices
        6: fd:  11: memory
        7: fd:  12: blkio
        8: fd:  13: cpuacct
        9: fd:  14: cpu
       10: fd:  15: cpuset
       11: fd:  16: name=openrc
      fusermount: mount failed: Operation not permitted

      csxhost ~ # mount lxcfs /var/lib/lxcfs -t fuse.lxcfs -o allow_other
      Warning: unexpected fuse option rw,allow_other,dev,suid

       

      csxhost ~ # rc-status
      Runlevel: default
       tuned                  [  started  ]
       lxcfs                  crashed  ]
       netif.eth0             [  started  ]
       lxd                    [  started  ]
       numad                  [  started  ]
       sshd                   [  started  ]
       local                  [  started  ]
      Dynamic Runlevel: hotplugged
      Dynamic Runlevel: needed/wanted
       dbus                   [  started  ]
      Dynamic Runlevel: manual

       

      csxhost ~ # lxd --version
      2.21
      csxhost ~ # lxc --version
      2.21
      csxhost ~ # lxcfs --version
      2.0.6

       

      csxhost ~ # rc-update del lxcfs
       * service lxcfs removed from runlevel default
      csxhost ~ # shutdown -r now

      csxhost ~ # rc-status
      Runlevel: default
       tuned             [  started  ]
       netif.eth0        [  started  ]
       lxd               [  started  ]
       numad             [  started  ]
       sshd              [  started  ]
       local             [  started  ]
      Dynamic Runlevel: hotplugged
      Dynamic Runlevel: needed/wanted
       dbus              [  started  ]
      Dynamic Runlevel: manual

      csxhost ~ # /usr/bin/lxcfs -s -f -o allow_other /var/lib/lxcfs
      hierarchies:
        0: fd:   5: pids
        1: fd:   6: net_prio
        2: fd:   7: perf_event
        3: fd:   8: net_cls
        4: fd:   9: freezer
        5: fd:  10: devices
        6: fd:  11: memory
        7: fd:  12: blkio
        8: fd:  13: cpuacct
        9: fd:  14: cpu
       10: fd:  15: cpuset
       11: fd:  16: name=openrc
      fuse: mountpoint is not empty
      fuse: if you are sure this is safe, use the 'nonempty' mount option

       

      csxhost ~ # /usr/bin/lxcfs -s -f -o allow_other,nonempty /var/lib/lxcfs
      Warning: unexpected fuse option allow_other,nonempty

       

      csxhost ~ # rc-service lxcfs start
       * Starting lxcfs ...       [ ok ]
      csxhost ~ # rc-service lxcfs status
       * status: crashed

       
      user_allow_other is specified in /etc/fuse.conf

       

      csxhost ~ # rc-service lxcfs status; mount | grep lxcfs
       * Executing: /lib64/rc/sh/openrc-run.sh /lib64/rc/sh/openrc-run.sh /etc/init.d/lxcfs status
       * status: crashed
      lxcfs on /proc/cpuinfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
      lxcfs on /proc/diskstats type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
      lxcfs on /proc/meminfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
      lxcfs on /proc/stat type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
      lxcfs on /proc/swaps type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
      lxcfs on /proc/uptime type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
      lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other) 

       

      csxhost ~ # rc-update del lxcfs
       * service lxcfs removed from runlevel default
      csxhost ~ # shutdown -r now

      csxhost ~ # mount | grep lxcfs
      lxcfs on /proc/cpuinfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
      lxcfs on /proc/diskstats type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
      lxcfs on /proc/meminfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
      lxcfs on /proc/stat type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
      lxcfs on /proc/swaps type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
      lxcfs on /proc/uptime type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
      lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
      csxhost ~ # rc-service lxcfs status
       * Executing: /lib64/rc/sh/openrc-run.sh /lib64/rc/sh/openrc-run.sh /etc/init.d/lxcfs status
       * status: stopped

            palica Pavol Cupka
            godvil godvil [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: