Hello.
I'm used to KVM, but my enterprise decided to use GCP because they say it is safer... Hah.
At
the moment they're reconfiguring every instance from scratch: they create an ampty vm, add disks, mount them in place, install software inside newly mounted disks, configure software and start operations. However, I
want to make a template (I'm not sure if it matches with Google's
template definition) of a Debian with n disks, one virtual disk per
service and an extra for backups. The system should pop-up with all the
applications installed and configured for defaults. Those applicationds
are usually part of the repositories, so an apt-clone would suffice,
however, others are not, so I'd need custom scripts to make deployments
from scratch. I'll make one template per machine type, so the number of
disks will be the same for all the instances made from a single
template. This is straightforward in KVM, and I'm kinda mad about Google not offering this after the crazy prices they're charging us.
What I want is a way to "clone"
my VM, tell Google "make a copy" and obtain a cloned machine with the
UUIDs, hostname and so on altered to match Google configs to be able to
get ssh keys and st*pid stuff like that automatically (my boss seems to
like to have the ability to put a ssh key from the web interface -.-).
also, I like to leave Rnapshot and the backup stuff configured BEFORE
deployment to avoid forgetting it, so what I really want is a clone of the system which get "sysprep'd" (or linux equivalent on the first run).
They say
there's a clone button "create similar", but thats not cloning, thats
just copying the d*** machine definition file to a new location and
create a new disk... Its just insulting my intelligence xD.
PD:
Sorry for my mood, but I'm so angry that such an expensive service
does, after all, perform worse than doing the same on local used servers
>.<
I want to be able to make it across projects, of course.