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] switching kernel from dom0 to guest with pv-grub

To: Mark Chaney <macscr@xxxxxxxxxx>
Subject: Re: [Xen-users] switching kernel from dom0 to guest with pv-grub
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Tue, 20 Oct 2009 10:01:10 +0700
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 19 Oct 2009 20:01:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <00bd01ca5101$4021e220$c065a660$@com>
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: <009b01ca50f0$dc3870e0$94a952a0$@com> <20091019205150.GP1434@xxxxxxxxxxx> <00bd01ca5101$4021e220$c065a660$@com>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, Oct 20, 2009 at 4:15 AM, Mark Chaney <macscr@xxxxxxxxxx> wrote:
> I know how to do it from the config level, but im assuming I probably need
> to install grub

Not really. pygrub/pv-grub will simply read /boot/grub/menu.lst (which
you can create manually).

> and download a xen kernel on the guest as well?

Yes

> They don’t
> have any of that installed since they are currently using the kernel from
> the dom0.

for RHEL/Centos domU, you can simply run "yum install kernel-xen" from
within domU.

> The problem is that really
> needs one disk per filesystem, so it can mount and manipulate that
> filesystem.

It doesn't matter. Using pygrub or dom0-located kernel does not change
your domU disk/filesystem layout.

Here's my domU's /boot/grub/menu.lst (relevant part only). It's
somewhat old, so just adjust to whatever kernel-xen version you have
installed.

default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.18-92.1.13.el5xen)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-92.1.13.el5xen ro root=/dev/hda1
        initrd /boot/initrd-2.6.18-92.1.13.el5xen.img

And here's the relevant part of my domU's config

disk = [ 'phy:/dev/rootVG/dns01lv,hda1,w',
        'phy:/dev/rootVG/dns01swaplv,hda2,w',
        ]
bootloader="/usr/bin/pygrub"

The bootloader line replaces the previous kernel and ramdisk line.

-- 
Fajar

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

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