[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 13/13] tests/vm: ubuntu.i386: apt proxy setup
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH 13/13] tests/vm: ubuntu.i386: apt proxy setup |
Date: |
Thu, 9 May 2019 15:17:30 +0200 |
User-agent: |
NeoMutt/20180716 |
On Thu, May 09, 2019 at 02:12:11PM +0200, Philippe Mathieu-Daudé wrote:
> On 5/8/19 10:56 AM, Gerd Hoffmann wrote:
> > Configure apt proxy so package downloads
> > can be cached and can pass firewalls.
>
> Yay \o/
>
> >
> > Signed-off-by: Gerd Hoffmann <address@hidden>
> > ---
> > tests/vm/ubuntu.i386 | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/tests/vm/ubuntu.i386 b/tests/vm/ubuntu.i386
> > index a22d137e76df..b869afd212fa 100755
> > --- a/tests/vm/ubuntu.i386
> > +++ b/tests/vm/ubuntu.i386
> > @@ -51,6 +51,10 @@ class UbuntuX86VM(basevm.BaseVM):
> > " ssh-authorized-keys:\n",
> > " - %s\n" % basevm.SSH_PUB_KEY,
> > "locale: en_US.UTF-8\n"])
> > + proxy = os.environ.get("http_proxy")
>
> Some users only use 'https_proxy' (or FTP):
> https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg08413.html
Well, this configures apt only, and the apt repos are configured
to use http. So for package installs we are all set.
We might additionally setup AcceptEnv in sshd_config (i.e. basically do
the same thing console_sshd_config() in basevm.py does for serial
console installs) so proxy evironment pass-through works for ubuntu ssh
logins too. I didn't see a strong need for that with package downloads
being covered already, so I didn't try ...
cheers,
Gerd
- [Qemu-devel] [PATCH 04/13] tests/vm: use ssh with pty unconditionally, (continued)
- [Qemu-devel] [PATCH 04/13] tests/vm: use ssh with pty unconditionally, Gerd Hoffmann, 2019/05/08
- [Qemu-devel] [PATCH 02/13] tests/vm: send proxy environment variables over ssh, Gerd Hoffmann, 2019/05/08
- [Qemu-devel] [PATCH 01/13] scripts: use git archive in archive-source, Gerd Hoffmann, 2019/05/08
- [Qemu-devel] [PATCH 07/13] tests/vm: add DEBUG=1 to help text, Gerd Hoffmann, 2019/05/08
- [Qemu-devel] [PATCH 12/13] tests/vm: fedora autoinstall, using serial console, Gerd Hoffmann, 2019/05/08
- [Qemu-devel] [PATCH 13/13] tests/vm: ubuntu.i386: apt proxy setup, Gerd Hoffmann, 2019/05/08
- [Qemu-devel] [PATCH 08/13] tests/vm: serial console support helpers, Gerd Hoffmann, 2019/05/08
- [Qemu-devel] [PATCH 05/13] tests/vm: run test builds on snapshot, Gerd Hoffmann, 2019/05/08
- [Qemu-devel] [PATCH 06/13] tests/vm: add vm-boot-{ssh, serial}-<guest> targets, Gerd Hoffmann, 2019/05/08
- [Qemu-devel] [PATCH 10/13] tests/vm: freebsd autoinstall, using serial console, Gerd Hoffmann, 2019/05/08
- [Qemu-devel] [PATCH 11/13] tests/vm: netbsd autoinstall, using serial console, Gerd Hoffmann, 2019/05/08