Tuesday, May 17, 2011

Deleting XenServer templates

In my quest to create Ubuntu templates, I ended up with a couple I wanted to delete, but couldn't using XenCenter, or the CLI for that matter.  This is an example of one of those little things that just eat at me, that "there just has to be a way" to do it.

So I figured out a way after several unsuccessful attempts.  My solution  to delete, destory, uninstall, or whatever you want to call it... convert it from a default template, then from a template to a VM, and finally destroy the VM:

# xe template-param-set other-config:default_template=false uuid=[uuid]
# xe template-param-set is-a-template=false uuid=[uuid]
# xe vm-destroy uuid=[uuid]

Where [uuid] is the uuid of the template.  Yessss!

0 comments:

Post a Comment