[Users] no such file or directory

2008-12-04 Thread Papp Tamás

hi!

$ strace -ff /vz/100/root/bin/ls
execve(/vz/100/root/bin/ls, [/vz/100/root/bin/ls], [/* 34 vars */]) 
= -1 ENOENT (No such file or directory)

dup(2)  = 3
fcntl(3, F_GETFL)   = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x7fa64810b000

lseek(3, 0, SEEK_CUR)   = -1 ESPIPE (Illegal seek)
write(3, strace: exec: No such file or di..., 40strace: exec: No such 
file or directory

) = 40
close(3)= 0
munmap(0x7fa64810b000, 4096)= 0
exit_group(1)   = ?
Process 9148 detached


It works with an other VE, and of course the same happens inside the VE.

It's interesting, because for example 'zsh' or 'bash' is working.

Also network is off.

How can I debug a VE, make its starting verbose or something like that?

Thank you,

tamas





___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] no such file or directory

2008-12-04 Thread Papp Tamás

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).

  

I've just done it for debugging purposes.

The point it's not working.


/bin/ls is hardlinked, it should not depend on anything.

Thank you,

tamas
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] no such file or directory

2008-12-04 Thread Papp Tamás

Pongracz Istvan wrote:

probably the correct way is:

vzctl exec 100 'strace -ff /bin/ls'

If the strace exists in the container, it must work.
  


Why shoud I want to run it like this?

I know, it's not working in the container and I want to see it outside.

Thanks,

tamas
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users


Re: [Users] vzctl start

2008-08-28 Thread Papp Tamás

albinootje wrote:

you should use /vz/100/root/ for mounting other things,
not /vz/100/private/
  


OK, I tried it (I'm sorry for the late answer).

I mounted a /var partition under /vz/100/root, which should contain the 
/var related files.


vzctl start, and I created a test file under it. But the file was not 
appeared on the partition, but under the private system.


How should I make it work?

I want to separate the /var and the /tmp fs from the other things in the VE.

I hope, I was clean.



Also when I start the VE, I see the root with the same size as private, 
but after the I stop it, it's clean. Is this with something like mount 
-o bind?


Thank you,

tamas
___
Users mailing list
Users@openvz.org
https://openvz.org/mailman/listinfo/users