Won't boot a custom CentOS 6 Kernel

Since I run r1soft, I need to use a custom-built Kernel.

I'm running CentOS 6, I just installed the default CentOS kernel via yum, changed my kernel to pv.

Here is my menu.lst;

timeout 5

title Custom Compiled Kernel

root (hd0)

kernel /boot/vmlinuz-2.6.32-220.23.1.el6.i686 root=/dev/xvda ro quiet

file /boot/vmlinuz-2.6.32-220.23.1.el6.i686

/boot/vmlinuz-2.6.32-220.23.1.el6.i686: Linux kernel x86 boot executable bzImage, version 2.6.32-220.23.1.el6.i686 (mockb, RO-rootFS, swap_dev 0x3, Normal VGA

When booting, it kernel panic's with the following error:

http://i.imgur.com/rjQYL.png

Any ideas?

Thanks!

8 Replies

You may want to try pastebinning your kernel configuration. Also, removing "quiet" from your kernel args will make it more verbose, possibly providing more information.

-Tim

Without quiet:

"VFS: Cannot open root device xvda or unknown-block(0,0)

Please append a correct "root=" boot option; here are the available partitions:"

I didn't do a custom kernel, used the default centos RPM kernel, which doesn't seem to have support for the xen filesystem?

Sounds about right. You usually want a distribution supplied kernel that has "Xen" in the name. I'd imagine CentOS has a Xen kernel, but I'm not familiar with the packages they offer.

-Tim

There is no xen kernel for CentOS, the standard kernel has xen support.

You want something like this.

boot=/dev/xvda

kopt=root=/dev/xvda console=tty0 console=hvc0 ro quiet

groot=(hd0)

default=0

timeout=0

title CentOS (2.6.32-220.23.1.el6.i686)

root (hd0)

kernel /boot/vmlinuz-2.6.32-220.23.1.el6.i686 root=/dev/xvda console=tty0 console=hvc0 ro quiet crashkernel=auto SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us

initrd /boot/initramfs-2.6.32-220.23.1.el6.i686.img

@theckman:

Sounds about right. You usually want a distribution supplied kernel that has "Xen" in the name. I'd imagine CentOS has a Xen kernel, but I'm not familiar with the packages they offer.

-Tim

Unless I'm terribly mistaken RHEL does not provide a Xen kernel, so I would assume that Centos does not add one.

@Nibbler:

There is no xen kernel for CentOS, the standard kernel has xen support.

Are you sure? My impression was that they dropped official Xen support entirely in favor of kvm.

They dropped support for the hypervisor, but running as a guest is still supported.

@Nibbler:

They dropped support for the hypervisor, but running as a guest is still supported.

Do you have this working with CentOS 6? I can't get it to boot up with your grub config either.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct