Re: [Users] Unable to Remove Template, if VM exists.

2014-02-19 Thread Dafna Ron
As long as the vm is linked to the template (which means you created the 
vm as a thin provision copy) you cannot delete the template.

what you can do to work around this is:
1. export the vm and template to an export domain
2. delete the vm and template from the source setup only
3. try to import the vm as clone

other way is:
1. create a template from the vm
2. create a new vm from the template (make sure to create a clone and 
not a thin copy this time :))


Dafna


On 02/19/2014 06:22 AM, 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


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



--
Dafna Ron
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Unable to Remove Template, if VM exists.

2014-02-18 Thread Tejesh M
Thanks alot.


On Wed, Feb 19, 2014 at 12:04 PM, Karli Sjöberg 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.sjob...@slu.se
>



-- 
Thanks & Regards
Tejesh
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Unable to Remove Template, if VM exists.

2014-02-18 Thread Tejesh M
Tried google and got the answer
http://lists.ovirt.org/pipermail/users/2013-March/013576.html


On Wed, Feb 19, 2014 at 11:52 AM, 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
>



-- 
Thanks & Regards
Tejesh
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Unable to Remove Template, if VM exists.

2014-02-18 Thread Karli Sjöberg
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.sjob...@slu.se
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Unable to Remove Template, if VM exists.

2014-02-18 Thread Tejesh M
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
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users