Re: xm console -- what should I get?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux