Won't boot a custom CentOS 6 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:
Any ideas?
Thanks!
8 Replies
-Tim
"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?
-Tim
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.
@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.