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

Re: [Xen-users] Grub does not load Xen



Andrey Chursin wrote:
Hello

I have installed XEN on CentOS using

yum install xen

But when in grub menu i choosing 'Centos with xen' it do not boot.
I see next screen:
http://img201.imageshack.us/my.php?image=xentroublerc9.jpg and then
nothing occurs. After some time(~30 secs) system automatically reboot

This is grub's menu.lst file:


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
console=ttyS0,57600 console=tty0
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/sda3
console=ttyS0,57600 console=tty0
#          initrd /initrd-version.img
#boot=/dev/sda
serial --unit=0 --speed=57600

terminal --timeout=2 serial console

default=1
timeout=5

hiddenmenu
tittle CentOS (2.6.18-92.1.18.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-92.1.18.el5
        module /vmlinuz-2.6.18-92.1.18.el5xen ro root=LABEL=/ acpi=off
noapic nodmraid console=ttyS0,57600 console=tty0
        module /initrd-2.6.18-92.1.18.el5xen.img
title CentOS (2.6.18-92.1.18.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-92.1.18.el5 ro root=LABEL=/ acpi=off
noapic nodmraid console=ttyS0,57600 console=tty0
        initrd /initrd-2.6.18-92.1.18.el5.img
title CentOS (2.6.18-92.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/ acpi=off noapic
nodmraid console=ttyS0,57600 console=tty0
        initrd /initrd-2.6.18-92.el5.img


Choosing second option boot linux, but without xen. Choosing first
option makes screen i provided above.

Thank you for your attention.

Just out of curiosity, does the machine still boot? Do you see console output on the vga/local console? From looking at the options, it appears that you are trying to use both a serial and vga consoles. I fought with doing a serial console and xen for a while. What I was able to figure out is that defining the console settings on the line for the xen kernel and then not doing any console settings on the linux kernel works. Here is an example from one of my xen boxes.

title Xen 3.2-1-amd64 / Debian GNU/Linux, kernel 2.6.18-6-xen-amd64 serial
    root (hd0,0)
kernel /boot/xen-3.2-1-amd64.gz dom0_mem=786432 console=com2,vga com2=115200,8n1 module /boot/vmlinuz-2.6.18-6-xen-amd64 root=/dev/hda1 ro pciback.permissive pciback.hide=(00:02.1)
    module /boot/initrd.img-2.6.18-6-xen-amd64

This is for a Debian box and I also limit the size of the dom0 memory. But something similar should work for you on CentOS. The important parts for you would be the 'console=com2,vga com2=115200,8n1' and then no console definition on the linux kernel line. It looks like you are using com1 instead of com2 so change the settings to match what you want.

Hope that helps.

Mike

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.