WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API]how to create template from scrach

To: Anthony Xu <anthony@xxxxxxxxx>
Subject: Re: [Xen-API]how to create template from scrach
From: Anil Madhavapeddy <anil@xxxxxxxxxx>
Date: Thu, 7 Jan 2010 08:58:58 +0000
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 07 Jan 2010 00:59:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1262739063.2982.32.camel@mobl-ant>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <1262739063.2982.32.camel@mobl-ant>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Templates and VMs are actually the same records, except that templates have the 
'is-a-template' parameter set to true. They were originally treated differently 
to help ensure that templates are 'gold images' (by never letting them be 
started accidentally, and only cloned).  You should be able to switch between 
them by toggling the is-a-template parameter from XE or the API directly.

Because they are the same record type, you don't need a template-import; you 
can just import the result of template-export as a VM and it'll show up in your 
template list since the is-a-template flag will have been preserved in the 
output.  I've not actually tried this recently as I dont have an XCP install 
handy, so do confirm it yourself...

-anil

On 6 Jan 2010, at 00:51, Anthony Xu wrote:

> I'm looking at xe template command set. There is not template-create
> command or template-copy command. seems the only way to create a new
> template is to convert a vm to template, IMO, that's not convenient. At
> least, I'm happy to have template-copy command.
> 
> And I noticed there is template-export command but there is not
> template-import command, so I don't understand what template-export is
> used for?
> 
> Please enlighten me!
> 
> Thanks,
> Anthony
> 
> 
> 
> 
> _______________________________________________
> xen-api mailing list
> xen-api@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/mailman/listinfo/xen-api
> 


_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>