[Qemu-devel] [PATCH v4 00/11] tests/vm: serial console autoinstall, misc fixes.

Gerd Hoffmann posted 11 patches 4 years, 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190617043858.8290-1-kraxel@redhat.com
Test s390x passed
Test checkpatch passed
Test asan passed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu passed
Test FreeBSD passed
Maintainers: Brad Smith <brad@comstyle.com>, "Alex Bennée" <alex.bennee@linaro.org>, "Philippe Mathieu-Daudé" <philmd@redhat.com>, Kamil Rytarowski <kamil@netbsd.org>, Fam Zheng <fam@euphon.net>
tests/vm/basevm.py        | 135 +++++++++++++++++++++++----
tests/vm/Makefile.include |  23 ++++-
tests/vm/fedora           | 189 ++++++++++++++++++++++++++++++++++++++
tests/vm/freebsd          | 180 ++++++++++++++++++++++++++++++++++--
tests/vm/netbsd           | 187 +++++++++++++++++++++++++++++++++++--
tests/vm/openbsd          | 159 +++++++++++++++++++++++++++++---
tests/vm/ubuntu.i386      |   4 +
7 files changed, 825 insertions(+), 52 deletions(-)
create mode 100755 tests/vm/fedora
[Qemu-devel] [PATCH v4 00/11] tests/vm: serial console autoinstall, misc fixes.
Posted by Gerd Hoffmann 4 years, 10 months ago
This patch series changes the way virtual machines for test builds are
managed.  They are created locally on the developer machine now.  The
installer is booted on the serial console and the scripts walks through
the dialogs to install and configure the guest.

That takes the download.patchew.org server out of the loop and makes it
alot easier to tweak the guest images (adding build dependencies for
example).

The install scripts take care to apply host proxy settings (from *_proxy
environment variables) to the guest, so any package downloads will be
routed through the proxy and can be cached that way.  This also makes
them work behind strict firewalls.

There are also a bunch of smaller tweaks for tests/vm to fix issues I
was struggling with.  See commit messages of individual patches for
details.

v4:
 - rebase, drop patches merged.
 - use in-tree seabios binary, for serial console support.
 - some minor tweaks.
v3:
 - python3 fixes.
 - openbsd: configure memory limits.
 - freebsd: configure autoboot delay.

Gerd Hoffmann (11):
  tests/vm: send proxy environment variables over ssh
  tests/vm: use ssh with pty unconditionally
  tests/vm: run test builds on snapshot
  tests/vm: proper guest shutdown
  tests/vm: add vm-boot-{ssh,serial}-<guest> targets
  tests/vm: serial console support helpers
  tests/vm: openbsd autoinstall, using serial console
  tests/vm: freebsd autoinstall, using serial console
  tests/vm: netbsd autoinstall, using serial console
  tests/vm: fedora autoinstall, using serial console
  tests/vm: ubuntu.i386: apt proxy setup

 tests/vm/basevm.py        | 135 +++++++++++++++++++++++----
 tests/vm/Makefile.include |  23 ++++-
 tests/vm/fedora           | 189 ++++++++++++++++++++++++++++++++++++++
 tests/vm/freebsd          | 180 ++++++++++++++++++++++++++++++++++--
 tests/vm/netbsd           | 187 +++++++++++++++++++++++++++++++++++--
 tests/vm/openbsd          | 159 +++++++++++++++++++++++++++++---
 tests/vm/ubuntu.i386      |   4 +
 7 files changed, 825 insertions(+), 52 deletions(-)
 create mode 100755 tests/vm/fedora

-- 
2.18.1


Re: [Qemu-devel] [PATCH v4 00/11] tests/vm: serial console autoinstall, misc fixes.
Posted by Alex Bennée 4 years, 10 months ago
Gerd Hoffmann <kraxel@redhat.com> writes:

> This patch series changes the way virtual machines for test builds are
> managed.  They are created locally on the developer machine now.  The
> installer is booted on the serial console and the scripts walks through
> the dialogs to install and configure the guest.

