From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7197811629045579776 X-Received: by 2002:a02:ca0c:0:b0:3ad:1874:644f with SMTP id i12-20020a02ca0c000000b003ad1874644fmr3739207jak.113.1675871114810; Wed, 08 Feb 2023 07:45:14 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6602:1229:b0:715:713c:d8e9 with SMTP id z9-20020a056602122900b00715713cd8e9ls3792658iot.5.-pod-prod-gmail; Wed, 08 Feb 2023 07:45:14 -0800 (PST) X-Google-Smtp-Source: AK7set/7LbvWet9DBvoCzsnaw5SpFoJpTd7rrRblMUFL7OElrzmHor1OaFOvZpoVqVLwNPozQ2KM X-Received: by 2002:a6b:c853:0:b0:716:596a:1ce9 with SMTP id y80-20020a6bc853000000b00716596a1ce9mr5152361iof.15.1675871114145; Wed, 08 Feb 2023 07:45:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675871114; cv=none; d=google.com; s=arc-20160816; b=FcsTp2V2K+xxw2bESxg+vuluYpsF9XJpbvRjH7byVdOwwGcJqPECWMsixgegA4nQKz D+ayEn5OP3cZxB6F3eqZk1hAJy26Q6PejJlxxwSzkH5mxL3siyupzyS+WO/EH+FyE7gy 5AjlIEOmW/0b2xhvv+LcjpAODmuhF2hX/YF5H3ifDZEGOeCjkaIOifi7PhFlt9bmGP+h 0kppS992gjKOVKavIwhPbByqf/37XvvapIWxSY6e1bYwX/kmk2Y4biJYXOZ98yK9mBWs QGnCyS3UrTHskKBznQTI+XL71jhUZv/gTvnWlctZCk4w85QvzJsAyk6LZoO/DHBPW+U5 vkKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from; bh=YLzXdQCNX/tZqFottIf/gj6Hfk4udmOKdY2vhlCSDpI=; b=Dt9l+7BiA1KKh5kkHqV4FfgtT3GlF6/lNPlHEi9XzAEXnXn3WOFXKJDxWHJyZ1yp7z 1+iXAdKrbfLIG86GZs+9OvdoZ8gyCDeclcSA5SBrXiGq6kJZsO4u+vYukHn3M5ucI67h T2MDayLaWcgzuV1aBF/A6hD/uR0YebLnrfT52CjXNx1aqoGaCIwPJDGAZtAlA8UNsl1v SITKXyedxFPodXo215j4MkWE+jtFJFNdcybcnAtSsOvhQqAt+bj8kDws/IzC21MQMdbf xvHXLD4XFljziZEkWMJmnufSNGN1m4DeaRZZZVefajSzcXNlDRFBv4e8aN/oVEOCcwey JlAQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id o9-20020a5e8a49000000b007341c675d3csi318666iom.1.2023.02.08.07.45.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Feb 2023 07:45:14 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from baighyz.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 318FjB4r015298 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 8 Feb 2023 16:45:11 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v2 0/9] Support running custom commands in VM Date: Wed, 8 Feb 2023 16:45:02 +0100 Message-Id: <20230208154511.1884-1-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: VIkU5Bvb5133 VM run tests implementation in Isar testsuite allows only parsing virtual machine boot logs, so the functionality is limited. This patchset additionally allows to run custom commands on VM that runs in qemu that allows to implement any custom tests. The concept is the following. For running custom tests SSH is used. So: - SSH server on machine should be configured, so `sshd-regen-keys` package needs to be installed in the image. - Ethernet interface on machine should be automatically brought up to make host-to-vm port forwarding working. - User in VM we use to connect via SSH should have public SSH key in their `~/.ssh/` directory preinstalled. - Since base isar image don't have this included, custom image name for vm run tests should be supported. This also allows to make reusing Isar testsuite in downstream simpler. Changes since v1: - Patches "meta-isar: Fix PCI bus initialization in qemuarm machine" and "testsuite: Use random free port for qemu SSH forwarding" are excluded from patchset since they are already merged. - User `ci` creation/configuration is moved to a separate package so now it can be simply removed from target using apt. No new user flags are required anymore. - In addition to simple commands (cmd=""), running custom local scripts (script="