XenServer 6: Problems Starting a New Ubuntu 14.04 VM

Currently XenServer has a problem starting a new Ubuntu 14.04 image. There is a problem with one of the Python scripts it uses to start machines. This should be fixed by an update soon, but for now it’s a really easy fix to perform real quick. Thanks to http://virantha.com/2014/05/21/ubuntu-14-04-trusty-on-xenserver-62/ for the quick instructions.

In XenCenter, head over to the console of the server and log in.

Edit the file in question to fix the line:

vi /usr/lib/python2.4/site-packages/grub/GrubConf.py

In vi, head down to line 428. You can do this quickly by typing “:428” and pressing enter. Then press “i” or the insert key to start editing.

Change this line:

if arg.strip() == "${saved_entry}":

to say:

if arg.strip() == "${saved_entry}" or arg.strip() == "${next_entry}":

Save and quit (Press ESC and type “:wq”), and you’re done. The Ubuntu 14.04 machine should now start.