[Users] no such file or directory

Vasily Averin vvs at parallels.com
Thu Dec 4 07:09:18 EST 2008


Pongracz Istvan wrote:
> 2008. 12. 4, csütörtök keltezéssel 12.01-kor Alexander Prinsier ezt
> írta:
>> Papp Tamás wrote:
>>> Dariush Pietrzak wrote:
>>>>> $ strace -ff /vz/100/root/bin/ls
>>>>>     
>>>>  You're trying to run a binary from inside the VE in HN's context? I't
>>>> dangerous.
>>>>  And it probably doesn't work because ls is linked to something in VE
>>>> that
>>>> doesn't exist on HN (try ldd /bin/ls or ldd /vz/100/root/bin/ls) (which
>>>> would be surprising, because ls is small program and shouldn't depend on
>>>> anything exotic).
>>>>
>>> /bin/ls is hardlinked, it should not depend on anything.
>> You probably mean "statically linked". /bin/ls usually is dynamically
>> linked. At least in any standard distro... Statically linked executables
>> aren't very common.
>>
>> Anyway, please post the output of ldd /bin/ls and ldd
>> /vz/100/root/bin/ls to help us help you.
> 
> probably the correct way is:
> 
> vzctl exec 100 'strace -ff /bin/ls'
> 
> If the strace exists in the container, it must work.

btw
you can mount container by 'vzctl mount 100' command,
then you can make chroot /vz/root/100
and then start strace

thank you,
	Vasily Averin


More information about the Users mailing list