From nobody Thu Nov 13 23:13:03 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1583829334; cv=none; d=zohomail.com; s=zohoarc; b=ZxczN0JkF8JRM7YOhyrk+aCAU/d+Q4t21OfZL+iJqbPbz9cvwjJtklEWCE3A23sfNQvQUvO+On6oeaBdA3mEwbtcMvBKeNrfDmuSZbv0/gkB7o2B5syl5XhwWLEhKssSUFXfjJkgNVTlFnFfsWvYXiF6r3/GRb3uK6+1ZZK0OZo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583829334; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=NOcQ63OgzqIDc13B4UUajPYNBSN7JfR6j847LWhFxL8=; b=S5aaGfnxP4qfjdJjgTA+vVD+x3F3kvMffJRVhwMqJtSMsV/Estn6XMyxlq0LLWt8+4IKjxLYFQHwx7VS7RqS+/BCCyTzmpIpEmAsY+4FuVGqRUa6xYjdjBYg/Zjk7WwsRRcD9vzvoFS6YNFLkdM5UHCK0vx8E+Lhc5QceEhtsgs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1583829334728858.441959341708; Tue, 10 Mar 2020 01:35:34 -0700 (PDT) Received: from localhost ([::1]:55292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBaMO-0008O8-Cz for importer@patchew.org; Tue, 10 Mar 2020 04:35:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39920) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBaJO-0004g3-1r for qemu-devel@nongnu.org; Tue, 10 Mar 2020 04:32:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBaJM-0003ZH-Uq for qemu-devel@nongnu.org; Tue, 10 Mar 2020 04:32:25 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:56495 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jBaJM-0003YO-RH for qemu-devel@nongnu.org; Tue, 10 Mar 2020 04:32:24 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-401-gZmO1iEQMpyIbcjJaNg7QQ-1; Tue, 10 Mar 2020 04:32:22 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A4C328017CC; Tue, 10 Mar 2020 08:32:21 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-117.ams2.redhat.com [10.36.116.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id E7C475C28F; Tue, 10 Mar 2020 08:32:18 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 27AC39D24; Tue, 10 Mar 2020 09:32:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583829144; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NOcQ63OgzqIDc13B4UUajPYNBSN7JfR6j847LWhFxL8=; b=QdaPFK9Bv+AsrO+GeMp0/VCEfUjP39FeesRKekMXbX7cBj53oYe3fBqtArnrWCwVYZUH30 cH/KEB5raQA8ebHSUiCSk+THAM2XNGbJYH0d6SEWF7cWdRQKHOPnhsq8CzwoNUmdWXpOIl FDzNpr5ZyEsH+9LzHS+FTyyOLbHolgA= X-MC-Unique: gZmO1iEQMpyIbcjJaNg7QQ-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 1/4] tests/vm: write raw console log Date: Tue, 10 Mar 2020 09:32:15 +0100 Message-Id: <20200310083218.26355-2-kraxel@redhat.com> In-Reply-To: <20200310083218.26355-1-kraxel@redhat.com> References: <20200310083218.26355-1-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Kamil Rytarowski , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Gerd Hoffmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Run "tail -f /var/tmp/*/qemu*console.raw" in another terminal to watch the install console. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- tests/vm/basevm.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py index 8400b0e07f65..c53fd354d955 100644 --- a/tests/vm/basevm.py +++ b/tests/vm/basevm.py @@ -213,6 +213,9 @@ class BaseVM(object): def console_init(self, timeout =3D 120): vm =3D self._guest vm.console_socket.settimeout(timeout) + self.console_raw_path =3D os.path.join(vm._temp_dir, + vm._name + "-console.raw") + self.console_raw_file =3D open(self.console_raw_path, 'wb') =20 def console_log(self, text): for line in re.split("[\r\n]", text): @@ -234,6 +237,9 @@ class BaseVM(object): while True: try: chars =3D vm.console_socket.recv(1) + if self.console_raw_file: + self.console_raw_file.write(chars) + self.console_raw_file.flush() except socket.timeout: sys.stderr.write("console: *** read timeout ***\n") sys.stderr.write("console: waiting for: '%s'\n" % expect) --=20 2.18.2 From nobody Thu Nov 13 23:13:03 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1583829265; cv=none; d=zohomail.com; s=zohoarc; b=nZGgvAa1RxRg3TvRMtfRlZebgSJbENuU0vm2jjwUHduFhXAfNnNv2JGo/r4ITjZt3Q7x72qNCzxZTqcVw9R4OkGiPjaTYeQUV0irmJN9ckaqCCXAWsaFCpGDuMVRwpdRqncz6UIILfUPccU9DLlCtVIwKV+V2id6eWDOJa9caXM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583829265; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=iRD6a3P4nr7j+WbXmGylLPfycG/bMaTgxM1cs6Eg84c=; b=AxtyYyvvWZnsptdxPpX10uA5YsuzjfXuWTj7mlACALWDLB84IhQE7vHPO/i6GpvczR6rGU08p9RT6J5ssgu3h7xkwvP2/J7TXGpv43/uTi8Lkn5GInLvs6VA1apJh/HQSOoLcJE9J+Ur0ZyyLmBo3/VmjVVby/oalh2YTIJ14a8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1583829265295257.19578335619656; Tue, 10 Mar 2020 01:34:25 -0700 (PDT) Received: from localhost ([::1]:55274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBaLI-0006NB-0z for importer@patchew.org; Tue, 10 Mar 2020 04:34:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40017) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBaJQ-0004jL-Ak for qemu-devel@nongnu.org; Tue, 10 Mar 2020 04:32:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBaJP-0003hT-2g for qemu-devel@nongnu.org; Tue, 10 Mar 2020 04:32:28 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:48057 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jBaJO-0003gJ-Tv for qemu-devel@nongnu.org; Tue, 10 Mar 2020 04:32:27 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-32-w0JnbOLZPNSwLp75GdgF3g-1; Tue, 10 Mar 2020 04:32:23 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0710B107ACC7; Tue, 10 Mar 2020 08:32:22 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-117.ams2.redhat.com [10.36.116.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id E5A1B5DA66; Tue, 10 Mar 2020 08:32:18 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 371549D25; Tue, 10 Mar 2020 09:32:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583829146; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iRD6a3P4nr7j+WbXmGylLPfycG/bMaTgxM1cs6Eg84c=; b=OP/gqadtD/dqOf8okBQ2w501LmqVH4zoZx/GAYPwoSGHiQyQ+UCDTByK/aF+QtZQyx1dpt ejdlWhMfcKK7Ovb8PNrSs8pW0ti8IEdjzfL6KLxfV7o8kSbK3zWIaEKKb7g5ZAPuLFPiwY mIO1sM2NcCnycJJsRCblqdTgZsYiP/w= X-MC-Unique: w0JnbOLZPNSwLp75GdgF3g-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 2/4] tests/vm: move vga setup Date: Tue, 10 Mar 2020 09:32:16 +0100 Message-Id: <20200310083218.26355-3-kraxel@redhat.com> In-Reply-To: <20200310083218.26355-1-kraxel@redhat.com> References: <20200310083218.26355-1-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 205.139.110.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Kamil Rytarowski , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Gerd Hoffmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Move '-device VGA' from basevm.py to the guests, so they have the chance to opt out and run without display device. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- tests/vm/basevm.py | 1 - tests/vm/fedora | 1 + tests/vm/freebsd | 1 + tests/vm/netbsd | 1 + tests/vm/openbsd | 1 + tests/vm/ubuntu.i386 | 5 ++++- 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py index c53fd354d955..cffe7c4600ed 100644 --- a/tests/vm/basevm.py +++ b/tests/vm/basevm.py @@ -179,7 +179,6 @@ class BaseVM(object): =20 def boot(self, img, extra_args=3D[]): args =3D self._args + [ - "-device", "VGA", "-drive", "file=3D%s,if=3Dnone,id=3Ddrive0,cache=3Dwriteback" = % img, "-device", "virtio-blk,drive=3Ddrive0,bootindex=3D0"] args +=3D self._data_args + extra_args diff --git a/tests/vm/fedora b/tests/vm/fedora index 4843b4175e07..bd9c6cf295c1 100755 --- a/tests/vm/fedora +++ b/tests/vm/fedora @@ -82,6 +82,7 @@ class FedoraVM(basevm.BaseVM): self.boot(img_tmp, extra_args =3D [ "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=3Doff", + "-device", "VGA", "-cdrom", iso ]) self.console_init(300) diff --git a/tests/vm/freebsd b/tests/vm/freebsd index 86770878b67b..58166766d915 100755 --- a/tests/vm/freebsd +++ b/tests/vm/freebsd @@ -92,6 +92,7 @@ class FreeBSDVM(basevm.BaseVM): self.boot(img_tmp, extra_args =3D [ "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=3Doff", + "-device", "VGA", "-cdrom", iso ]) self.console_init() diff --git a/tests/vm/netbsd b/tests/vm/netbsd index 55590f460152..f3257bc245a3 100755 --- a/tests/vm/netbsd +++ b/tests/vm/netbsd @@ -86,6 +86,7 @@ class NetBSDVM(basevm.BaseVM): self.boot(img_tmp, extra_args =3D [ "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=3Doff", + "-device", "VGA", "-cdrom", iso ]) self.console_init() diff --git a/tests/vm/openbsd b/tests/vm/openbsd index ab6abbedab57..0b705f494527 100755 --- a/tests/vm/openbsd +++ b/tests/vm/openbsd @@ -82,6 +82,7 @@ class OpenBSDVM(basevm.BaseVM): self.boot(img_tmp, extra_args =3D [ "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=3Doff", + "-device", "VGA", "-cdrom", iso ]) self.console_init() diff --git a/tests/vm/ubuntu.i386 b/tests/vm/ubuntu.i386 index 3266038fbde5..157077533532 100755 --- a/tests/vm/ubuntu.i386 +++ b/tests/vm/ubuntu.i386 @@ -36,7 +36,10 @@ class UbuntuX86VM(basevm.BaseVM): img_tmp =3D img + ".tmp" subprocess.check_call(["cp", "-f", cimg, img_tmp]) self.exec_qemu_img("resize", img_tmp, "50G") - self.boot(img_tmp, extra_args =3D ["-cdrom", self.gen_cloud_init_i= so()]) + self.boot(img_tmp, extra_args =3D [ + "-device", "VGA", + "-cdrom", self.gen_cloud_init_iso() + ]) self.wait_ssh() self.ssh_root_check("touch /etc/cloud/cloud-init.disabled") self.ssh_root_check("apt-get update") --=20 2.18.2 From nobody Thu Nov 13 23:13:03 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1583829278; cv=none; d=zohomail.com; s=zohoarc; b=jyiW9tXydNJNyWbcVsGeyPC70hR4gG2O3Gk7Sy83gi6yXxxsdo/u4Pzya62us0kt1IZJVmva+ZB9xB9wnE3gePPtrDyHVPwNNr1bkaJwZFw1NsIrdR036zVCpJdH0RyoJ9JoReRdVu6L+b/ORu60KLwocqnzCyyVQH+MFV0lRiA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583829278; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=sOVMOqnxDkodmVut3xrgbX07a4xhm8JWDSSQd23JJJE=; b=kSqwDIXlbnMvjHkgU6FPdw+WP+FeaFpQ7A17GHULZqXepbWC3hE2H4v+wZSmE2vQnzDXULKyFb7XlVzmMLHGAjrSl+jzJi7p/AKBSyzIRXV2Ze1dNIDGv2K8ksN/jaxsiLzAe+v5EVeKrYJ7eBkBQkoC7dufSdKlFblgGIwny3A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1583829278909213.70237902801512; Tue, 10 Mar 2020 01:34:38 -0700 (PDT) Received: from localhost ([::1]:55282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBaLV-0006jO-O6 for importer@patchew.org; Tue, 10 Mar 2020 04:34:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40497) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBaJo-000524-Nb for qemu-devel@nongnu.org; Tue, 10 Mar 2020 04:32:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBaJi-0004Po-GE for qemu-devel@nongnu.org; Tue, 10 Mar 2020 04:32:52 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:37585 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jBaJi-0004N5-9D for qemu-devel@nongnu.org; Tue, 10 Mar 2020 04:32:46 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-333-UUIK3UqRM4ioH2PfF2z8uQ-1; Tue, 10 Mar 2020 04:32:22 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9828713F5; Tue, 10 Mar 2020 08:32:21 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-117.ams2.redhat.com [10.36.116.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id E2B0E5C1D4; Tue, 10 Mar 2020 08:32:18 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 3F82F9D26; Tue, 10 Mar 2020 09:32:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583829165; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sOVMOqnxDkodmVut3xrgbX07a4xhm8JWDSSQd23JJJE=; b=AqC1gt8r1Q6LkKe76BkGn7G3+DV8pWkRJlEDFH365HkXi+EKgFJPPc3YAgaK4cyFt1JkqG 7e+1ywspBoZ2BEEK7LcgxxPRV0uPbpwifElh/p8GovDXxwkqtvGlSUEQ7kLlRcT66/Hi02 eqC9DQHaBBjTt/WpAt6PAs2ln9gw3NY= X-MC-Unique: UUIK3UqRM4ioH2PfF2z8uQ-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 3/4] tests/vm: update FreeBSD to 12.1 Date: Tue, 10 Mar 2020 09:32:17 +0100 Message-Id: <20200310083218.26355-4-kraxel@redhat.com> In-Reply-To: <20200310083218.26355-1-kraxel@redhat.com> References: <20200310083218.26355-1-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Kamil Rytarowski , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Gerd Hoffmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Gerd Hoffmann --- tests/vm/freebsd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/vm/freebsd b/tests/vm/freebsd index 58166766d915..298967fe9cf4 100755 --- a/tests/vm/freebsd +++ b/tests/vm/freebsd @@ -24,8 +24,8 @@ class FreeBSDVM(basevm.BaseVM): name =3D "freebsd" arch =3D "x86_64" =20 - link =3D "https://download.freebsd.org/ftp/releases/ISO-IMAGES/12.0/Fr= eeBSD-12.0-RELEASE-amd64-disc1.iso.xz" - csum =3D "1d40015bea89d05b8bd13e2ed80c40b522a9ec1abd8e7c8b80954fb485fb= 99db" + link =3D "https://download.freebsd.org/ftp/releases/ISO-IMAGES/12.1/Fr= eeBSD-12.1-RELEASE-amd64-disc1.iso.xz" + csum =3D "7394c3f60a1e236e7bd3a05809cf43ae39a3b8e5d42d782004cf2f26b1cf= cd88" size =3D "20G" pkgs =3D [ # build tools --=20 2.18.2 From nobody Thu Nov 13 23:13:03 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1583829430; cv=none; d=zohomail.com; s=zohoarc; b=lDUl2YqcjOTs5u5UdwCVhknDbkp9iCZ/Nalbx73/iTPzbZfGNz8QmB4/mWRzUreUBRcH1fxe9SxZbBaTRlL27m8zWmB7cJSmf5Hr5yKcpzYMgfLyWc4T793X5mh+9aIExGZk6wWY/wG6ugUswO1ADSasZOpRwzq/mujbdqLNqRE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583829430; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=umJLVabTlxfOYRdcqqJPgQHpfKmMGvR8MmZg0s3LCOY=; b=UGyc3B6mwox7L/4X/g8p6S0rnewPJlt/n5L1nCJAa7g1gPZR8glE8qhQV/0eCRm2YT+J4IkHcn0Rdqk59svasMZM00cH0hZHUFb40JNaj+ppqtgMqQB/TjzH847SUXVUIvT4vJroTgYjb0zrwyxW1S6vO45JWubgsCQfd5WgAYY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 15838294303271017.4182159364976; Tue, 10 Mar 2020 01:37:10 -0700 (PDT) Received: from localhost ([::1]:55332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBaNx-000344-8Q for importer@patchew.org; Tue, 10 Mar 2020 04:37:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40348) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBaJe-0004ve-FH for qemu-devel@nongnu.org; Tue, 10 Mar 2020 04:32:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBaJd-0004Cr-5B for qemu-devel@nongnu.org; Tue, 10 Mar 2020 04:32:42 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:25943 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jBaJc-0004BO-Sc for qemu-devel@nongnu.org; Tue, 10 Mar 2020 04:32:41 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-304-swIc5mRaMLKyaIn18emcJQ-1; Tue, 10 Mar 2020 04:32:23 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1AD911005513; Tue, 10 Mar 2020 08:32:22 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-117.ams2.redhat.com [10.36.116.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id F305391D6E; Tue, 10 Mar 2020 08:32:18 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 47EE09D3C; Tue, 10 Mar 2020 09:32:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583829160; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=umJLVabTlxfOYRdcqqJPgQHpfKmMGvR8MmZg0s3LCOY=; b=ZYGld0+RYuji3HpDpv2iZlaT7Dm7BgDrqfiaWyC5BNoJDkYN65K2V941ZLUKypqySFZ3gy 47O+u0m3PAXY9ccJRiYl2rAlD5uDznC+yRJMk3Ld7ZSBTM6MiCXGVcZ4Mo4qUrxBrIBnpQ iCjR0DDQ6Z96vTBHyJUOYWyrTJLw0eg= X-MC-Unique: swIc5mRaMLKyaIn18emcJQ-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH 4/4] tests/vm: update NetBSD to 9.0 Date: Tue, 10 Mar 2020 09:32:18 +0100 Message-Id: <20200310083218.26355-5-kraxel@redhat.com> In-Reply-To: <20200310083218.26355-1-kraxel@redhat.com> References: <20200310083218.26355-1-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 205.139.110.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Kamil Rytarowski , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Gerd Hoffmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The installer supports GPT now, so the install workflow has changed a bit. Also: run without VGA device. This works around a bug in the seabios sercon code and makes the bootloader menu show up on the serial line, so we can drop the quirk for that. Signed-off-by: Gerd Hoffmann --- tests/vm/netbsd | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/tests/vm/netbsd b/tests/vm/netbsd index f3257bc245a3..b10c9d429ded 100755 --- a/tests/vm/netbsd +++ b/tests/vm/netbsd @@ -22,8 +22,8 @@ class NetBSDVM(basevm.BaseVM): name =3D "netbsd" arch =3D "x86_64" =20 - link =3D "https://cdn.netbsd.org/pub/NetBSD/NetBSD-8.1/images/NetBSD-8= .1-amd64.iso" - csum =3D "718f275b7e0879599bdac95630c5e3f2184700032fdb6cdebf3bdd636878= 98c48ff3f08f57b89f4437a86cdd8ea07c01a39d432dbb37e1e4b008f4985f98da3f" + link =3D "https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.0/images/NetBSD-9= .0-amd64.iso" + csum =3D "34da4882ee61bdbf69f241195a8933dc800949d30b43fc6988da853d57fc= 2b8cac50cf97a0d2adaf93250b4e329d189c1a8b83c33bd515226f37745d50c33369" size =3D "20G" pkgs =3D [ # tools @@ -86,42 +86,31 @@ class NetBSDVM(basevm.BaseVM): self.boot(img_tmp, extra_args =3D [ "-bios", "pc-bios/bios-256k.bin", "-machine", "graphics=3Doff", - "-device", "VGA", "-cdrom", iso ]) self.console_init() - self.console_wait("Primary Bootstrap") - - # serial console boot menu output doesn't work for some - # reason, so we have to fly blind ... - for char in list("5consdev com0\n"): - time.sleep(0.2) - self.console_send(char) - self.console_consume() + self.console_wait_send("3. Drop to boot prompt", "3") + self.console_wait_send("> ", "consdev com0\n") self.console_wait_send("> ", "boot\n") =20 self.console_wait_send("Terminal type", "xterm\n") self.console_wait_send("a: Installation messages", "a\n") - self.console_wait_send("b: US-English", "b\n") self.console_wait_send("a: Install NetBSD", "a\n") self.console_wait("Shall we continue?") self.console_wait_send("b: Yes", "b\n") =20 self.console_wait_send("a: ld0", "a\n") + self.console_wait_send("a: Guid Partition Table", "a\n") self.console_wait_send("a: This is the correct", "a\n") - self.console_wait_send("b: Use the entire disk", "b\n") - self.console_wait("NetBSD bootcode") - self.console_wait_send("a: Yes", "a\n") - self.console_wait_send("b: Use existing part", "b\n") + self.console_wait_send("b: Use default part", "b\n") self.console_wait_send("x: Partition sizes ok", "x\n") - self.console_wait_send("for your NetBSD disk", "\n") self.console_wait("Shall we continue?") self.console_wait_send("b: Yes", "b\n") =20 self.console_wait_send("b: Use serial port com0", "b\n") self.console_wait_send("f: Set serial baud rate", "f\n") self.console_wait_send("a: 9600", "a\n") - self.console_wait_send("x: Exit", "x\n") + self.console_wait_send("x: Continue", "x\n") =20 self.console_wait_send("a: Full installation", "a\n") self.console_wait_send("a: CD-ROM", "a\n") --=20 2.18.2