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

Re: Xen images not bootable?



On 2006-05-08, Bastian Blank <waldi@debian.org> wrote:
> On Mon, May 08, 2006 at 06:54:44AM +0000, rganesan@debian.org wrote:
>> I am quite new to Xen, so before I go ahead and file bugs I want to make
>> sure that I am not doing something stupid. Are the xen images supposed to
>> bootable?
>
> They are bootable, but not via a realmode bootloader like grub or lilo,
> but via xen. In fact the images are ELF binaries.

Thanks for the cluebat. Obviously, I need to boot Xen first. I even had
xen-hypervisor-3.0-amd64 already installed!

>>           There is no postinst in the images and so initrd doesn't get
>> created.
>
> This is known and beeing worked on.

Okay. Here is what I did to get Xen working with the Debian 2.6.16 kernel
images on my Athlon X2.

1. Install xen-hypervisor-3.0-amd64, xen-utils-3.0,
linux-image-2.6.16-1-xen-amd64-k8 and linux-modules-2.6.16-1-xen-amd64-k8
2. sudo update-initramfs -v -c -k 2.6.16-1-amd64-k8-smp
3. Manually edit /boot/grub/menu.lst to add an entry like

=======
title      Xen + Debian GNU/Linux, kernel 2.6.16-1-xen-amd64-k8 
root       (hd0,1) 
kernel     /xen-3.0-amd64.gz 
module     /vmlinuz-2.6.16-1-xen-amd64-k8 root=/dev/<root> ro console=tty0   
module     /initrd.img-2.6.16-1-xen-amd64-k8 
savedefault 
boot 
=======

Hope somebody finds this information useful till initrd generation in the
Xen images as well as update-grub gets fixed.

Ganesan

-- 
Ganesan Rajagopal (rganesan at debian.org) | GPG Key: 1024D/5D8C12EA
Web: http://employees.org/~rganesan        | http://rganesan.blogspot.com




Reply to: