You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
meskio 69a6bacb28
Fixups
1 year ago
postinst Add postinst script 1 year ago
.gitignore Make it configurable the paths and ready to deploy 1 year ago
README.md Make it configurable the paths and ready to deploy 1 year ago
create Fixups 1 year ago
postinst.sh Add postinst script 1 year ago
preseed.tmpl Add postinst script 1 year ago

README.md

Setup VMs automatically.

Usage

Get the debian iso to install, and ajust if needed the ISOPATH in create. Or put all the assets in a path and configure the ROOT_PATH variable.

Copy the ssh public key that you will use in the postinst folder:

$ cp ~/.ssh/id_rsa.pub postinst/authorized_keys

Install the VM providing the hostname and the VM number (the last block of the IP):

$ ./create maquineta 42

Profit!!! Everything should work automatically now. You can watch the installer running by connecting to the console:

$ virsh console maquineta

Params

The memory can be set with -r (in MB) and the disk space with -d (in GB).

Credits

This repo has a lot of copypasta from: https://github.com/pin/debian-vm-install