New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: image template re-organisation #219
Comments
I am a user of webvirtcloud. I have a way of use it and i do not know every aspect of usage. It makes sense . Propose can implement but i should try templates to understand comprehensively. |
Ok, sounds great! I will help with whatever I can as I need tgis functionality! Templates are just simple instances. For example you create an instance, install it with some OS, install some software you want to have by default, then shut it down and mark it as template. This way when you need several inastances - just clone from teplate and start the instance. It will make a cloning of the instace + cloning of the drive. The template itself can only be cloned, not started until marked as template. If you want to make changes - unmark it and then you can start it. Get the logic now? |
there is a template section/module in app. it is a directory which contains base/common templates for pages. |
I am not sure either, but you can try :) I can test it if when you make some changes. |
I have a problem with Ubuntu 18.04 server installed as a "template". When I clone that server, machine-id remain the same so to have working DHCP client I must manually recreate machine-id. I had used server, not live server ISO image as install media for this "template". |
@ssbaksa this related with operating system. same thing happens on windows. you should find a solution on operating system before making it a template. |
@catborise 'SIGH' I have thought so so but still hoped for nicer solution. |
@ssbaksa i think there is a solution to that. but requires some digging. i will research implementation possibility. |
For operating system images which are created once and used on multiple machines, for systemd-firstboot(1) may be used to to initialize /etc/machine-id on mounted (but not
Refference: http://manpages.ubuntu.com/manpages/bionic/man5/machine-id.5.html |
@catborise @Bandic007 I have solution for above mentioned problem but I am not sure should we discus it here or maybe this is a theme for another ticket. I have used guestfsd (actually guestfs alone) from command line to check and change state of machine-id for cloned image/server. |
i said before that, my intention is that also using guestfsd. May be you know this tool : "virt-sysprep" "make an installation -> execute virt-sysprep -> convert image to template -> clone it" = solution virt-sysprep --list-operations |
I am aware of this toll and it is powerful one. I don't need so much firepower and zapping machine-id for me is just enough for now. |
@catborise - are going to try and do some changes on the templates, ot should close it as "obsolete" :) |
it requires too much code change and causes some abnormalities. however it can be done, but i should look forward to "v2". |
Ok great! Thank you! |
Have you tried V2 already? Is it working already or it is still in heavy development? |
no i havent tried it yet. some structures is ready but i have no idea. i am getting familiar with new framework... |
@catborise - I think this, can be nice addition, but I would like your opinion:
I think that if you mark an instance as Template, it should appear under a new tab - Templates. It will be easier to differentiate. This tab can only appear, if there are some templates.
Also - in addition - all instances, marked as templates (or even the whole template tab) to be visible for all user, who can "clone templates". This way, when a new user with only this permission is created, he will be able to see the templates out of the box and choose one to clone and use, without the admin to specifically give him rights (the admin can always remove some user from instance owners).
Maybe this can be achieve with a user group, called "all", which will include wall users by default and this group can be assigned by default to the template instances (otherwise in the "user" column in Instances page there will be too many usernames displayed I think)
What do you think and will you be able to do it?
Sorry for so much feature requests, but I have several ideas for better experience when using this tool, but I don't have the developer skills to make all those changes. :)
The text was updated successfully, but these errors were encountered: