After the CentOS ThinClient project I worked on at NCRi, I wanted a more efficient process for spinning up my personal VM's. I didn't want to use a template VM due to prior issues such as hostname and ip conflicts. Having a script to run on a fresh system seemed the best way to go about it.
- Create a VM and install Debian as usual
- Login as initial user
- Transfer start.sh to /home/$user/.
- SSH into VM
- Run the following commands
su rootbash /home/$user/start.sh
Securing VM has a lot more manual configurations needed, so scripting a method to input data might be the way forward with this project