fix: lock version of netboot and cwd of http server
This commit is contained in:
parent
99da5a4429
commit
cb910c5186
3 changed files with 5 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
|
# D-I config version 2.0
|
||||||
serial 0
|
serial 0
|
||||||
prompt 0
|
prompt 0
|
||||||
default autoinst
|
default autoinst
|
||||||
label autoinst
|
label autoinst
|
||||||
kernel debian-installer/amd64/linux
|
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
|
||||||
|
|
||||||
|
|
|
@ -3,15 +3,14 @@
|
||||||
tmux new-session -d -s machine_install_log_server 'nc -ul 10514'
|
tmux new-session -d -s machine_install_log_server 'nc -ul 10514'
|
||||||
|
|
||||||
# start http server
|
# 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
|
# run once qemu to install the system
|
||||||
|
|
||||||
qemu-system-x86_64 \
|
qemu-system-x86_64 \
|
||||||
-accel kvm \
|
-accel kvm \
|
||||||
-hda ./main.qcow \
|
-hda ./main.qcow \
|
||||||
-cpu host \
|
-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 \
|
-device e1000,netdev=net0,mac=52:54:98:76:54:32 \
|
||||||
-boot once=n \
|
-boot once=n \
|
||||||
-m 2048 \
|
-m 2048 \
|
||||||
|
|
|
@ -8,7 +8,7 @@ mkdir machines/machine01.local/tftp_container
|
||||||
|
|
||||||
wget \
|
wget \
|
||||||
-O ./machines/machine01.local/tftp_container/netboot.tar.gz \
|
-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/
|
tar -xzvf ./machines/machine01.local/tftp_container/netboot.tar.gz -C ./machines/machine01.local/tftp_container/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue