diff --git a/debian_install_config_default b/debian_install_config_default index d5a1e3c..b32ad47 100644 --- a/debian_install_config_default +++ b/debian_install_config_default @@ -1,7 +1,7 @@ +# D-I config version 2.0 serial 0 prompt 0 default autoinst label autoinst kernel debian-installer/amd64/linux -append initrd=debian-installer/amd64/initrd.gz auto=true priority=critical passwd/root-password-crypted=$1$xyz$DmhsqGaszAgaWtFIa9J... DEBIAN_FRONTEND=text url=http://10.0.2.2:4321/preseed.cfg log_host=10.0.2.2 log_port=10514 --- console=ttyS0 - +append initrd=debian-installer/amd64/initrd.gz auto=true priority=critical passwd/root-password-crypted=$1$xyz$22TskSoY/HlFnsqCYCaNx1 DEBIAN_FRONTEND=text url=http://10.0.2.2:4321/preseed.cfg log_host=10.0.2.2 log_port=10514 --- console=ttyS0 diff --git a/install_machine.sh b/install_machine.sh index a9204b0..1b526bc 100755 --- a/install_machine.sh +++ b/install_machine.sh @@ -3,15 +3,14 @@ tmux new-session -d -s machine_install_log_server 'nc -ul 10514' # start http server -tmux new-session -d -s machine_install_http_server 'python3 -m http.server 4321' +tmux new-session -d -s machine_install_http_server -c ./files_to_serve 'python3 -m http.server 4321' # run once qemu to install the system - qemu-system-x86_64 \ -accel kvm \ -hda ./main.qcow \ -cpu host \ - -netdev user,id=net0,net=10.0.2.0/24,hostname=sandboxhost,domainname=localdomain,tftp=./tftpserver_container,bootfile=/pxelinux.0 \ + -netdev user,id=net0,net=10.0.2.0/24,hostname=sandboxhost,domainname=localdomain,tftp=./tftp_container,bootfile=/pxelinux.0 \ -device e1000,netdev=net0,mac=52:54:98:76:54:32 \ -boot once=n \ -m 2048 \ diff --git a/setup_workspace.sh b/setup_workspace.sh index 3e09514..a102611 100755 --- a/setup_workspace.sh +++ b/setup_workspace.sh @@ -8,7 +8,7 @@ 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 + https://ftp.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/