I just upgraded a xen server to debian squeeze.
In case it matters xen 4.0.1 is built from source.
Lots of things to deal with.
Have some of it worked out. At least it runs now :-)
Wish there was some real documentation for /etc/default/grub
In /etc/default/grub
Added
GRUB_DISABLE_OS_PROBER=true
To get the domus out of grub.
Need to add something for
GRUB_CMDLINE_XEN_DEFAULT
I put in
GRUB_DEFAULT="Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN
4"
It would be nice if xen were first entry but realistically it is a better
solution.
In debians grub.d/20_linux_xen, it finds ever file in /boot that starts with
xen and creates a complete set of menu entries for each xen kernel.
xen_list=`for i in /boot/xen*; do
if grub_file_is_not_garbage "$i" ; then echo -n "$i
" ; fi
done
There are these xen entries in boot.
xen-4.0.1.gz
xen-4.0.gz
xen-4.gz
xen.gz
xen-syms-4.0.1
It creates menu entries for all 5 of these as being a Xen hypervisor.
3 are links and at least work but xen-syms-4.0.1 is not a Xen hypervisor.
I''m ok with putting in a bug report but what is a good solution?
Is this a generic grub2 setup or is it particular to debian?
Is it safe to say hypervisor ends with .gz? If so at least changing xen* to
xen*.gz would get rid of syms.
John
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
John McMonagle wrote:>In /etc/default/grub >Added >GRUB_DISABLE_OS_PROBER=true >To get the domus out of grub.I moved my DomU kernels into a subdirectory so Grub doesn''t see them.>Need to add something for >GRUB_CMDLINE_XEN_DEFAULT> >I put in >GRUB_DEFAULT="Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4" >It would be nice if xen were first entry but realistically it is a better >solution.I also put in a manual kernel entry before the automagic kernels start flag so that it''s always the first. -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Friday, March 11, 2011 01:48:17 pm Simon Hobson wrote:> John McMonagle wrote: > >In /etc/default/grub > >Added > >GRUB_DISABLE_OS_PROBER=true > >To get the domus out of grub. > > I moved my DomU kernels into a subdirectory so Grub doesn''t see them.I use pygrub. I''m referring to grub finding the domu installations in logical volumes. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John McMonagle wrote:> > I moved my DomU kernels into a subdirectory so Grub doesn''t see them. >I use pygrub. >I''m referring to grub finding the domu installations in logical volumes.Does it search in unmounted volumes as well then - sounds iffy to me ! -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Sat, Mar 12, 2011 at 1:50 AM, John McMonagle <johnm@advocap.org> wrote:> There are these xen entries in boot. > > xen-4.0.1.gz > xen-4.0.gz > xen-4.gz > xen.gz > xen-syms-4.0.1 > > It creates menu entries for all 5 of these as being a Xen hypervisor. > 3 are links and at least work but xen-syms-4.0.1 is not a Xen hypervisor. > > I''m ok with putting in a bug report but what is a good solution? > Is this a generic grub2 setup or is it particular to debian?Upstream grub-1.99~rc1 has this xen_list=`for i in /boot/xen*; do if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi so it should be generic, and filing an upstream bug report will be more useful> Is it safe to say hypervisor ends with .gz? If so at least changing xen* to > xen*.gz would get rid of syms.RHEL5 uses /boot/xen.gz-4.0.1 naming convention. Granted RHEL5 doesn''t use grub2, but IMHO if you want to generalize better just: - use /boot/xen*gz* - only use files that are NOT symlink -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users