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] change HVM to PV with root on logical volume

To: Karolina Kotova <kotova@xxxxx>
Subject: Re: [Xen-users] change HVM to PV with root on logical volume
From: Carsten Heesch <mail@xxxxxxxxxxxxxxxx>
Date: Fri, 12 Aug 2011 14:20:24 +0100
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 12 Aug 2011 06:21:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E451D82.4040607@xxxxx>
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: <4E451D82.4040607@xxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Karolina,

> ----------------- this is my grub  config
> title CentOS (2.6.18-128.el5xen_pv)
>        root (hd0,0)
>        kernel /vmlinuz-2.6.18-128.el5xen ro
>        module /initrd-2.6.18-128.el5xen-no-scsi.img  root=/dev/vg00/lv_root
> -------------------


It looks like the (out-of-date) stock CentOS 5.5 Xen kernel, which should work 
just fine. However, you need to specify the root= parameter at the kernel line, 
not the module.
Actually the module line should be called initrd instead. Like this:

title CentOS (2.6.18-128.el5xen_pv)
       root (hd0,0)
       kernel /vmlinuz-2.6.18-128.el5xen ro root=/dev/vg00/lv_root
       initrd /initrd-2.6.18-128.el5xen-no-scsi.img 


The chainloader/module syntax is only valid in Dom0. You don't need that for 
your guest.

Also make sure that your default= entry in menu.lst points to this kernel as 
well. And to be safe, you can also set timeout=<seconds> to be able to choose a 
different kernel at boot time, if you made a mistake.


Cheers
Carsten



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

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