The path to take here is to clone the existing Debian 6 template in the bit level that you're interested in and edit/modify it to satisfy your needs (which I've done many of these for other "online install" type distros aka net-installs).
Here's an outline:
# xe template-list |grep 'Debian Squeeze 6.0 (64-bit)' -B1
uuid ( RO) : 2122992d-d430-e380-625e-d6049cfae018
name-label ( RW): Debian Squeeze 6.0 (64-bit)
Now that we have our template, here are all the modifications we need to make
(do note that your uuid for your template will differ from mine)
# xe vm-clone uuid=2122992d-d430-e380-625e-d6049cfae018 new-name-label="Debian
Squeeze 7.0 (64-bit)"
93984a64-6296-85e2-1731-c5986c26a362
So we've now got our new template UUID from the vm-clone return, modify it.
# xe template-param-set uuid=93984a64-6296-85e2-1731-c5986c26a362
other-config:debian-release=wheezy
# xe template-param-set uuid=93984a64-6296-85e2-1731-c5986c26a362
other-config:default_template=true
# xe template-param-set uuid=93984a64-6296-85e2-1731-c5986c26a362
other-config:install-methods= http, cdrom,ftp,nfs
# xe vm-param-set uuid=93984a64-6296-85e2-1731-c5986c26a362
other-config-install-repository=http://ftp.us.debian.org/debian/
This creates a new default template of Debian 7.0 Wheezy amd64. You can use
this for other coded installs. Do note for XCP1.6 that the XS Tools will not
detect "wheezy" as a release version, and you'll have to install the tools
manually via dpkg (meh, minor inconvenience but its OK). Also you can merge all
the other-config:* segments into one command, I just showed you them
individually for posterity. As always, you can get all the options by executing
"xe template-param-get uuid=<UUID_HERE> param-name=<PARAM_HERE>"
- Brian Menges
Principal Engineer, DevOps
GoGrid | ServePath | ColoServe | UpStream Networks
From: [email protected] [mailto:[email protected]] On
Behalf Of Narcís Escarpanter
Sent: Wednesday, May 29, 2013 04:19
To: [email protected]
Subject: [Xen-API] XCP new VM from wheezy template
Hi,
We are working with xen-api and we want to install a new wheezy system, we
don't want to create from a previously installed system first and then convert
it to template. So... Is there a way to install a new VM from a debian 7
(wheezy) template on a XCP? Like downloading the template from Xen and putting
it in some path, create a new one and then set the default template flag, ... ?
Any help would be appreciated.
Thanks in advance.
Narcís Escarpanter
Technical Area - ServeisWeb
http://www.serveisweb.com<http://www.serveisweb.com/>
http://blog.serveisweb.com<http://blog.serveisweb.com/>
Tel. 902 010 664 - Tel. Int. +34 972 010 550<tel:%2B34%20972%20010%20550>
Fax 902 510 664 - Fax Int. +34 972 010 555<tel:%2B34%20972%20010%20555>
[cid:[email protected]] Please, consider the environment before
printing this email.
LEGAL NOTICE
SW Hosting & Communications Technologies, SL informs you that this message is
intended exclusively for its addressee and contains confidential and / or
sensitive information subject to professional secrecy and protected by the
current legislation. If you are not the intended recipient, we notify you that
the reading, use, disclosure, reproduction, distribution, printing and / or
copy of this communication, information and / or any attachments to it are
strictly prohibited by law. If you have received this message by mistake,
please notify it to us immediately replying to the sender of the message and
then delete it with all the attachments if any.
________________________________
The information contained in this message, and any attachments, may contain
confidential and legally privileged material. It is solely for the use of the
person or entity to which it is addressed. Any review, retransmission,
dissemination, or action taken in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you receive this
in error, please contact the sender and delete the material from any computer.
<<inline: image001.gif>>
_______________________________________________ Xen-api mailing list [email protected] http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
