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!

Jeremy T. Silva, owner of Silva Tech Solutions

About the author

Jeremy T. Silva is the owner of Silva Tech Solutions and works as a fractional CIO for mid-market manufacturers, engineering firms, and service companies across Eastern Pennsylvania and New Jersey. He sets technology strategy, governs AI adoption, and holds vendors accountable, without reselling products or taking referral fees. He has twenty-five years of IT leadership experience, including director-level roles in healthcare and corporate events.