I am using Openstack, which internally uses
libvirt to start the container.

I am able to connect to the console through virsh.
I couldn't get strace output, as required binaries aren't there 
inside the container.

When I try to ssh into container, it says connection refused.
After logging into the console and doing
/etc/init.d/ssh restart inside the container, I tried to ssh(both as root and 
non-root)
into container.It asks me password and once authentication
is completed, connection is reset by container.

If you have any idea, please let me know.why connection is refused though
sshd runs in container initially  and later on why does connection is reset by 
ssh. 

Thanks in advance

Regards
Devendra


----- Original Message -----
From: "Serge E. Hallyn" <[email protected]>
To: "Devendra K. Modium" <[email protected]>
Cc: [email protected]
Sent: Wednesday, July 20, 2011 4:46:58 PM
Subject: Re: [Lxc-users] Ubuntu lxc on top of RHEL

Quoting Devendra K. Modium ([email protected]):
> Hi All
> 
> I am trying to run the Ubuntu LXC container on top
> of RHEL. Everything runs fine. /sbin/init , console dhcpclient etc.
> 
> But even though sshd demon gets started. I am not able to ssh into the 
> container.
> 
> I debbuged and noticed that lsof -i -n -P output says
> that ssd cannot stat the libraries /lib/libcry* , /lib/libns*,... etc (No 
> such file or directory).
> 
> I checked inside the container and found that those libraries are present and 
> in correct path.
> Infact I copied those libraries to /lib64 also.But couldn't get sshd working.
> 
> Is this because of Ubuntun on top of RHEL?
> 
> Any inputs are appreciated.

Can you give a few more details?  How exactly did you create the
container?  Can you log in with lxc-console?  If so, what do
you get when you 'strace -f sshd -D'?

thanks,
-serge

------------------------------------------------------------------------------
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
_______________________________________________
Lxc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to