[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to setup a small local Debian mirror to install a VM without an internet access



Le 05/10/2019 à 08:51, David a écrit :
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.

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.

For me it's the lazy way to have local mirrors without doing any
admin work myself.

When I create a VM, I just specify the approx server, and
the VM installs without internet access, only localhost or LAN access.

The link below mentions other similar packages but I have not tried them.

[1] https://packages.debian.org/buster/approx

    Thanks David for your suggestion, but my server hosting my VM don't have an Internet access, and setup a proxy server like approx would require network resources/configuration I can't get…

        Fred.



Reply to: