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] GRUB2 configuration for Xen 4 on Ubuntu Linux 10.04

Hello,

> Can any one share his/her working grub.cfg for GRUB2 with me? 
> 
> 
Here is mine on a Debian system :

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="4"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd2,msdos2)'
search --no-floppy --fs-uuid --set=root
651c8aab-bdac-4bbb-bc02-1cfe79273fae
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd2,msdos1)'
  search --no-floppy --fs-uuid --set=root
f7caaaee-9b59-4e58-a821-1644c8ac9560
  set locale_dir=($root)/grub/locale
  set lang=fr_FR
  insmod gettext
fi
terminal_output gfxterm
set timeout=15
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd2,msdos2)'
search --no-floppy --fs-uuid --set=root
651c8aab-bdac-4bbb-bc02-1cfe79273fae
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png;
then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, avec Linux 3.0.0-1-rt-amd64' --class debian
--class gnu-linux --class gnu --class os {
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos1)'
        search --no-floppy --fs-uuid --set=root
f7caaaee-9b59-4e58-a821-1644c8ac9560
        echo    'Chargement de Linux 3.0.0-1-rt-amd64 ...'
        linux   /vmlinuz-3.0.0-1-rt-amd64 root=/dev/sdb2 ro
transparent_hugepage=always 
        echo    'Chargement du disque mémoire initial ...'
        initrd  /initrd.img-3.0.0-1-rt-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
menuentry 'Debian GNU/Linux, avec Xen 4.1-amd64 et Linux
3.0.0-1-rt-amd64' --class debian --class gnu-linux --class gnu --class
os --class xen {
        insmod part_msdos
        insmod ext2
        set root='(hd2,msdos1)'
        search --no-floppy --fs-uuid --set=root
f7caaaee-9b59-4e58-a821-1644c8ac9560
        echo    'Chargement de Xen 4.1-amd64 ...'
        multiboot       /xen-4.1-amd64.gz placeholder  dom0_mem=3072M 
cpufreq=xen
cpuidle vtd=1 iommu=1 loop.max_loop=64
        echo    'Chargement de Linux 3.0.0-1-rt-amd64 ...'
        module  /vmlinuz-3.0.0-1-rt-amd64 placeholder root=/dev/sdb2 ro
transparent_hugepage=always 
        echo    'Chargement du disque mémoire initial ...'
        module  /initrd.img-3.0.0-1-rt-amd64
}
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply
type the
# menu entries you want to add after this comment.  Be careful not to
change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


Attachment: grub.cfg
Description: Text document

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