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

[Xen-devel] pv-grub Solaris support

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] pv-grub Solaris support
From: Kasper Brink <K.Brink@xxxxxxxx>
Date: Wed, 12 Oct 2011 22:40:11 +0200
Delivery-date: Wed, 12 Oct 2011 13:41:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
Hello all,

I've patched pv-grub to allow it to boot a Solaris PV domU using an
unmodified menu.lst. The attached patch has been tested with various
Solaris versions (Solaris 11 Express, OpenIndiana 151a, OpenSolaris 134,
Nexenta Core 3.0.1; all 64-bit). I appreciate your feedback.

The patch consists mainly of Oracle's grub modifications, which add ZFS
support and Solaris-specific builtins (findroot, bootfs, kernel$, and
module$). I took the relevant code from the "Oracle Solaris 11 Express
2010.11 GPL Source, Part 2" package, downloaded from: 
  http://dlc.sun.com/opensourcecode/solaris/sol-11-exp-201011-GPLSource_2.zip
The kernel$ and module$ builtins were modified to boot Xen PV Solaris
kernels.

The patch is against current xen-unstable. I built and tested pv-grub under 
Xen version 4.0.1 (Debian 4.0.1-2) amd64, with a Linux 2.6.32-5-xen-amd64
(Debian Squeeze) dom0. The location of menu.lst in the domU was specified
with the "extra" variable (e.g. extra="(hd0,0,a)/boot/grub/menu.lst").

Note: I had to create a symlink "xen/include/xen/libelf -> ." (not in the
patch) to build stubdom/libxc-x86_64 succesfully. Is this a bug, or is
there something wrong in my setup?

If you think this code is useful for other users, I'd be happy to see it
included in the Xen repository. Please let me know if there's anything that
needs to be changed.

Best,

Kasper

Attachment: pv-grub_solaris.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>