On 10/5/2019 8:51 AM, David wrote: > On Thu, 3 Oct 2019 at 02:23, Fred Boiteux <fbp...@free.fr> wrote: > >> I'm trying to install automatically (using preseed) a Debian Buster 10.1 >> system on a VM hosted on a system without internet access, using a netboot. > >> Thanks to Steve McIntyre explanations (see #940801), I know how to >> update the netboot's initrd to include the virtio_blk driver, and the >> debian installer is now well detecting the VM's disk, and after >> partitionning it, it tries to download some Debian packages to install a >> minimal system on this new disk. For this purpose, i've setup a local >> Debian mirror copying the files on DVD-1 debian installer, but the >> debian-installer refuse to use it, because it's not GPG-signed, and so >> fails to install any package : > > Hi Fred, > > I am unsure from your message exactly how much network access you > may or may not have for your required VM install operations, so the > below suggestion might be useless for you, but I will send it anyway > on the chance it helps you. >
Approxy/apt-cacher-ng could be installed as an vm and the preseed file would reference that mirror. > On my main PC (just a desktop with some TB HDD) on my LAN I run > an 'approx" server[1]. In every /etc/apt/sources.list (on that machine and > every other machine) there are only references to that server (nothing > outside the LAN, no deb.debian.org or security.debian.org), so every > Debian package that I install on any machine is then cached by the > approx server and after that can be served to any other machine. > > The approx server config file is the only place where deb.debian.org > and security.debian.org is written. It can work with other repos, for example > I configured mine to also cache raspberrypi.org. It does not download > the entire repo, it just caches what is used and downloads the misses. > apt-cacher-ng includes the ability to add from an iso file. If you need to use your own pkgs, the following URL might help you: https://wiki.debian.org/DebianEdu/HowTo/NetbootInstall That is, include your gpg key in initrd.gz. -- John Doe