# Debian unattended install > **ATTENTION:** this repo is focused on my thesis work so expect some mess and low generalization. ## Usage Get help: ```sh ./regeniso-sid.sh -h ``` ### Examples: > **Note:** `preseed/kube.cfg` at the moment works only with the _netinst_ image. The reason is that with the _netinst-minimal_ I should manually install some kernel modules (`cdrom` for example) and at the moment I don't know how to do this. Generate a _netinst_ with a _kube_ preseed: ```sh ./regeniso-sid.sh preseed/kube.cfg netinst stable amd64 auto "bluetooth.blacklist=yes bnep.blacklist=yes" ``` ## Initialize the VM Create a VM and launch the unattended install. Minimal requirements: + 2 Cores + 3GB RAM (8GB for a decent experience) Once the unattended installation finished successfully we should prepare the environment inside the VM. > **user:** `virtualuser` > > **password:** `test` Launch this script: ```sh /srv/custom/main.sh ``` Once it concluded successfully shut down the VM. Use the image of the first VM as a base and create 3 different linked volumes: ```sh qemu-img create -f qcow2 -b baseImage.qcow2 deltaImage.qcow2 ``` Create 3 clones of the base VM and associate at each one a delta image. Beware that each VM **_must_** have a different MAC address. Launch the 3 VM clones and in one of them (usually the first) login and then install Rancher: Login without polluting the _known hosts_ file: ```sh ssh virtualuser@ipAddress -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" ``` Add an unique _hostname_ to each VM: ```sh hostnamectl set-hostname unique-hname-101 ``` And then launch this to install Rancher: ```sh docker run -d --restart=unless-stopped -p 80:80 -p 443:443 --privileged rancher/rancher ```