#!/usr/bin/sh # Download and extract netboot image mkdir -p machines/machine01.local ln -f -s $(pwd)/files_to_serve/ ./machines/machine01.local/files_to_serve 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/20230607/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 ./run_usernet.sh ./machines/machine01.local/run.sh cp ./debian_install_config_default ./machines/machine01.local/tftp_container/debian-installer/amd64/pxelinux.cfg/default