WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] CentOS pv boot problems

To: ben@xxxxxxxx
Subject: Re: [Xen-users] CentOS pv boot problems
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Mon, 24 May 2010 10:56:30 +0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 23 May 2010 20:58:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BF9E2F7.7030604@xxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4BF9E2F7.7030604@xxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, May 24, 2010 at 9:22 AM, Ben C <ben@xxxxxxxx> wrote:
> #-kernels from kernels-xen package
> # this is what i'm using to get the above error
> kernel = '/home/ben/kernels/centos/vmlinuz-2.6.18-164.15.1.el5xen';
> ramdisk = '/home/ben/kernels/centos/initrd-2.6.18-164.15.1.el5xen.img';

that by itself is not enough. There are several kernel arguments
necessary for Centos to boot, one of them is the location of root
device. If domU has its own /boot/grub/menu.lst (which should be the
case if you install it using boot images from
http://mirrors.kernel.org/centos/5/os/x86_64/images/xen/ or similar),
it's much easier to simply use pygrub. That way you don't have to
specify kernel, ramdisk, root, and args, but simply replace them with
"bootloader" line.

> # I tried this and xvda1 ... no go either
> #root="/dev/xvda"

What is the path to "/" when you run the installation? by default it
will use LVM, which makes root device something like
/dev/volgroup00/lv00.

> disk = [ 'file:/home/ben/fileback/server1.img,xvda1,w', ]

was the disk like this when you install it? Or did it previously use
"xvda", and now you change it to xvda1?

> With the generic kernel, I get this error:
>
> Error: (2, 'Invalid kernel', 'xc_dom_parse_elf_kernel: ELF image has no
> shstrtab\n')
>
> Which amazes me because I see reference after reference that these generic
> kernels are now "xen ready".  Maybe that's for newer versions of Xen?

more like newer versions of linux kernel. 2.6.18 generic kernel is not
Xen aware.

-- 
Fajar

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

<Prev in Thread] Current Thread [Next in Thread>