Hi I have a couple of questions: 1. How do I exist from a domU console back to dom0 console (after issuing xm console [domU])? 2. How do I setup a dom0/domU in order to get a tty login? TIA Paolo _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Paolo Supino wrote:> Hi > > I have a couple of questions: > 1. How do I exist from a domU console back to dom0 console (after > issuing xm console [domU])?Cntrl-c> 2. How do I setup a dom0/domU in order to get a tty login?Dom0 should have the normal ttys as with a regular kernel. For domU, I don''t know whether you can have other ttys other than the console. I use ssh to get into domU.> > > > > TIA > Paolo > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- Regards, David F Barrera Linux Technology Center Systems and Technology Group, IBM "The wisest men follow their own direction. " Euripides _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
>> How do I exist from a domU console back to dom0 console (after >> issuing xm console [domU])?DB> Cntrl-c I think Ctrl-] is what Paolo is looking for. -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Dan Smith wrote:>>> How do I exist from a domU console back to dom0 console (after >>> issuing xm console [domU])? >>> > > DB> Cntrl-c > > I think Ctrl-] is what Paolo is looking for. > >You are absolutely right. -- Regards, David F Barrera Linux Technology Center Systems and Technology Group, IBM "The wisest men follow their own direction. " Euripides _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Paolo Supino wrote: >> Hi >> >> I have a couple of questions: >> 2. How do I setup a dom0/domU in order to get a tty login?Not sure if it''s quite what you''re after, but I use the following in / etc/inittab: 1:2345:respawn:/usr/sbin/xm top > /dev/tty1 2:23:respawn:/usr/sbin/xm console dom1 > /dev/tty2 < /dev/tty2 2>&1 3:23:respawn:/usr/sbin/xm console dom2 > /dev/tty3 < /dev/tty3 2>&1 4:23:respawn:/usr/sbin/xm console dom3 > /dev/tty4 < /dev/tty4 2>&1 5:23:respawn:/usr/sbin/xm console dom4 > /dev/tty5 < /dev/tty5 2>&1 6:23:respawn:/usr/sbin/xm console dom5 > /dev/tty6 < /dev/tty6 2>&1 7:23:respawn:/usr/sbin/xm console dom6 > /dev/tty7 < /dev/tty7 2>&1 8:23:respawn:/usr/sbin/xm console dom7 > /dev/tty8 < /dev/tty8 2>&1 9:23:respawn:/sbin/getty 38400 tty9 This gives me ''xm top'' on the main console, console access to my guests using ALT-F2..ALT-F8, and a host login prompt with ALT-F9. There''s room for improvement... if a guest is down, the guest console spits out an endless stream "Domain xxx isn''t running" - I''m thinking of wrapping the xm call in a script that will deal with that quietly. HTH, Itai _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Itai That is exactly what I was looking for :-) Thanx. Paolo Itai Tavor wrote:>> Paolo Supino wrote: >> >>> Hi >>> >>> I have a couple of questions: >>> 2. How do I setup a dom0/domU in order to get a tty login? >> > > Not sure if it''s quite what you''re after, but I use the following in / > etc/inittab: > > 1:2345:respawn:/usr/sbin/xm top > /dev/tty1 > 2:23:respawn:/usr/sbin/xm console dom1 > /dev/tty2 < /dev/tty2 2>&1 > 3:23:respawn:/usr/sbin/xm console dom2 > /dev/tty3 < /dev/tty3 2>&1 > 4:23:respawn:/usr/sbin/xm console dom3 > /dev/tty4 < /dev/tty4 2>&1 > 5:23:respawn:/usr/sbin/xm console dom4 > /dev/tty5 < /dev/tty5 2>&1 > 6:23:respawn:/usr/sbin/xm console dom5 > /dev/tty6 < /dev/tty6 2>&1 > 7:23:respawn:/usr/sbin/xm console dom6 > /dev/tty7 < /dev/tty7 2>&1 > 8:23:respawn:/usr/sbin/xm console dom7 > /dev/tty8 < /dev/tty8 2>&1 > 9:23:respawn:/sbin/getty 38400 tty9 > > This gives me ''xm top'' on the main console, console access to my > guests using ALT-F2..ALT-F8, and a host login prompt with ALT-F9. > > There''s room for improvement... if a guest is down, the guest console > spits out an endless stream "Domain xxx isn''t running" - I''m thinking > of wrapping the xm call in a script that will deal with that quietly. > > HTH, Itai > > > > > _______________________________________________ > 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
Whoa thats cool! I''m gonna implement it on my machine tomorrow :D On Thursday 15 June 2006 19:27, Itai Tavor wrote:> > Paolo Supino wrote: > >> Hi > >> > >> I have a couple of questions: > >> 2. How do I setup a dom0/domU in order to get a tty login? > > Not sure if it''s quite what you''re after, but I use the following in / > etc/inittab: > > 1:2345:respawn:/usr/sbin/xm top > /dev/tty1 > 2:23:respawn:/usr/sbin/xm console dom1 > /dev/tty2 < /dev/tty2 2>&1 > 3:23:respawn:/usr/sbin/xm console dom2 > /dev/tty3 < /dev/tty3 2>&1 > 4:23:respawn:/usr/sbin/xm console dom3 > /dev/tty4 < /dev/tty4 2>&1 > 5:23:respawn:/usr/sbin/xm console dom4 > /dev/tty5 < /dev/tty5 2>&1 > 6:23:respawn:/usr/sbin/xm console dom5 > /dev/tty6 < /dev/tty6 2>&1 > 7:23:respawn:/usr/sbin/xm console dom6 > /dev/tty7 < /dev/tty7 2>&1 > 8:23:respawn:/usr/sbin/xm console dom7 > /dev/tty8 < /dev/tty8 2>&1 > 9:23:respawn:/sbin/getty 38400 tty9 > > This gives me ''xm top'' on the main console, console access to my > guests using ALT-F2..ALT-F8, and a host login prompt with ALT-F9. > > There''s room for improvement... if a guest is down, the guest console > spits out an endless stream "Domain xxx isn''t running" - I''m thinking > of wrapping the xm call in a script that will deal with that quietly. > > HTH, Itai > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- ~ Chris "Kyral" Peterman Computer Science Undergraduate Clarkson University Associate Member of the Free Software Foundation Ubuntu Member _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, 2006-16-06 at 20:36 -0400, Chris Peterman wrote:> Whoa thats cool! I''m gonna implement it on my machine tomorrow :DCool is right. I''ll be trying out the same. :) Thanks for the idea, Itai! Regards, Ranbir> > On Thursday 15 June 2006 19:27, Itai Tavor wrote: > > > Paolo Supino wrote: > > >> Hi > > >> > > >> I have a couple of questions: > > >> 2. How do I setup a dom0/domU in order to get a tty login? > > > > Not sure if it''s quite what you''re after, but I use the following in / > > etc/inittab: > > > > 1:2345:respawn:/usr/sbin/xm top > /dev/tty1 > > 2:23:respawn:/usr/sbin/xm console dom1 > /dev/tty2 < /dev/tty2 2>&1 > > 3:23:respawn:/usr/sbin/xm console dom2 > /dev/tty3 < /dev/tty3 2>&1 > > 4:23:respawn:/usr/sbin/xm console dom3 > /dev/tty4 < /dev/tty4 2>&1 > > 5:23:respawn:/usr/sbin/xm console dom4 > /dev/tty5 < /dev/tty5 2>&1 > > 6:23:respawn:/usr/sbin/xm console dom5 > /dev/tty6 < /dev/tty6 2>&1 > > 7:23:respawn:/usr/sbin/xm console dom6 > /dev/tty7 < /dev/tty7 2>&1 > > 8:23:respawn:/usr/sbin/xm console dom7 > /dev/tty8 < /dev/tty8 2>&1 > > 9:23:respawn:/sbin/getty 38400 tty9 > > > > This gives me ''xm top'' on the main console, console access to my > > guests using ALT-F2..ALT-F8, and a host login prompt with ALT-F9. > > > > There''s room for improvement... if a guest is down, the guest console > > spits out an endless stream "Domain xxx isn''t running" - I''m thinking > > of wrapping the xm call in a script that will deal with that quietly. > > > > HTH, Itai > > > > > > > > > > _______________________________________________ > > 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-- Kanwar Ranbir Sandhu Linux 2.6.16-1.2111_FC4 i686 GNU/Linux 00:28:33 up 14:41, 3 users, load average: 0.63, 0.56, 0.55 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Yura Pismerov wrote:> Yes, but how about. let''s say, 100 VMs ? > IMHO setting up shell aliases (eg. alias vm1=''xm console dom1'') would be > more scalable solution. > Though you''d lose screen buffer in this case and would not be able to > scroll back (or I am mistaken ?) > So here is a better solution using old good program called "screen": > > alias vm1="screen -T vt100 -a -A -S vm1 xm console dom1" > alias scd=''screen -dr'' # to re-attach screen > alias sls=''screen -ls'' # to list all screen sessions > > Then you can run "vmN" will open screen sessions to domN from any shell. >Hi Yura, I don''t quite get the point: what''s the advantage over issuing "xm console <DOMAIN>" and switching back to dom0 with CTRL+5 ? In each case you need 1 command to connect to the domU console and 1 to detach. Greetz, Andrej _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Chris Peterman wrote:> Whoa thats cool! I''m gonna implement it on my machine tomorrow :D >Yes, but how about. let''s say, 100 VMs ? IMHO setting up shell aliases (eg. alias vm1=''xm console dom1'') would be more scalable solution. Though you''d lose screen buffer in this case and would not be able to scroll back (or I am mistaken ?) So here is a better solution using old good program called "screen": alias vm1="screen -T vt100 -a -A -S vm1 xm console dom1" alias scd=''screen -dr'' # to re-attach screen alias sls=''screen -ls'' # to list all screen sessions Then you can run "vmN" will open screen sessions to domN from any shell. This has to be run once (unless you terminate the screen session). Within the attached session you can use "Ctrl-A-D" to detach it. Outside the screen session you can use "scd vmN" to reattach any session even if it was attached elsewhere. Even you close your current shell, your session does not terminate since screen keeps it open. For example, you can start long running task, detach the session and continue your work. then you can re-attach it and review the results or check the status. You can even scroll back and/or search through the screen buffer (after hitting Ctrl-A-Esc) Technically you need only one terminal (or ssh) session to manage hundreds of hosts. This is why many sysadmins love screen :)> On Thursday 15 June 2006 19:27, Itai Tavor wrote: > >>> Paolo Supino wrote: >>> >>>> Hi >>>> >>>> I have a couple of questions: >>>> 2. How do I setup a dom0/domU in order to get a tty login? >>>> >> Not sure if it''s quite what you''re after, but I use the following in / >> etc/inittab: >> >> 1:2345:respawn:/usr/sbin/xm top > /dev/tty1 >> 2:23:respawn:/usr/sbin/xm console dom1 > /dev/tty2 < /dev/tty2 2>&1 >> 3:23:respawn:/usr/sbin/xm console dom2 > /dev/tty3 < /dev/tty3 2>&1 >> 4:23:respawn:/usr/sbin/xm console dom3 > /dev/tty4 < /dev/tty4 2>&1 >> 5:23:respawn:/usr/sbin/xm console dom4 > /dev/tty5 < /dev/tty5 2>&1 >> 6:23:respawn:/usr/sbin/xm console dom5 > /dev/tty6 < /dev/tty6 2>&1 >> 7:23:respawn:/usr/sbin/xm console dom6 > /dev/tty7 < /dev/tty7 2>&1 >> 8:23:respawn:/usr/sbin/xm console dom7 > /dev/tty8 < /dev/tty8 2>&1 >> 9:23:respawn:/sbin/getty 38400 tty9 >> >> This gives me ''xm top'' on the main console, console access to my >> guests using ALT-F2..ALT-F8, and a host login prompt with ALT-F9. >> >> There''s room for improvement... if a guest is down, the guest console >> spits out an endless stream "Domain xxx isn''t running" - I''m thinking >> of wrapping the xm call in a script that will deal with that quietly. >> >> HTH, Itai >> >> >> >> >> _______________________________________________ >> 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-- Yuri Pismerov, System Administrator Armor Technologies (Canada) Inc. P: 905 305 1946 (x.3519) http://www.armorware.net Privacy Protection Guaranteed! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrej Radonic wrote:> Yura Pismerov wrote: >> Yes, but how about. let''s say, 100 VMs ? >> IMHO setting up shell aliases (eg. alias vm1=''xm console dom1'') would be >> more scalable solution. >> Though you''d lose screen buffer in this case and would not be able to >> scroll back (or I am mistaken ?) >> So here is a better solution using old good program called "screen": >> >> alias vm1="screen -T vt100 -a -A -S vm1 xm console dom1" >> alias scd=''screen -dr'' # to re-attach screen >> alias sls=''screen -ls'' # to list all screen sessions >> >> Then you can run "vmN" will open screen sessions to domN from any shell. >> > Hi Yura, > I don''t quite get the point: what''s the advantage over issuing "xm > console <DOMAIN>" and switching back to dom0 with CTRL+5 ? > In each case you need 1 command to connect to the domU console and 1 > to detach.Scalability. Like I said I have 96 domains to manage (on one box).> > Greetz, > Andrej > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- Yuri Pismerov, System Administrator Armor Technologies (Canada) Inc. P: 905 305 1946 (x.3519) http://www.armorware.net Privacy Protection Guaranteed! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
96 domUs on ONE box?! Whoa.... I hope you don''t mind me asking, but what are they all doing? :D On Saturday 17 June 2006 10:36, Yura Pismerov wrote:> Andrej Radonic wrote: > > Yura Pismerov wrote: > >> Yes, but how about. let''s say, 100 VMs ? > >> IMHO setting up shell aliases (eg. alias vm1=''xm console dom1'') would be > >> more scalable solution. > >> Though you''d lose screen buffer in this case and would not be able to > >> scroll back (or I am mistaken ?) > >> So here is a better solution using old good program called "screen": > >> > >> alias vm1="screen -T vt100 -a -A -S vm1 xm console dom1" > >> alias scd=''screen -dr'' # to re-attach screen > >> alias sls=''screen -ls'' # to list all screen sessions > >> > >> Then you can run "vmN" will open screen sessions to domN from any shell. > > > > Hi Yura, > > I don''t quite get the point: what''s the advantage over issuing "xm > > console <DOMAIN>" and switching back to dom0 with CTRL+5 ? > > In each case you need 1 command to connect to the domU console and 1 > > to detach. > > Scalability. > Like I said I have 96 domains to manage (on one box). > > > Greetz, > > Andrej > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users-- ~ Chris "Kyral" Peterman Computer Science Undergraduate Clarkson University Associate Member of the Free Software Foundation Ubuntu Member _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users