the ssh login hang might also be an issue with pseudo terminals, since by default when you specify a command on the ssh command line a pseudo terminal is not allocated. (you can tell ssh to always allocate one with the -t option.)
ed On Thu, Sep 13, 2007 at 09:09:27PM +0200, Gilles Gravier wrote: > Ah but it's not getting a real DHCP address from a DHCP server. It's > just getting the static address defined in the zone configuration... > > So basically, the zone thinks it's getting DHCP addresses, but Solaris > is allocating it statically... as far as I know. > > About the home directory... no, it's purely static. It's actually one > single filesystem. Nothing mounted remote. But I think the problem is > more around the fact that the zone maybe doesn't completely boot... > since it's waiting on one of the /etc/rcS.d files... and is stuck at run > level S... not 3 or 5... > > Gilles. > > Nils Nieuwejaar wrote: > >On Thu 09/13/07 at 11:16 AM, Gilles.Gravier at Sun.COM wrote: > > > >>Hi! > >> > >>I have installed a ubuntu BrandZ zone! I have zlogined into it! > >> > >>I have network running (i.e. the zone is configured for DHCP and > >>actually gets the static address from the /etc/zones/ubuntu.xml > >>configuration file)... I manually configure resolv.conf and I even get > >>DIA from inside SWAN! > >> > > > >Very cool. I'm not aware that anyone has tried dhcp inside a Linux zone, > >as it requires stack instances which weren't available when we integrated. > > > > > >>From the zone, I can telnet, ping, SSH to anywhere outside. > >> > >>But if I try to ssh to the zone, either from within the zone (ssh > >>localhost) or from outside (ssh 10.10.10.10) I get the password > >>prompt... I enter the password. I get logged in (I can see the user with > >>the "who" command, and ps -u user gives me sshd and bash running)... but > >>I don't get the prompt... can't type anything. From another session, I > >>can kill -9 bash or sshd and that effectively kills that ssh session... > >>but I would like to know if anybody has managed to go beyond that? :) > >> > > > >When you zlogin you are root, but presumably you are ssh'ing in as a real > >user? Is that user's home directory available inside the zone? It sounds > >like you might be waiting for the automounter to mount your home directory. > >Or, if your home directory is mounted, it might be waiting for some other > >directory in your PATH to be mounted. > > > >I would use DTrace to stop bash as soon as it's exec()ed, and then truss it > >to see what it's trying to do when it hangs. > > > >When you are zlogin'ed in as root, you could also try "su - <user>" to see > >if that causes the same hang. > > > > > >>I have a 900 MB ubuntu image preconfigured with user "ubuntu" and > >>password "ubuntu" and with Skype 1.4 and Google Earth pre installed.... > >>if anybody has space to drop it to, I'm happy to do so. Since it > >>contains Google Earth and Skype, it can't be published outside of SWAN, > >>of course... only for internal use. > >> > > > >I just made a directory for it: /ws/brandz/public/ubuntu/ > >(AKA: /net/tread.sfbay/export/gates/brandx/public/ubuntu/). The > >permissions are currently set to world-writable. > > > >Thanks, > > Nils > > > > -- > *Gilles Gravier, CISSP > *Chief Technology Strategist for Security > > <mailto:Gilles.Gravier at Sun.com> > Voice : > +41 (22) 707 7856 > Mobile : > +41 (79) 472 8437 > Fax : > +41 (860) 79 472 8437 > E-mail : > Gilles.Gravier at Sun.com <mailto:Gilles.Gravier at Sun.com> > > *Sun Microsystems* > Strategic Insight Office > 2 rue de Jargonnant > CH-1207 Geneva > Switzerland > > http://www.sun.com/security/ > > SunIM : ggravier at sun.com <http://im-amer.sun.com/> > ICQ : > 77488526 <http://www.icq.com/whitepages/about_me.php?Uin=77488526> > AIM : > gillesgravier <aim:goim?screenname=gillesgravier> > Y! : > ggravier <http://profiles.yahoo.com/ggravier> > Jabber : > ggravier at jabber.org/Gaim <http://www.jabber.org/> > Skype : > ggravier <callto://ggravier> > MSN : > Gilles at Gravier.org <http://members.msn.com/Gilles at Gravier.org> > Google : > gilles.gravier at gmail.com <mailto://gilles.gravier at gmail.com> > > > This mail was sent through Sun EdgeMail using Mozilla Thunderbird > <http://www.mozilla.com/thunderbird/> > >
