Subject: Re: [vserver] ssh problem after migration ("Read from socket failed")
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Sat, 22 Nov 2008 15:56:05 +0100


> Due to my machine having died unexpectedly, I copied the vservers files
> over to another machine (together with the contents of /etc/vservers).
> The vservers start but I have this problem:

how did you copy the directories over?
did you ensure to preserve ownership and flags?

On Sat, Nov 22, 2008 at 03:32:38PM +0100, Gilles wrote:
> Hi.
> 
> > > 2008-11-22_12:49:20.17760 chroot("/var/run/sshd"): Operation not
> > > permitted
> > That looks like the crux of the issue.  Ensure that folder exists.
> 
> # cd /var/run/sshd
> # ls -la
> total 8
> drwxr-xr-x  2 root root 4096 Oct  7  2005 .
> drwxr-xr-x 13 root root 4096 Nov 22 12:54 ..
> 
> But when I do
> 
> # chroot /var/run/sshd
> chroot: cannot change root directory to /var/run/sshd: Operation not
> permitted

what is your barrier setup?
what are the permissions on the guest's /?

best,
Herbert

> Gilles
> 
> 
> ---
> More than 2000 Scarlet customers don't pay a subscription anymore!
> Join and surf free of charge! >> http://www.scarlet.be/nl/mgm