[CentOS] xm console -- what should I get?

Mon Jul 19 09:42:35 UTC 2010
Pasi Kärkkäinen <pasik at iki.fi>

On Fri, Jul 16, 2010 at 08:35:36AM -0700, Gordon Messmer wrote:
> On 07/16/2010 05:06 AM, Theo Band wrote:
> > It works for para-virtualized guests (with xen kernel) not for
> > fully-virtualized ones.
> 
> For fully-virtualized guests, make sure the guest definition contains:
> 
>    <serial type='pty'>
>      <target port='0'/>
>    </serial>
>    <console type='pty'>
>      <target port='0'/>
>    </console>
> 
> If you add this, you'll need to redefine the guest, then shut it down 
> completely ("poweroff" the guest, not reboot).
> 
> # virsh define /etc/libvirt/qemu/guest.xml
> 
> Once a serial console is defined in the guest, set up grub.  Edit 
> /boot/grub/grub.conf and replace the timeout, splashimage, and 
> hiddenmenu lines with:
> 
> timeout=5
> serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
> terminal --timeout=5 serial console
> 
> Make sure all of the "kernel" lines contain a serial console arg:
> 
>      kernel /boot/vmlinuz-... ro root=LABEL=/ console=ttyS0,115200
> 
> And finally make sure that /etc/inittab starts a getty on the serial 
> console:
> 
> s0:2345:respawn:/sbin/agetty -L 115200 ttyS0 vt100
> 
> The last three are the same steps you'd take to set up a machine with a 
> physical serial console.
>

Also there's an entry about setting up the "xm console" serial console 
for Xen HVM guests at:
http://wiki.xensource.com/xenwiki/XenCommonProblems

-- Pasi