On Mon, Jul 04, 2011 at 09:11:56AM +0200, Wouter Verhelst wrote:
> Package: apt-cacher
> Version: 1.6.12
> Severity: important
> 
> Hi,
> 
> I'm working on some d-i patches, and in order to avoid having to wait
> for the installer all the time while it downloads udebs or the base
> system, I installed apt-cacher on my laptop, so that the virtualbox
> instances where the installer was running could fetch their udebs from
> the apt-cacher cache.

Sounds a good idea. However, the imminent 1.7.0 release (rc1 already in 
experimental) will officially deprecate CGI mode. If you want to avoid a 
permanently running daemon, I would suggest inetd daemon mode is better.

> Originally I tried to run it from apache, and preseeded '10.0.2.2' as
> the hostname of my mirror. Unfortunately that didn't work; the
> apt-cacher error.log contains the following as a result of that attempt:

By preseeded you mean passed to the d-i running on virtualbox? 
Have you configured an upstream proxy for apt-cacher itself?
What are you passing as your mirror? I from what I can glean here, I think it 
should be

 http://10.0.2.2/apt-cacher/ftp.be.debian

A similar thing works for me using debootstrap and 1.7.0.rc1

> Mon Jul  4 08:42:25 2011|info [11577]: Unable to connect to 10.0.2.2
> Mon Jul  4 08:44:19 2011|info [22940]: Unable to connect to 10.0.2.2
> Mon Jul  4 08:45:35 2011|info [22952]: Unable to connect to 10.0.2.2

Could you enable apt-cacher debugging so we can see a little more of 
what requests are actually getting through.

> For reference, 10.0.2.2 is the IP address that virtualbox hands to guest
> instances as their default route. Using it will reach you the host OS,
> but the host OS itself is not aware of that fact; virtualbox will do NAT
> for guest machines.

I have no experience with virtualbox, but I will see if I can get a 
working installation to replicate later on.

Mark



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to