lxc-ls --active can't cd

networ

Renowned Member
Apr 16, 2013
5
0
66
Brno, CZ
Hi,

I'm getting following error from "lxc-ls --active"

root@karina:/# lxc-ls --active
/usr/bin/lxc-ls: 98: cd: can't cd to /sys/fs/cgroup/cpuset
/run/lxcfs/controllers/cpuset/lxc
ls: cannot access lxc: No such file or directory
ls: cannot access 901: No such file or directory

While there is no error without "--active"
root@karina:/# lxc-ls
901

From shell I can cd to the above directories without problems. The error is there also with all containers stopped.

The system is:
Proxmox VE 4.1 bare metal installation on HP ProLiant micro server (AMD N36L CPU, 1GB RAM, 1x HDD) running one container named "901" created from "debian-8.0-standard" template.
pve-manager/4.1-22/aca130cf (running kernel: 4.2.8-1-pve)
 
That is a bug in the lxc-ls shell script, which will be fixed once we update to LXC 2.0.0 (where the shell script was replaced with C code with lots more features). Why don't you use "pct list" ?