XenServer Upgrading Ubuntu Issue

JTS

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.

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

About the author

During his twenty-five professional years, Mr. Silva has had experience in nearly every facet of the Information Technology industry. Ranging from advanced data mining / data visualization systems to running multi-state small business IT infrastructures, Mr. Silva has always provided precise and cost-effective strategies to meet any client’s needs. With his tremendous work ethic and “Can-Do” attitude, Mr. Silva has always met every challenge head-on and with intelligent determination. Mr. Silva is also a certified NAUI Advanced/Nitrox Diver, hoping to get a few more wrecks under his belt in the Atlantic.