This script will create a Debian iso install with preseed configuration. It can then be used to install debian withuot user interaction.
First check prerequisites
Next we need to generate a setup file that will be run at server after installation. After running VM you should be able to use ssh without password Optional: make your changes to the file setup.sh and preseed.cfg
cd src/LinuxIsoWithPreseed
bash generate_default.sh
cd Debian_11
bash run.sh
Create a Virtual Machine based on the new ISO
xorriso installed
sudo apt install xorriso
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon
- Configured for US language and keyboard
- Use entire disk (/dev/sda)
- Don't create swap partition
- Install base system with ssh-server
In folder vm there is an script example that will build vm with Debian preseed ISO
- Configured for US language but with dansih keyboard / locales
- Use entire disk (/dev/sda)
- Don't create swap partition
- Install base system with ssh-server
- Look at example https://www.debian.org/releases/bullseye/example-preseed.txt
- Read manual https://www.debian.org/releases/stable/amd64/apb.en.html
- Root password = r00tme
virt manager installed sudo apt install virt-manager -y
Passwordless access
sudo usermod --append --groups libvirt $(whoami)