[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-users] switching kernel from dom0 to guest with pv-grub


  • To: 'Pasi Kärkkäinen' <pasik@xxxxxx>
  • From: "Mark Chaney" <macscr@xxxxxxxxxx>
  • Date: Mon, 19 Oct 2009 16:15:12 -0500
  • Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 19 Oct 2009 14:15:58 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=macscr.com; h=Received:From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-index:Content-Language:X-soundwave-MailScanner-Information:X-soundwave-MailScanner-ID:X-soundwave-MailScanner:X-soundwave-MailScanner-SpamCheck:X-soundwave-MailScanner-From; b=AgxbBJ13REpMfXT90Yv6bp0MHuOnbNDx0WOw6hr8P0rORIIuGSG1hliHfpgkwRit4J6dRyyszYWpgJan1i8oWX8pAmjAyqJXUwtNVT98m6hQQRNS0yoOdwbDrLwWgfvl;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcpQ/hSK+hOHVkGETGqp25ZURiTe9wAAIhlw

I know how to do it from the config level, but im assuming I probably need
to install grub and download a xen kernel on the guest as well? They don?t
have any of that installed since they are currently using the kernel from
the dom0. Current config looks like this:

kernel = '/XenConfigs/vmlinuz-vm2-xenU'
ramdisk = '/XenConfigs/initrd.vm2.xenU.img'
memory = 2048
name = 'huffer'
vif = [ 'ip=xxx.xxx.xxx.xxx' ]
address = 'xxx.xxx.xxx.xxx'
netmask = '255.255.255.224'
disk = ['phy:/dev/VolGroup00/huffer_img,sda1,w',
'phy:/dev/VolGroup00/huffer_swap,sda2,w']
root = '/dev/sda1 ro'

Just found out that the original guest you see above was created from
jailtime.org image, but with some additional config changes.

I am using a third party control panel for xen and I am trying to help them
figure out how to convert their images from using a dom0 type kernel setup
like this to being able to use pygrub or pv-grub. The problem is that really
needs one disk per filesystem, so it can mount and manipulate that
filesystem. Im hoping to find a way to convert their 20+ OS images into a
pv-grub compatible guest without having to recreate each guest from scratch.

I do see now that virt-install will allow you to specify additional disks,
though I am not 100% sure how the kickstart would know which disk is which,
plus im hoping I don?t have to go this route.

Hope my rambling makes sense. =)

-Mark


-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Pasi Kärkkäinen
Sent: Monday, October 19, 2009 3:52 PM
To: Mark Chaney
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] switching kernel from dom0 to guest with pv-grub

On Mon, Oct 19, 2009 at 02:17:52PM -0500, Mark Chaney wrote:
>    anyone know of any type of instructions/howto for converting a quest
from
>    using the dom0 kernel to something like pygrub or even better, pv-grub?
Im
>    using CentOS as the dom0 and guest if that makes a diff.
> 

You could install a new guest with virt-install or virt-manager and
check the generated config file :)

virt-* installed centos/rhel/fedora PV guests use pygrub as a default.

Basicly it just means replacing the kernel/ramdisk/root/extra lines from
the cfgfile by bootloader= line.

-- Pasi


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


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.