Home » Virtualization » Add and Delete Template on Xenserver

Add and Delete Template on Xenserver

This tutorial will guide to Add and Delete Template on Xenserver
To attach templates for CentOS 6.5 you can use the RHEL 6.5 templates:
For CentOS 32 bit run:

#xe vm-clone uuid=`xe template-list name-label=Red\ Hat\ Enterprise\ Linux\ 6\ \(32-bit\) –minimal` new-name-label=”CentOS 6.5 (32-bit)”

For CentOS 64 bit run:

#xe vm-clone uuid=`xe template-list name-label=Red\ Hat\ Enterprise\ Linux\ 6\ \(64-bit\) –minimal` new-name-label=”CentOS 6.5 (64-bit)”

Delete template
Occasionally XenServer doesn’t permit you to remove templates from the XenCenter GUI or even the CLI. Here are below three steps to delete templates from the CLI:

#xe template-list name-label=CentOS\ 6.5\ \(32-bit\)

Here is the uuid:
uuid ( RO) : be42ed63-e006-449a-b851-3b95175111ca

#xe template-param-set other-config:default_template=false uuid= be42ed63-e006-449a-b851-3b95175111ca

Then :

#xe template-param-set is-a-template=false uuid= be42ed63-e006-449a-b851-3b95175111ca

And then:

#xe vm-destroy uuid= be42ed63-e006-449a-b851-3b95175111ca

About

I am founder and webmaster of www.linuxpcfix.com and working as a Sr. Linux Administrator (Expertise on Linux/Unix & Cloud Server) and have been in the industry from last 7 years.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*

Time limit is exhausted. Please reload the CAPTCHA.

Categorized Tag Cloud