Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Citrix XenServer»How To Add Ubuntu 16.04 LTS Template in XenServer 6.2

    How To Add Ubuntu 16.04 LTS Template in XenServer 6.2

    By RahulApril 3, 20182 Mins Read

    Today I have installed a new Citrix XenServer 6.2 at my workplace. When I connect it through XenCenter 6.2, I could not find a template for Ubuntu 16.04 LTS or 14.04 LTS. After googling I found below steps to create template for Ubuntu 16.04 LTS or 14.04 LTS in XenServer. How To Add Ubuntu 16.04 LTS Template in XenServer 6.2.

    Advertisement

    Step 1 – Update pygrub in Xenserver

    • Edit the file /usr/lib/python2.4/site-packages/grub/GrubConf.py on the XenServer host machine.
    • Got to line no 428 and change
      from:

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

      to:

      if arg.strip() == "${saved_entry}" or arg.strip() == "${next_entry}":
      
    • Let’s start with creating new vms.

    Step 2 – Create Templates for Ubuntu

    Now execute following commands one by one to add a new template to the XenServer host. Below is the commands for adding Ubuntu 16.04 LTS and Ubuntu 14.04 LTS templates in your system. Add template as per your requirements.

    Add Ubuntu 16.04 LTS Template

    $ UUID=`xe template-list name-label="Ubuntu Precise Pangolin 12.04 (64-bit)" params=uuid --minimal`
    $ NEW_UUID=`xe vm-clone uuid=$UUID new-name-label="Ubuntu Xenial 16.04 (64-bit)"`
    $ xe template-param-set other-config:default_template=true other-config:debian-release=xenial uuid=$NEW_UUID
    

    Add Ubuntu 14.04 LTS Template

    $ UUID=`xe template-list name-label="Ubuntu Precise Pangolin 12.04 (64-bit)" params=uuid --minimal`
    $ NEW_UUID=`xe vm-clone uuid=$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_UUID
    

    Step 3 – Create New VM using Template

    At this step, start with creating new VM using the newly created template. Open XenCenter, Right click on XenServer host and click New VM.

    Add Ubuntu 16.04 LTS Template in XenServer 1

    Enter the name and description of your new VM.

    Add Ubuntu 16.04 LTS Template in XenServer 2

    Select installation media source. If you have already had ISO, select the first option and choose ISO from the library. Else you can use the second option to install using net install URL. Enter http://us.archive.ubuntu.com/ubuntu as net install URL.

    Add Ubuntu 16.04 LTS Template in XenServer 3

    Now, follow the remaining on screen steps and complete Ubuntu 16.04 virtual machine installation on Citrix XenServer.

    Citrix VM XenCenter xenserver XenServer Template
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How To Create Ubuntu 16.04 LTS VM in XenServer 6.2

    How to Backup Running Virtual Machine in XenServer

    How To Add CentOS 7 Template in XenServer 6.2

    View 10 Comments

    10 Comments

    1. Betty Ann on December 1, 2017 6:28 pm

      I am really happy to say it’s an interesting post to read. I learn new information from your article……….

      Reply
    2. Chris F on October 21, 2016 4:58 pm

      I keep getting an error

      Unable to access a required file in the specified directory: http://us.archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/current/images/netboot/xen/vmlinuz

      I followed the instructions and it all went fine until it tries to start the VM and fails. I have inserted the http://us.archive.ubuntu.com/ubuntu

      Still does not work. Any tips?

      Reply
    3. Olivia on September 3, 2016 7:03 am

      Thank you very much. You saved my time…

      Reply
    4. Oleg on August 8, 2016 5:41 am

      Thanks a lot!
      This solution works perfect even on XenCloudPlatform 1.1 based on XenServer 5.6 (if I remember correct).

      Reply
    5. Radka on July 8, 2016 9:08 am

      I have basically same questions like Dan and Andrea. Did someone try it for XenServer 6.5?
      Thanks.

      Reply
    6. Dan Porter on June 6, 2016 12:41 pm

      I’m confused as to why you would do a new deploy of XenServer 6.2 in May 2016…

      • XenServer 6.5 was released Jan 2015 and added support for Ubuntu 14.04
      • XenServer 7.0 was released May 2016 and added support for Ubuntu 16.04

      Both these versions support HVM mode, and running under PV mode using the 12.04 template is not recommended on these versions.

      Reply
      • Andrea on July 10, 2016 9:30 pm

        I don’t need a NEW deploy of XenServer 6.5, I already have a XenServer 6.5 in production from years (with mostly Ubuntu 12.04 as guest) and the need to install 16.04 without upgrading XenServer itself.

        Reply
    7. Andrea on May 26, 2016 3:04 pm

      I currently working on XenServer 6.5 and I just would like to tell you that the the changes to GrubConf.py is not needed (see /usr/lib64/python2.4/site-packages/grub/GrubConf.py)

      However, I’m wondering why you configure “other-config:debian-release=trusty” for 16.04 (xential) too, is it a typo?

      Reply
      • Aequits on August 10, 2016 1:07 pm

        It is a typo and still not removed.

        Reply
    8. Hollis on May 25, 2016 3:30 am

      Works perfectly for me…. thanks a lot

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.