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-devel

Re: [Xen-devel] ext4 support on pvgrub

On Thu, 14 Oct 2010, Stefano Stabellini wrote:

On Tue, 12 Oct 2010, M A Young wrote:


On Tue, 12 Oct 2010, Jeremy Fitzhardinge wrote:


On 10/07/2010 02:48 PM, M A Young wrote:
I have this working on Fedora. It turned out to be very easy to add
this as I simply took the grub-ext4-support.patch from the Fedora grub
package and put it in xen-4.0.1/stubdom/grub.patches/ . Using pvgrub
(without a vif on the virtual machine as I was having problems if I
did give it a network interface) I could read and boot from ext4
partition with this patch but not without it.

Is this a good way to add this feature to xen more generally?

Sounds like it just needs to be committed.  Post the patch?

I am attaching both the raw patch (taken from grub-0.97-66.fc14, it
traces back to the attachment at
https://bugzilla.redhat.com/show_bug.cgi?id=486284#c7 with only spelling
fixes) and also one that could be applied to the xen source.
Use whichever is more convenient or you can fetch it directly from the
Fedora source repository at
http://pkgs.fedoraproject.org/gitweb/?p=grub.git;a=blob_plain;f=grub-ext4-support.patch;hb=3bcdb10fc21d8e94efa70fd91d21224f13f01433


I tried out the patch but even though it doesn't introduce any
regressions it doesn't seem to be able to handle an ext4 partition I
made for testing purposes.

Can anybody else confirm that it actually works?

It works for me of course (if it sisn't I wouldn't have submitted it). I do have the following caveats; 1) I can't use pvgrub with the network enabled - I think it is trying some sort of network boot and the system becomes unusably slow. This was true before I applied the patch. 2) It didn't load the automatic configuration file. I am not sure whether that is expected or not, but I can load it manually from the grubdom> prompt, which didn't work before I applied the patch.

        Michael Young

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