How to decouple an instance from a template? #13448
-
|
We want to run a large number of Windows VMs in CloudStack and would like to build monthly updated images using Packer. Is there a way to decouple the running VM instances from the template they were created from? Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
Okay, I can delete the template using “force delete,” and that doesn't seem to be a problem for the running instances. JL |
Beta Was this translation helpful? Give feedback.
-
|
Dear @jl0815 , I don't see any future issues if CloudStack (ACS) keeps a reference showing which templates the running VMs came from. My past concern was simply that ACS defaults to linked volumes between instances and their templates. It uses a backing chain, meaning the VM disk relies on the original template. If this link is a concern for you, there are a few ways to fix it. You can manually flatten the volumes using the CLI, or you can perform a backup and restore (the restored VM will be completely independent). Hope this makes sense. Regards, |
Beta Was this translation helpful? Give feedback.
-
|
Hello, @jl0815 and @daviftorres
Exactly, the running VMs will not be affected. The template will be kept in primary storage until the last VM that uses it is expunged.
No, this will not cause any issues. The only downside is that the UI will display a link to the template and, when accessing it, since the template is removed, the user will be redirected to a 404 page. As for new templates with the same name, this will not be an issue either. ACS currently supports different templates with the same name. The are identified/differentiated by their internal IDs and UUIDs. |
Beta Was this translation helpful? Give feedback.
-
|
Hi everyone. Thank you very much for your replies. Best regards, |
Beta Was this translation helpful? Give feedback.
Hello, @jl0815 and @daviftorres
Exactly, the running VMs will not be affected. The template will be kept in primary storage until the last VM that uses it is expunged.
No, this will not cause any issues. The only downside is that the UI will display a link to the template and, when accessing it, since the template is removed, the user will be redirected to a 404 page.
As for new…