[lxc-users] Missing /proc/self after lxc-attach ?

Mateusz Korniak mateusz-lists at ant.gliwice.pl
Mon Feb 15 12:29:13 UTC 2016


Hi !
I am facing problem that 
/proc/self
is missing after I enter container via lxc-attach. [1]

When I log in to same container via lxc-start -F console, everything looks OK.
[2]

Is it bug or feature? 

It reduces usability of lxc-attach as many apps like top  [3]  and dynamic 
linking via RPATH [4] are not working :(

Confirmed Ubuntu 14.04. [5].

TIA, regards,


[1]: After lxc-attach entry to container:
# ls -la /proc/self
ls: cannot read symbolic link /proc/self: No such file or directory
lrwxrwxrwx 1 root root 0 Feb 15 12:05 /proc/self


[2]: After login via lxc-start console:
# ls -la /proc/self
lrwxrwxrwx 1 root root 0 Feb 15 12:05 /proc/self -> 1476


[3]:
# top
Error, do this: mount -t proc proc /proc

[4]:
LD_TRACE_LOADED_OBJECTS=1  ./java 
       linux-vdso.so.1 (0x00007ffd40fd8000)
       libjli.so => not found
objdump -a -x  java | grep -i rpath                                                                                                                                                                        
 RPATH                $ORIGIN/../lib/amd64/jli:/usr/jre/lib/amd64/jli:
$ORIGIN/../lib/amd64:/usr/lib/amd64:
$ORIGIN/../jre/lib/amd64:/usr/jre/lib/amd64

[5]:
lxc-create -t download -n ubuntu_tursty_test -- -d ubuntu -r trusty -a amd64


-- 
Mateusz Korniak
"(...) mam brata - poważny, domator, liczykrupa, hipokryta, pobożniś,
 	krótko mówiąc - podpora społeczeństwa."
				Nikos Kazantzakis - "Grek Zorba"



More information about the lxc-users mailing list