Yay for Citrix XenServer (NOT)

Ok, some hours of my life are gone. I will document a nasty error I got using Citrix XenServer 5.6, in combination with Ubuntu 11.

I ran some updates last friday, and after a reboot, I got the following error:

27-1-2012 18:39:02 Error: Starting VM '$hostname.$domainname.com' - Using to parse /grub/grub.cfg - WARNING:root:Unknown directive else - WARNING:root:Unknown directive else - WARNING:root:Unknown directive else - WARNING:root:Unknown directive else - WARNING:root:Unknown directive else - WARNING:root:Unknown directive export - WARNING:root:Unknown image directive recordfail - WARNING:root:Unknown image directive recordfail - WARNING:root:Unknown directive submenu - WARNING:root:Unknown image directive recordfail - WARNING:root:Unknown image directive recordfail - Traceback (most recent call last): - File "/usr/bin/pygrub", line 746, in ? - raise RuntimeError, "Unable to find partition containing kernel" - RuntimeError: Unable to find partition containing kernel

27-1-2012 19:12:53 Error: Starting VM '$hostname.$domainname.com' - Using to parse /grub/grub.cfg - Traceback (most recent call last): - File "/usr/bin/pygrub", line 746, in ? - raise RuntimeError, "Unable to find partition containing kernel" - RuntimeError: Unable to find partition containing kernel

Funny enough, my old collegue Eelco already had this issue before. This gave some hints to start an editor in the DOM0.

For instance:

EDITOR=vi xe-edit-bootloader -n pandora.diedx.nl -p 1

Will give you an vi-editor in the virtual host pandora.diedx.nl.

The issue seemed to be that GRUB2 gives an submenu, which is parsed wrongly with Citrix Xenserver. When you have above file opened, please check for “submenu”, and remove the backup-kernels.

Dit bericht is geplaatst in Daily stuff met de tags , , , . Bookmark de permalink.