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

Re: Booting a Xen Kernel?



On Mon, 2010-07-26 at 17:22 -0400, Ed Kohlwey wrote:
> Hi,
> I'm setting up a PXE boot environment for servers running eucalyptus
> on top of xen.
> 
> 
> I've have D-I successfully installing the xen hypervisor and dom0
> kernels, however the default boot option boots the linux kernel
> natively rather than the hypervisor.
> 
> 
> My first intuition is to create another deb that will alter the grub
> configuration, but I wanted to see if anyone else had experience doing
> this in a better way.
> 
> 
> Does anyone know of a another good/better way?

I guess you are included the hypervisor and dom0 kernel in your pressed
file in the list of extra packages to install?

update-grub already supports creating entries for Xen dom0 if a
hypervisor and suitable kernel are found. This functionality was only
added to grub2 quite recently and I'm not sure if it has migrated to
testing or not yet.

Perhaps all you need is a preseed post install script which modifies the
default line in your grub configuration?

Otherwise I'd suggest that you could file a wishlist bug to sort Xen
before non-Xen options when Xen is available (IOW
rename /etc/grub.d/20_linux_xen -> /etc/grub.d/09_linux_xen).
Alternatively perhaps the default could be made selectable via debconf
(which you can pressed), although perhaps on fresh install only.

Ian.

-- 
Ian Campbell

Time will end all my troubles, but I don't always approve of Time's methods.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: