Thanks alot.


On Wed, Feb 19, 2014 at 12:04 PM, Karli Sjöberg <Karli.Sjoberg@slu.se> wrote:
On Wed, 2014-02-19 at 11:52 +0530, Tejesh M wrote:
> Hi All,
>
>
> I'm not able to Delete Template, if the VM is exists which is deployed
> from that Template. How can i delete Template leaving the VM as is?
>
>
> Thanks & Regards,
>
> Tejesh
>

In case you aren´t aware, oVirt actually does that for a very good
reason. This way you can create _1_ template, then create _1000_ VM's,
and they´ll only take up the space of that single template, and then
build up on the changes that are "new" for each VM.

If you want to be able to still delete a template, I suggest you choose
to provision new VM's "cloned" from that template, instead of "thin".
You can however just rename it to something else like
"deprecated_template01" and leave it like that.

Otherwise your only option is to create a new disk for that VM, start it
up from a Live-CD and "dd" the operating disk over onto the new, then
delete the old disk, perhaps rename the new disk from "_Disk2" to
"_Disk1" instead and remember to mark it "Bootable". Repeat this process
for every VM that is thin provisioned from this template and then you
can finally delete the template.



--

Med Vänliga Hälsningar

-------------------------------------------------------------------------------
Karli Sjöberg
Swedish University of Agricultural Sciences Box 7079 (Visiting Address
Kronåsvägen 8)
S-750 07 Uppsala, Sweden
Phone:  +46-(0)18-67 15 66
karli.sjoberg@slu.se



--
Thanks & Regards
Tejesh