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] Problems converting FC8 HVM guest to PV

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Problems converting FC8 HVM guest to PV
From: Jason Solan <jsolan@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Dec 2007 21:22:46 -0500
Delivery-date: Thu, 27 Dec 2007 18:23:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200712271957.43470.jim_burn@xxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <477436DA.9090809@xxxxxxxxxxx> (sfid-20071227_190555_616116_68B97E11) <200712271957.43470.jim_burn@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2007-12-27 at 19:57 -0500, jim burns wrote:
> On Thursday 27 December 2007 06:35:54 pm Evan Lavelle wrote:
> > title Fedora (2.6.21-2952.fc8xen.xenblk)
> >   root (hd0,0)
> >   kernel /xen.gz-2.6.21-2952.fc8
> >   module /vmlinuz-2.6.21-2952.fc8xen ro root=LABEL=/ rhgb quiet
> >   module /initrd-2.6.21-2952.fc8xen.xenblk.img
> 
> Since it's likely to be slow on the list now, I'll give this a stab, tho' 
> I'll 
> warn you I haven't actually done this myself. However, some things stand out:
> 
> The reason Plan A didn't work is you can't load the xen hypervisor (xen.gz) 
> inside a domu. Try deleting the 'kernel /xen.gz...' line and 
> change 'module /vmlinuz...' to 'kernel /vmlinuz...'. I personally would use 
> the original fc8 /initrd-2.6.21-2952.fc8xen.img. At a minimum, a custom 
> initrd also has to have '--preload=xennet'.


I don't have my notes in front of me, but I believe Jim pretty much
nailed it (at least with option A).
I've done several HVM -> PV conversions and always use the first option
you described.
For fedora it comes down to: 
yum install kernel-xen
mkinitrd --preload=xenblk --preload=xennet
(if you don't have xennet your domU will still work, but you won't have
a network at boot, you can modprobe xennet after boot if you forget)

Modify the grub config of the domU:
  title Fedora (2.6.21-2952.fc8xen.xenblk)
    root (hd0,0)
    kernel /vmlinuz-2.6.21-2952.fc8xen ro root=LABEL=/ rhgb quiet
    initrd /initrd-2.6.21-2952.fc8xen.xenblk.img

And switch the config file to use pygrub

If you have any issues, just post back to the list.  I'll be able to get
my notes tomorrow.


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