From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9062ADDC5 for ; Tue, 5 Mar 2024 00:56:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709600208; cv=none; b=ChQnsflvphl3mvuNJBH9GOChFt6FxHDb4O7GAfAyVXBt0KcR5R9BfKnsdSdeiX/nCteFwFHlAY4e678wQXCaYy32PiCcQv488XiNbHOFSmZuSjK2bvS8EjAa7DV5PHUoE5yMVen9fPQVn+/vxOg0IJEOXL5t5lUYFIiuLMRkEK8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709600208; c=relaxed/simple; bh=iIBdOVOs3E/rMg7MC3hJ5EnSKW7qfXrRNzWbieoPZDs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=A8goUvlWboIrOopSyPqt3j5ZM3UvCGDbTdTvItl4ORhgB1hqzYquE3ZndrlzDeamYZP4U9PatjCsdlmOmAA+kS7L20WNuWE6gX8ui7byVIjMwC/yXFfQI6GpC/5Tl6/gKDK1Jgry7QbXWnF7o4rM0UKPqx7bArbxf+phUy5iIyc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=qCsfmCHB; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="qCsfmCHB" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=eSB9y/7S8oHKbfdDYvanU2zrpav+fNQoSGaSZKcwNjo=; b=qCsfmCHBu4ypPnWnEWVH7WPTwO bS5cbrqsZG98s+nYyx2/+EgQEsXSLniKoRDlD1QK5Hp3TQdg43x8R89U77bre6hqs7MuN2xE+80Yq h5VyVDkzRc4bh0Ladwr6vwH6F0X3M5Qc4aw8ZqS/jM/zncvBC/3tYfj3ccPDJyXW6PrMhq0wls4LS ZlYLW3mNKFneYWRCg373RgsFYRZe5Sjo4ayoFG3cZHMGCmAbs7mlsvjdz8NXKsNp/U6m0GXSo7oEG 2hrfiAQW+Mgt6E6Q8G4KrcNzhmc6KXzwMfBVy4LJlaJw6MQohhOk2sEGJw2HWDpOdXeeRj3Q+dOVL 7o+BZNsQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhJ6s-0000000BJde-0UPB; Tue, 05 Mar 2024 00:56:46 +0000 From: Luis Chamberlain To: kdevops@lists.linux.dev Cc: Luis Chamberlain Subject: [PATCH 1/3] scripts/bringup_guestfs.sh: start networking for system session Date: Mon, 4 Mar 2024 16:56:42 -0800 Message-ID: <20240305005645.2697081-2-mcgrof@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240305005645.2697081-1-mcgrof@kernel.org> References: <20240305005645.2697081-1-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain When the system session is used we need to ensure we start the default networking, otherwise we will get a complaint about not finding mtu for virb0, or virb1, etc. Fix this by ensuring that if the default networking is off, we start it. Signed-off-by: Luis Chamberlain --- scripts/bringup_guestfs.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/bringup_guestfs.sh b/scripts/bringup_guestfs.sh index 34ad48cbe81f..19e636fc64f3 100755 --- a/scripts/bringup_guestfs.sh +++ b/scripts/bringup_guestfs.sh @@ -7,6 +7,15 @@ source ${TOPDIR}/scripts/lib.sh export LIBVIRT_DEFAULT_URI=$CONFIG_LIBVIRT_URI +# On systems using system sesion, ensure that we start the default +# libvirt network. +if [[ "$CONFIG_LIBVIRT_URI_SYSTEM" == "y" ]]; then + sudo virsh net-list | grep -q default + if [[ $? -ne 0 ]]; then + sudo virsh net-start default + fi +fi + # # We use the NVMe setting for virtio too (go figure), but IDE # requires qcow2 -- 2.43.0