[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1 05/17] tests/vm: send proxy environment varia
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [PATCH v1 05/17] tests/vm: send proxy environment variables over ssh |
Date: |
Thu, 20 Jun 2019 12:38:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 6/19/19 9:40 PM, Alex Bennée wrote:
> From: Gerd Hoffmann <address@hidden>
>
> Packages are fetched via proxy that way, if configured on the host.
> That might be required to pass firewalls, and it allows to route
> package downloads through a caching proxy server.
>
> Needs AcceptEnv setup in sshd_config on the guest side to work.
>
> Signed-off-by: Gerd Hoffmann <address@hidden>
> Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
> Tested-by: Thomas Huth <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
> Message-Id: <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
> ---
> tests/vm/basevm.py | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
> index 4847549592..5e30bac661 100755
> --- a/tests/vm/basevm.py
> +++ b/tests/vm/basevm.py
> @@ -38,6 +38,13 @@ class BaseVM(object):
> GUEST_PASS = "qemupass"
> ROOT_PASS = "qemupass"
>
> + envvars = [
> + "https_proxy",
> + "http_proxy",
> + "ftp_proxy",
> + "no_proxy",
> + ]
> +
> # The script to run in the guest that builds QEMU
> BUILD_SCRIPT = ""
> # The guest name, to be overridden by subclasses
> @@ -106,6 +113,8 @@ class BaseVM(object):
> "-o", "UserKnownHostsFile=" + os.devnull,
> "-o", "ConnectTimeout=1",
> "-p", self.ssh_port, "-i", self._ssh_key_file]
> + for var in self.envvars:
> + ssh_cmd += ['-o', "SendEnv=%s" % var ]
> if interactive:
> ssh_cmd += ['-t']
> assert not isinstance(cmd, str)
>
- Re: [Qemu-devel] [PATCH v1 02/17] tests/vm: avoid image presence check and removal, (continued)
- [Qemu-devel] [PATCH v1 03/17] tests/vm: pin ubuntu.i386 image, Alex Bennée, 2019/06/19
- [Qemu-devel] [PATCH v1 08/17] tests/vm: proper guest shutdown, Alex Bennée, 2019/06/19
- [Qemu-devel] [PATCH v1 10/17] tests/vm: serial console support helpers, Alex Bennée, 2019/06/19
- [Qemu-devel] [PATCH v1 14/17] tests/vm: fedora autoinstall, using serial console, Alex Bennée, 2019/06/19
- [Qemu-devel] [PATCH v1 07/17] tests/vm: run test builds on snapshot, Alex Bennée, 2019/06/19
- [Qemu-devel] [PATCH v1 06/17] tests/vm: use ssh with pty unconditionally, Alex Bennée, 2019/06/19
- [Qemu-devel] [PATCH v1 05/17] tests/vm: send proxy environment variables over ssh, Alex Bennée, 2019/06/19
- Re: [Qemu-devel] [PATCH v1 05/17] tests/vm: send proxy environment variables over ssh,
Philippe Mathieu-Daudé <=
- [Qemu-devel] [PATCH v1 09/17] tests/vm: add vm-boot-{ssh, serial}-<guest> targets, Alex Bennée, 2019/06/19
- [Qemu-devel] [PATCH v1 17/17] .travis.yml: force a brew update for MacOS builds, Alex Bennée, 2019/06/19
- [Qemu-devel] [PATCH v1 13/17] tests/vm: netbsd autoinstall, using serial console, Alex Bennée, 2019/06/19
- [Qemu-devel] [PATCH v1 15/17] tests/vm: ubuntu.i386: apt proxy setup, Alex Bennée, 2019/06/19
- [Qemu-devel] [PATCH v1 12/17] tests/vm: freebsd autoinstall, using serial console, Alex Bennée, 2019/06/19
- [Qemu-devel] [PATCH v1 11/17] tests/vm: openbsd autoinstall, using serial console, Alex Bennée, 2019/06/19
- [Qemu-devel] [PATCH v1 16/17] .travis.yml: default the --disable-system build to --static, Alex Bennée, 2019/06/19