From: Henning Schild <henning.schild@siemens.com>
To: Uladzimir Bely <ubely@ilbers.de>
Cc: isar-users@googlegroups.com
Subject: Re: [PATCH 10/11] isar-image-ci: Make ethernet inerface auto bring up in ubuntu-focal
Date: Tue, 24 Jan 2023 08:24:50 +0100 [thread overview]
Message-ID: <20230124082450.46d4da24@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <20230113071942.22506-11-ubely@ilbers.de>
Am Fri, 13 Jan 2023 08:19:41 +0100
schrieb Uladzimir Bely <ubely@ilbers.de>:
> NetworkManager in Ubuntu doesn't manage ethernet interfaces by default
> (see /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf).
>
> Change this behaviour by overlaying this with a empty config so that
> ethernet iface is managed by NM so that it's automatically brought up
> in virtual machine and qemu host-to-guest port forwarding works.
>
> Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
> ---
> meta-isar/recipes-core/images/isar-image-ci.bb | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/meta-isar/recipes-core/images/isar-image-ci.bb
> b/meta-isar/recipes-core/images/isar-image-ci.bb index
> 74b841ba..a8dd3e40 100644 ---
> a/meta-isar/recipes-core/images/isar-image-ci.bb +++
> b/meta-isar/recipes-core/images/isar-image-ci.bb @@ -28,3 +28,11 @@
> USER_ci[flags] += "copy-ci-key"
> # Don't QA check files added by 'copy-ci-key' flag when
> postprocessing ROOTFS_QA_FIND_ARGS = "! -path
> ${ROOTFSDIR}/home/ci/.ssh" +
> +# Manage ethernet in ubuntu-focal by network-manager
> +ROOTFS_CONFIGURE_COMMAND_append_ubuntu-focal = " manage_ethernet"
> +
> +manage_ethernet() {
> + sudo -E install -D -m 644 /dev/null \
> +
> ${ROOTFSDIR}/etc/NetworkManager/conf.d/10-globally-managed-devices.conf
> +}
Files should come from packages where ever possible. Maybe just add
some 11-isar.conf in the package that we could call
"isar-ci-ssh-setup", that file can be shipped to debian as well ...
should not hurt.
And you would DEBIAN_DEPENDS on NM instead of installing it manually.
In the end the image would be
inherit isar-image-base
IMAGE_INSTALL += "isar-ci-ssh-setup"
Or we even just put that into the sample local conf and do not even
need another image. Maybe as a comment where only the testsuite
uncomments it, so users who build our examples do not get such "open
images"
Henning
next prev parent reply other threads:[~2023-01-24 7:25 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-13 7:19 [PATCH 00/11] Support running custom commands in VM Uladzimir Bely
2023-01-13 7:19 ` [PATCH 01/11] testsuite: Fix failing hostname service in qemu guest Uladzimir Bely
2023-01-13 7:19 ` [PATCH 02/11] testsuite: Allow custom image names in start_vm.py Uladzimir Bely
2023-01-24 6:59 ` Henning Schild
2023-01-13 7:19 ` [PATCH 03/11] testsuite: Fix terminal broken after run test executed Uladzimir Bely
2023-01-13 7:19 ` [PATCH 04/11] testsuite: Add SSH key pair for using in CI Uladzimir Bely
2023-01-13 7:19 ` [PATCH 05/11] image-account-extension: Add copy-ci-key flag for user Uladzimir Bely
2023-01-24 7:09 ` Henning Schild
2023-01-24 7:18 ` Henning Schild
2023-01-25 7:36 ` Uladzimir Bely
2023-01-25 8:45 ` Henning Schild
2023-01-13 7:19 ` [PATCH 06/11] meta-isar: Fix PCI bus initialization in qemuarm machine Uladzimir Bely
2023-02-08 13:03 ` Uladzimir Bely
2023-01-13 7:19 ` [PATCH 07/11] testsuite: Use random free port for qemu SSH forwarding Uladzimir Bely
2023-01-24 7:11 ` Henning Schild
2023-02-08 13:04 ` Uladzimir Bely
2023-01-13 7:19 ` [PATCH 08/11] testsuite: Support running custom commands in VM Uladzimir Bely
2023-01-24 7:14 ` Henning Schild
2023-01-24 7:14 ` Henning Schild
2023-01-13 7:19 ` [PATCH 09/11] meta-isar: Use a separate image recipe in CI Uladzimir Bely
2023-01-13 7:19 ` [PATCH 10/11] isar-image-ci: Make ethernet inerface auto bring up in ubuntu-focal Uladzimir Bely
2023-01-24 7:24 ` Henning Schild [this message]
2023-01-24 7:27 ` Henning Schild
2023-01-13 7:19 ` [PATCH 11/11] testsuite: Run custom commands on some qemu targets Uladzimir Bely
2023-01-24 7:39 ` Henning Schild
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230124082450.46d4da24@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=ubely@ilbers.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox