Ubuntu Jaunty Xen domU on CentOS 5.2 dom0

centosUbuntuvirtualizationxen

I'm trying to boot an Ubuntu Jaunty VM using Xen 3.2.1 on CentOS 5.2.

I followed this guide to setup the VM, the debootstrap call I used was:

debootstrap --arch amd64 --include=linux-image-server,grub --components=main,universe,multiverse jaunty /mnt/xenfs http://it.archive.ubuntu.com/ubuntu/

My problem is that when I try to boot the VM, I can see Grub showing the kernel list, but when I choose one, the boot stops with this error:

Error: (2, 'Invalid kernel', 'xc_dom_find_loader: no loader found\n')

Here's the Xen configuration for the VM:

name = 'testvm'
bootloader = '/usr/bin/pygrub'
memory = '256'
vif = [ 'ip=192.168.1.216,mac=00:16:3E:21:C2:A1' ]
disk = [ 'phy:/dev/drbd22,xvda1,w',
              'phy:/dev/drbd23,xvda2,w' ]

…and the relevant part from /boot/grub/menu.lst:

title           Ubuntu 9.04, kernel 2.6.28-11-server                            
root           (hd0,0)                                                         
kernel        /boot/vmlinuz-2.6.28-11-server root=/dev/xvda1 ro console=xvc0  
initrd         /boot/initrd.img-2.6.28-11-server                               

Inspecting the kernel shows:

[root@server2 boot]# file vmlinuz-2.6.28-11-server 
vmlinuz-2.6.28-11-server: Linux kernel x86 boot executable RO-rootFS, root_dev 0x801, swap_dev 0x3, Normal VGA

So the kernel is not a gzipped file.. Maybe that's a format that Xen 3.2.1 doesn't understand? I can't upgrade to Xen 3.3… Is there a way to "transform" that kernel into a gzipped image? Should I try another kernel altogether?

Many thanks!

Best Answer

What is the result of 'uname -a' on the host machine? Do you have a Xen enabled kernel loaded (on the host)? It should be something like:

2.6.18-92.1.10.el5xen

With xen at the end. If you are booting with a normal kernel, install the xen package with 'yum install kernel-xen' and boot with this new kernel.

Related Topic