2023-12-19 12:28:22 +00:00
|
|
|
#!/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 \
|
2023-12-19 22:37:59 +00:00
|
|
|
https://ftp.debian.org/debian/dists/bookworm/main/installer-amd64/20230607/images/netboot/netboot.tar.gz
|
2023-12-19 12:28:22 +00:00
|
|
|
|
|
|
|
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
|