Hello list, I''m trying to find a good tutorial on fully virtualized Linux guests. I''d like to just use some netboot .iso''s for cd roms and use the standard serial redirect to configure them. A few things have me confused, I''m seeing where cdrom is defined as cdrom in the configuration, but also see where its setup within the same array as the rest of the vbds. I''m also really confused on this line : # serial port re-direct to pty deivce, /dev/pts/n # then xm console or minicom can connect serial=''pty'' I think that''s what I want, because I have to do the entire installation remotely via ssh.. my confusion is should this be (my) current SSH session? i.e. if I''m on /dev/pts/2 , should I set this to 0 and ctrl-] to stop the redirect, or set it to 3 and login from another window and be re-directed? Or should this just match the domid? Having this box re-booted can take hours, I''m trying hard to not require one. All I need to be able to do is tab my way through the Debian installer (or other text dialog based things) to the point where I can get the guest itself answering the door on port 22. Any help, examples or links would be really appreciated. It looks like the configuration file changed recently, and my Googling isn''t turning up much recent. Many thanks in advance! -Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Tim Post > Sent: 23 November 2006 15:17 > To: xen-users@lists.xensource.com > Subject: [Xen-users] Linux HVM tutorial ? > > Hello list, > > I''m trying to find a good tutorial on fully virtualized Linux guests. > I''d like to just use some netboot .iso''s for cd roms and use the > standard serial redirect to configure them. > > A few things have me confused, > > I''m seeing where cdrom is defined as > > cdrom> > in the configuration, but also see where its setup within the > same array > as the rest of the vbds.This was changed from 3.0.2 to 3.0.3 - the "new" format is to use the same line as all the other VBD''s.> > I''m also really confused on this line : > > # serial port re-direct to pty deivce, /dev/pts/n > # then xm console or minicom can connect > serial=''pty''Sorry, can''t help here, I usually use a VNC/SDL window as console and do the configuration that way - works for me, may not work for others... :-( -- Mats _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
>> # serial port re-direct to pty deivce, /dev/pts/n >> # then xm console or minicom can connect >> serial=''pty'' > Sorry, can''t help here, I usually use a VNC/SDL window as console and do > the configuration that way - works for me, may not work for others... > :-(Just does what it says, redirect serial port to the console. So you can setup a getty at /dev/ttyS0, and/or boot your linux kernel with "console=ttyS0", then use "xm console <domain>" to connect to the other end of the virtual serial line and see the messages, log into the machine, ... cheers, Gerd -- Gerd Hoffmann <kraxel@suse.de> http://www.suse.de/~kraxel/julika-dora.jpeg _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, 2006-11-23 at 16:59 +0100, Gerd Hoffmann wrote:> Just does what it says, redirect serial port to the console.I figured as such, but since the commented pointed at /dev/pts I thought it best to ask.> So you can setup a getty at /dev/ttyS0, and/or boot your linux kernel > with "console=ttyS0", then use "xm console <domain>" to connect to the > other end of the virtual serial line and see the messages, log into the > machine, ... >Should arguments to the kernel to be fully virtualized be specified here: kernel = "/usr/lib/xen/boot/hvmloader" i.e. /usr/lib/xen/boot/hvmloader console=ttys0 [ ... ] Or, I noticed that pretty much everything you''d need to pass to the kernel is able to be specified somewhere in the guest config, so in essence the serial="" line just refers to where to setup the other end on the guest?>From the comments it looked more like where to land it on dom-0.Sorry to seem so redundant, I''m just really hoping to understand prior to doing so I don''t have to send someone to the un-manned DC to reboot the server :) This is something that could easily break.> cheers, > > Gerd >Thanks in advance! Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Tim Post wrote:> On Thu, 2006-11-23 at 16:59 +0100, Gerd Hoffmann wrote: > >> Just does what it says, redirect serial port to the console. > > I figured as such, but since the commented pointed at /dev/pts I thought > it best to ask.It is actually a /dev/pts/<nr> in dom0. "xm console" will just lookup which pseudo tty it actually is in xenstore, then connect.> Should arguments to the kernel to be fully virtualized be specified > here:No, guest linux kernel, i.e. grub/lilo inside the vm must be configured to pass that to the kernel, exactly as you''ll setup a serial console on a physical machine. HTH, Gerd -- Gerd Hoffmann <kraxel@suse.de> http://www.suse.de/~kraxel/julika-dora.jpeg _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Tim Post > Sent: 23 November 2006 16:12 > To: Gerd Hoffmann > Cc: Petersson, Mats; xen-users@lists.xensource.com > Subject: Re: [Xen-users] Linux HVM tutorial ? > > On Thu, 2006-11-23 at 16:59 +0100, Gerd Hoffmann wrote: > > > Just does what it says, redirect serial port to the console. > > I figured as such, but since the commented pointed at > /dev/pts I thought > it best to ask. > > > > So you can setup a getty at /dev/ttyS0, and/or boot your > linux kernel > > with "console=ttyS0", then use "xm console <domain>" to > connect to the > > other end of the virtual serial line and see the messages, > log into the > > machine, ... > > > > Should arguments to the kernel to be fully virtualized be specified > here: > > kernel = "/usr/lib/xen/boot/hvmloader" > > i.e. > > /usr/lib/xen/boot/hvmloader console=ttys0 [ ... ]No, that won''t work - hvmloader doesn''t take ANY arguments [grep main hvmloader.c returns "main(void)"]. More information than you need to know right now: All hvmloader does is to load the BIOS, VGA/CIRRUS BIOS, ACPI tables and run a little bit of code that is essentially "reset the processor" (which means, reset a bunch of registers to x86 standard reset values and jump to 0xF000:0xFFF0 - it is slightly different between VMX and SVM - but the effect is the same). More comments on serial output from HVM domains: I don''t know if there''s any way to redirect the early "start of day" output to a serial line instead of the SDL/VNC VGA output - it wouldn''t be very hard to write a bit of code to just send everything that goes to text-mode VGA to serial port, except for those applications that don''t output things in order (i.e. write something at mid-screen level, then write at the top, or some such). For later stage output, you''ll be using the grub (or whatever boot-loader you use) to give kernel parameters, and a that stage, there are lots of settings available for you... -- Mats _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users