I've tested this on the previously failing box and it works fine.

Queued to testing/next, thanks.


>
> That takes the download.patchew.org server out of the loop and makes it
> alot easier to tweak the guest images (adding build dependencies for
> example).
>
> The install scripts take care to apply host proxy settings (from *_proxy
> environment variables) to the guest, so any package downloads will be
> routed through the proxy and can be cached that way.  This also makes
> them work behind strict firewalls.
>
> There are also a bunch of smaller tweaks for tests/vm to fix issues I
> was struggling with.  See commit messages of individual patches for
> details.
>
> v4:
>  - rebase, drop patches merged.
>  - use in-tree seabios binary, for serial console support.
>  - some minor tweaks.
> v3:
>  - python3 fixes.
>  - openbsd: configure memory limits.
>  - freebsd: configure autoboot delay.
>
> Gerd Hoffmann (11):
>   tests/vm: send proxy environment variables over ssh
>   tests/vm: use ssh with pty unconditionally
>   tests/vm: run test builds on snapshot
>   tests/vm: proper guest shutdown
>   tests/vm: add vm-boot-{ssh,serial}-<guest> targets
>   tests/vm: serial console support helpers
>   tests/vm: openbsd autoinstall, using serial console
>   tests/vm: freebsd autoinstall, using serial console
>   tests/vm: netbsd autoinstall, using serial console
>   tests/vm: fedora autoinstall, using serial console
>   tests/vm: ubuntu.i386: apt proxy setup
>
>  tests/vm/basevm.py        | 135 +++++++++++++++++++++++----
>  tests/vm/Makefile.include |  23 ++++-
>  tests/vm/fedora           | 189 ++++++++++++++++++++++++++++++++++++++
>  tests/vm/freebsd          | 180 ++++++++++++++++++++++++++++++++++--
>  tests/vm/netbsd           | 187 +++++++++++++++++++++++++++++++++++--
>  tests/vm/openbsd          | 159 +++++++++++++++++++++++++++++---
>  tests/vm/ubuntu.i386      |   4 +
>  7 files changed, 825 insertions(+), 52 deletions(-)
>  create mode 100755 tests/vm/fedora


--
Alex Bennée

Re: [Qemu-devel] [PATCH v4 00/11] tests/vm: serial console autoinstall, misc fixes.
Posted by Alex Bennée 4 years, 10 months ago
Gerd Hoffmann <kraxel@redhat.com> writes:

> This patch series changes the way virtual machines for test builds are
> managed.  They are created locally on the developer machine now.  The
> installer is booted on the serial console and the scripts walks through
> the dialogs to install and configure the guest.
>
> That takes the download.patchew.org server out of the loop and makes it
> alot easier to tweak the guest images (adding build dependencies for
> example).
>
> The install scripts take care to apply host proxy settings (from *_proxy
> environment variables) to the guest, so any package downloads will be
> routed through the proxy and can be cached that way.  This also makes
> them work behind strict firewalls.
>
> There are also a bunch of smaller tweaks for tests/vm to fix issues I
> was struggling with.  See commit messages of individual patches for
> details.
>
> v4:
>  - rebase, drop patches merged.
>  - use in-tree seabios binary, for serial console support.
>  - some minor tweaks.
> v3:
>  - python3 fixes.
>  - openbsd: configure memory limits.
>  - freebsd: configure autoboot delay.
>
<snip>
>   tests/vm: openbsd autoinstall, using serial console
>   tests/vm: freebsd autoinstall, using serial console
>   tests/vm: netbsd autoinstall, using serial console
>   tests/vm: fedora autoinstall, using serial console

For reference there are some minor conflicts with Cleber's copy cleanups
currently in my testing/next. The easiest fix was to apply to a clean
origin/master and then rebase it so I could deal with the conflicts in
git.

Currently testing it out:

  https://github.com/stsquad/qemu/tree/review/test-vm-serial-v4

--
Alex Bennée