Cloud-Init LUKS VM Setup?

Whitterquick

Active Member
Aug 1, 2020
246
9
38
Hello all,

I have seen an understand the benefits of setting up a base image/template with Cloud-Init, so similar VMs can very easily be setup when needed. My question is... can these Cloud-Init template/images can be setup with LUKS encryption without losing any features? Will it still be able to setup with different/specified credentials etc? Any drawbacks?
 
Last edited:
If the above is not possible or advised, would cloning the VM be the better solution? What needs to be changed after cloning a VM to make it unique? I remember seeing something about a randomly-generated string somewhere that needs to be deleted?

Apologies if I'm not using the correct terminology here, hopefully you all know what I mean lol