[lxc-users] Mounted /proc entries empty

Ben Green ben at bristolwireless.net
Wed Sep 25 12:56:38 UTC 2019


Hi all,

sad I didn't get any response at all, but I fixed my problem anyway.  
It turns out that lxcfs was unable to mount it's fuse mount on  
/var/lib/lxcfs because a file had ended up there, and fuse won't mount  
if it finds a non-empty directory. Once I cleared out that directory  
and restarted lxcfs it all worked fine.

Cheers,
Ben

Quoting Ben Green <ben at bristolwireless.net>:

> Hi all,
>
> first time writing to this list for me, I checked a few months back  
> posts to see if this issue had come up recently.
>
> I've been trying to get some elements of LXC to work on Debian 10  
> 'Buster'. One issue is outstanding.
>
> From inside containers the /proc entries that mounted onto it  
> contain nothing. They look like this when mounted:
>
> /dev/sda9 on /proc/cpuinfo type ext3 (rw,relatime)
> /dev/sda9 on /proc/diskstats type ext3 (rw,relatime)
> /dev/sda9 on /proc/meminfo type ext3 (rw,relatime)
> /dev/sda9 on /proc/stat type ext3 (rw,relatime)
> /dev/sda9 on /proc/swaps type ext3 (rw,relatime)
> /dev/sda9 on /proc/uptime type ext3 (rw,relatime)
>
>
> I've tried Ubuntu containers, Debian containers and both  
> unprivileged and privileged. Here's how one stats:
>
>
> root at bambooz:~# stat /proc/cpuinfo
>   File: /proc/cpuinfo
>   Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
> Device: 809h/2057d	Inode: 16640192    Links: 1
> Access: (0444/-r--r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
> Access: 2019-09-24 10:12:46.000000000 +0000
> Modify: 2019-09-10 12:27:13.000000000 +0000
> Change: 2019-09-10 12:27:13.000000000 +0000
>  Birth: -
>
>
> That's all I've got. Not seeing anything unusual in the way it boots  
> up. I've attached example DEBUG logs for one of the unprivileged  
> guests I've tried. Has anyone any clues about what's happening here?
>
>
> Cheers,
> Ben





More information about the lxc-users mailing list