Hi guys,
i'm facing a issue i can't solved myself.
I've created a Test Environment. 2 PCs one Huawei Access Switch.
PC1: PXE Master
Has the DHCP Server and tftp and a Webserver.
The Webserver /var/www/html/debian12 contains a full DVD of Debian Bookworm.
No i'm serving the netboot Image over the Network to the PC2. iPXE starts and loads all the required files.that works fine. After that it installs the BASE System but until i reach the "Configure Package manager" it says failed to download file.
If i hit ignore, it completes the installation. But i do not want to press 2000 Times "Ignore" while i want to install all 2000 Machines.
I know someone will say connect them to the internet but that is not a option because the machines are in a VLAN without a connection to the outside world. That's why i though i can just install from a Full DVD to make the System work as minimal.
My Test Preseed:I've also tested to sign the DVD aka Local Mirror. But then it never downloads ( d-i apt-setup/local0/key string http://192.168.1.1/debian12/public.key | Also public.asc or public.gpg tested because i thought maybe the filename is the reason) the public key then ends with the error NO PUBLIC KEY AVAILABLE
I've also tested to workaround it to put the Public Key already inside the initrd - Same error
Also this Early Command i've tested:but that faileds too because the directories not available at that moment the early command will be executed.
So after 2 Weeks of testing i'm thinking that's not possible to install Debian with a local Mirror based of a full DVD...Am i right?
i'm facing a issue i can't solved myself.
I've created a Test Environment. 2 PCs one Huawei Access Switch.
PC1: PXE Master
Has the DHCP Server and tftp and a Webserver.
The Webserver /var/www/html/debian12 contains a full DVD of Debian Bookworm.
No i'm serving the netboot Image over the Network to the PC2. iPXE starts and loads all the required files.
Code:
kernel \${base-url}/install.amd/vmlinuz interface=auto auto-install/enable=true auto=true priority=critical hostname=testsystem vga=788 initrd=initrd.magic preseed/url=\${preseed-url} url=\${preseed-url} hw-detect/load_firmware=trueinitrd http://\${next-server}/firmware/new2-initrd.gz
If i hit ignore, it completes the installation. But i do not want to press 2000 Times "Ignore" while i want to install all 2000 Machines.
I know someone will say connect them to the internet but that is not a option because the machines are in a VLAN without a connection to the outside world. That's why i though i can just install from a Full DVD to make the System work as minimal.
My Test Preseed:
Code:
# Repository configurationd-i debian-installer/allow_unauthenticated boolean trued-i clock-setup/ntp boolean falsed-i debconf/priority string criticald-i apt-setup/services-select multiselect# Mirror settingsd-i mirror/country string manuald-i mirror/http/hostname string 192.168.1.1d-i mirror/http/directory string /debian12d-i mirror/http/proxy string[/b]
I've also tested to workaround it to put the Public Key already inside the initrd - Same error
Also this Early Command i've tested:
Code:
d-i preseed/early_command string wget -O /tmp/apt_patching_pub.gpg http://192.168.1.1/debian12/public.gpg; \echo -e "cp /tmp/apt_patching_pub.gpg /target/tmp/apt_patching_pub.gpg\nchroot /target /bin/bash -c '/bin/cp /tmp/apt_patching_pub.gpg /etc/apt/trusted.gpg.d/'" > /usr/lib/apt-setup/generators/001add-key; \chmod +x /usr/lib/apt-setup/generators/001add-key
So after 2 Weeks of testing i'm thinking that's not possible to install Debian with a local Mirror based of a full DVD...Am i right?
Statistics: Posted by Conan_Doyl — 2024-08-09 10:59 — Replies 3 — Views 100