qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 1/6] tests/vm: netbsd autoinstall, using serial console


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v1 1/6] tests/vm: netbsd autoinstall, using serial console
Date: Mon, 4 Nov 2019 19:57:44 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1

On 11/4/19 6:36 PM, Alex Bennée wrote:
From: Gerd Hoffmann <address@hidden>

Instead of fetching the prebuilt image from patchew download the install
iso and prepare the image locally.  Install to disk, using the serial
console.  Create qemu user, configure ssh login.  Install packages
needed for qemu builds.

It would be nice to be able to mount some host directory as target ccachedir and use ccache within the VM.

Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Kamil Rytarowski <address@hidden>
Tested-by: Thomas Huth <address@hidden>
[ehabkost: rebased to latest qemu.git master]
Signed-off-by: Eduardo Habkost <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
---
  tests/vm/netbsd | 189 +++++++++++++++++++++++++++++++++++++++++++++---
  1 file changed, 179 insertions(+), 10 deletions(-)

diff --git a/tests/vm/netbsd b/tests/vm/netbsd
index 18aa56ae826..5e04dcd9b16 100755
--- a/tests/vm/netbsd
+++ b/tests/vm/netbsd
@@ -2,10 +2,11 @@
  #
  # NetBSD VM image
  #
-# Copyright 2017 Red Hat Inc.
+# Copyright 2017-2019 Red Hat Inc.
  #
  # Authors:
  #  Fam Zheng <address@hidden>
+#  Gerd Hoffmann <address@hidden>
  #
  # This code is licensed under the GPL version 2 or later.  See
  # the COPYING file in the top-level directory.
@@ -13,20 +14,53 @@
import os
  import sys
+import time
  import subprocess
  import basevm
class NetBSDVM(basevm.BaseVM):
      name = "netbsd"
      arch = "x86_64"
+
+    link = 
"https://cdn.netbsd.org/pub/NetBSD/NetBSD-8.0/images/NetBSD-8.0-amd64.iso";
+    size = "20G"
+    pkgs = [
+        # tools
+        "git-base",
+        "pkgconf",
+        "xz",
+        "python37",
+
+        # gnu tools
+        "bash",
+        "gmake",
+        "gsed",
+        "flex", "bison",
+
+        # libs: crypto
+        "gnutls",
+
+        # libs: images
+        "jpeg",
+        "png",
+
+       # libs: ui
+        "SDL2",
+        "gtk3+",
+        "libxkbcommon",
+    ]
[...]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]