[elbe-devel] Howto add a local apt-cacher to initvm?

John Ogness john.ogness at linutronix.de
Fri May 20 13:42:49 CEST 2022


Hi Erich,

On 2022-05-20, ew.foe at nassur.net wrote:
> I would like to advise initvm in such a way, that it would be using a
> locally available apt-cacher-ng for downloads.

I do these 2 things to achieve this:

1. Before doing any elbe commands, I export the "http_proxy" environment
variable:

export http_proxy="http://192.168.42.42:8888"

2. In the XML file for the target image I add the "primary_proxy"
element (right after "primary_proto"):

       ...
       <primary_proto>http</primary_proto>
+      <primary_proxy>http://192.168.42.42:8888</primary_proxy>
       <url-list>
       ...

John Ogness


More information about the elbe-devel mailing list