#!/usr/bin/sh # Download and extract netboot image mkdir -p machines/machine01.local mkdir machines/machine01.local/tftp_container wget \ -O ./machines/machine01.local/tftp_container/netboot.tar.gz \ https://deb.debian.org/debian/dists/bookworm/main/installer-amd64/current/images/netboot/netboot.tar.gz tar -xzvf ./machines/machine01.local/tftp_container/netboot.tar.gz -C ./machines/machine01.local/tftp_container/ # create base image qemu-img create -f qcow2 ./machines/machine01.local/main.qcow 5G cp ./install_machine.sh ./machines/machine01.local/ cp ./debian_install_config_default ./machines/machine01.local/tftp_container/debian-installer/amd64/pxelinux.cfg/default