Site icon Silva Tech Solutions LLC

XenServer Upgrading Ubuntu Issue

After ugrading an Ubuntu instance in Xenserver, I received the following error message.
The bootloader for this VM returned an error – did the VM installation succeed? Unable to find partition containing kernel
Thankfully after some quick Googling, J Finley had the answer (Article)

From his site…

Disclaimer: Make a backup of the file you’re about to change.
# cp /usr/lib/python2.4/site-packages/grub/GrubConf.py GrubConf.pl.ORIG
# nano -w /usr/lib/python2.4/site-packages/grub/GrubConf.py
 
Locate the following
 
if arg.strip() == “${saved_entry}”
 
and append the following or arg.strip() == "${next_entry}" to that line to make it look as below.
 
if arg.strip() == “${saved_entry}” or arg.strip() == “${next_entry}”:
 
Control-X to save. Boot the VM.

Disclaimer: Make a backup of the file you’re about to change.
# cp /usr/lib/python2.4/site-packages/grub/GrubConf.py GrubConf.pl.ORIG
# nano -w /usr/lib/python2.4/site-packages/grub/GrubConf.py
Locate the following
if arg.strip() == “${saved_entry}”
and append the following or arg.strip() == “${next_entry}” to that line to make it look as below.
if arg.strip() == “${saved_entry}” or arg.strip() == “${next_entry}”:
Control-X to save. Boot the VM.

A quick save later and the instance was able to boot without a hitch. Thanks J!

Exit mobile version