From nobody Fri Nov 14 00:46:04 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