Grub Config for Xen (III)
This is the third post in my series on installing Xen. Hopefully this’ll be useful for folks who are either just setting up the Xen Hypervisor into their current Grub installation and new Grub users alike.
Here’s a copy of my /boot/grub/grub.conf:
# this loads the first profile by default
default 0
# wait 12 seconds before loading default
timeout 12
# use a nifty image
spashimage=(hd0,4)/grub/splash.xpm.gz
# start of first profile
title=Gentoo Linux 2.6.11-r6-danger
# this profile resides on the Fifth partition (Grub counts from 0)
root (hd0,4)
# my kernel is /boot/kernel-2.6.11-r6-danger
# remove the /boot from the path and it’ll be right.
kernel /kernel-2.6.11-r6-danger
# this is the profile that should be selected to enable (boot) Xen
title=Xen2.0 / Xen 2.6.10
# load this kernel with a set memory amount
kernel /boot/xen.gz dom0_mem=131072
# set the root to the sda4 device and output to the console (tty0)
module /boot/vmlinuz-2.6.10-xen0 root=/dev/sda4 ro console=tty0
# in case of a proprietary emergency (which has yet to happen)
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
After you’ve saved this file, run:
# grub-install
That should set up your grub installation. If it doesn’t work, try the following links.
Other resources to help you set up Grub for Xen:
Gentoo.org Grub installation documentation
Small Grub tutorial