Issue with Ubunti 14.x install with Template on Xenserver 6.2

Xenserver 6.2 doesn't support Ubuntu 14.x by default.
To get Ubuntu 14.x installed a  small modification is needed on Xenserver.
Please follow the steps when installling Ubuntu 14.x with Template on Xenserver 6.2.

TEMPLATE_UUID=`xe template-list name-label="Ubuntu Lucid Lynx 10.04 (64-bit)" params=uuid --minimal`
NEW_TEMPLATE_UUID=`xe vm-clone uuid=$TEMPLATE_UUID new-name-label="Ubuntu Trusty 14.04 (64-bit)"`
xe template-param-set other-config:default_template=true other-config:debian-release=trusty uuid=$NEW_TEMPLATE_UUID

Once above is done. Follow these steps:
  1. Login to the XenServer via ssh
  2. Copy the file you're about to edit as a backup:
    cp /usr/lib/python2.4/site-packages/grub/ /usr/lib/python2.4/site-packages/grub/
  3. vi /usr/lib/python2.4/site-packages/grub/
  4. Modify line 428 (Press Esc, type 428, Shift-g)
  5. Insert (i): or arg.strip() == "${next_entry}"
    to the line: 
    if arg.strip() == "${saved_entry}":
    so the line looks like this:
    if arg.strip() == "${saved_entry}" or arg.strip() == "${next_entry}":
  6. Save and exit (Esc :wq)
In XenCenter start the “New VM? wizard and select the new template then choose a suitable mirror for the URL from where you can get the Ubuntu. 

You are done!

  • 8 Users Found This Useful
Was this answer helpful?

Related Articles

How Do I Monitor Traffic on my Virtual Machine?

To monitor your traffic on your virtual machine, go to the client area, and click the "My...

Security concern about root password being displayed in client area

The client area password you chose is stored in a one way MD5 hash format, but the passwords...

How do I Reboot my VPS?

To reboot your virtual machine, go to the client area, and click the "My Services" tab; You then...

How to resize file system on virtual machine

How to resize disk space on Virtual MachineIn order to resize disk space follow the following...

What is a Virtual Private(dedicated) Server?

Virtual private servers offer clients a cost-effective option for hosting their websites in a way...