I''ve been playing around with this, but have yet to be successful. I am trying to figure out how to SSH to my Dom0 IP and some static port and then redirect the "xm console <domU>" into the SSH session. Has anyone been successful in doing this? Really the only option I''ve seen is using "screen" on the /dev/pts/[1-x] console device, but that seems overly complicated. I''m using Xen 3.0.3 with CentOS 4.4 Dom0 and Ubuntu, Debian, CentOS DomU''s. Any suggestions/examples would be appreciated. Thanks, Ryan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
iS-Fun Internet Services GmbH, Holger Diehm
2006-Nov-14 18:43 UTC
Re: [Xen-users] SSH Console access
Hi, I do it with a dedicated user per vm. a seperate sshd on a highport allows login only for the vm-users. then I added "sudo /usr/sbin/xm console vmname" to sudoers for this user and then simply put sudo /usr/sbin/xm console VM-Frank exit into .bashrc so on login the console gets started automatically and on termination of the console-session it exits properly. sure there are better ways to do this (perhaps a more secure way), but it works for me Holger Am Dienstag, 14. November 2006 19:23 schrieb burke@tailorhosting.com:> I''ve been playing around with this, but have yet to be successful. > > I am trying to figure out how to SSH to my Dom0 IP and some static port > and then redirect the "xm console <domU>" into the SSH session. Has anyone > been successful in doing this? Really the only option I''ve seen is using > "screen" on the /dev/pts/[1-x] console device, but that seems overly > complicated. I''m using Xen 3.0.3 with CentOS 4.4 Dom0 and Ubuntu, Debian, > CentOS DomU''s. > > Any suggestions/examples would be appreciated. > > Thanks, > Ryan > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 11/14/06, burke@tailorhosting.com <burke@tailorhosting.com> wrote:> I''ve been playing around with this, but have yet to be successful. > > I am trying to figure out how to SSH to my Dom0 IP and some static port > and then redirect the "xm console <domU>" into the SSH session. Has anyone > been successful in doing this? Really the only option I''ve seen is using > "screen" on the /dev/pts/[1-x] console device, but that seems overly > complicated. I''m using Xen 3.0.3 with CentOS 4.4 Dom0 and Ubuntu, Debian, > CentOS DomU''s. > > Any suggestions/examples would be appreciated.Umm, ssh root@dom0 "xm console domU" ?? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jerry Amundson ha scritto:> On 11/14/06, burke@tailorhosting.com <burke@tailorhosting.com> wrote: >> I''ve been playing around with this, but have yet to be successful. >> >> I am trying to figure out how to SSH to my Dom0 IP and some static port >> and then redirect the "xm console <domU>" into the SSH session. Has >> anyone >> been successful in doing this? Really the only option I''ve seen is using >> "screen" on the /dev/pts/[1-x] console device, but that seems overly >> complicated. I''m using Xen 3.0.3 with CentOS 4.4 Dom0 and Ubuntu, >> Debian, >> CentOS DomU''s. >> >> Any suggestions/examples would be appreciated. > > Umm, > ssh root@dom0 "xm console domU" > > ?? > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >Hi, ssh -t root@dom0 "xm console domU" Alessio -- Alessio Curri +39 040 375 8064 Software for Measurement Group Experiments Division Sincrotrone Trieste S.c.p.A. S.S. 14 Km 163.5, in Area Science Park 34012 Basovizza - Trieste (Italy) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks, that was one of the possible solutons, but like you said it feels a bit clumsy, however it should work. I was worried about scalability, especially since these users will be spanning multiple boxes. Although i don''t see having 30k+ users at the moment :). If anyone has anymore ideas I''d love to here them. It would be great if the devs would add SSH as part of the console protocol instead of cleartext. Oh well, maybe I''ll take a look. Thanks again. Ryan> somehow my post to the list doesnt seem to get through. > perhaps it''ll show up later. > > so here especially to you > ... > ... > Hi, > > I do it with a dedicated user per vm. > a seperate sshd on a highport allows login only for the vm-users. > > then I added "sudo /usr/sbin/xm console vmname" to sudoers for this user > and then simply put > > sudo /usr/sbin/xm console VM-Frank > exit > > into .bashrc > > so on login the console gets started automatically and on termination of > the console-session it exits properly. > > sure there are better ways to do this (perhaps a more secure way), but it > works for me > > Holger > > > Am Dienstag, 14. November 2006 19:23 schrieb burke@tailorhosting.com: >> I''ve been playing around with this, but have yet to be successful. >> >> I am trying to figure out how to SSH to my Dom0 IP and some static port >> and then redirect the "xm console <domU>" into the SSH session. Has >> anyone >> been successful in doing this? Really the only option I''ve seen is using >> "screen" on the /dev/pts/[1-x] console device, but that seems overly >> complicated. I''m using Xen 3.0.3 with CentOS 4.4 Dom0 and Ubuntu, >> Debian, >> CentOS DomU''s. >> >> Any suggestions/examples would be appreciated. >> >> Thanks, >> Ryan >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> >> >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 11/15/06, Ryan Burke <burke@tailorhosting.com> wrote:> > If anyone has anymore ideas I''d love to here them. It would be great if > the devs would add SSH as part of the console protocol instead of > cleartext. Oh well, maybe I''ll take a look.You can take a look on xen-shell [ http://www.xen-tools.org/software/xen-shell/ ]. Pretty good: ssh access + start/stop/reboot/console for specified domU _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users