From: Henning Schild <henning.schild@siemens.com>
To: "[ext] Jan Kiszka" <jan.kiszka@siemens.com>
Cc: <daniel.sangorrin@toshiba.co.jp>, <kas-devel@googlegroups.com>,
<isar-users@googlegroups.com>, <cip-dev@lists.cip-project.org>
Subject: Re: isar error log
Date: Fri, 12 Apr 2019 13:37:36 +0200 [thread overview]
Message-ID: <20190412133736.5f3b257f@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <74cc4dec-f603-4746-077d-4aae2e20a095@siemens.com>
Am Thu, 11 Apr 2019 14:42:03 +0200
schrieb "[ext] Jan Kiszka" <jan.kiszka@siemens.com>:
> On 11.04.19 12:13, daniel.sangorrin@toshiba.co.jp wrote:
> >> -----Original Message-----
> >> From: cip-dev-bounces@lists.cip-project.org
> >> <cip-dev-bounces@lists.cip-project.org> On Behalf Of
> >> daniel.sangorrin@toshiba.co.jp Sent: Thursday, April 11, 2019 7:06
> >> PM To: jan.kiszka@siemens.com
> >> Cc: kas-devel@googlegroups.com; isar-users@googlegroups.com;
> >> cip-dev@lists.cip-project.org Subject: Re: [cip-dev] isar error log
> >>
> >>> -----Original Message-----
> >>> From: Jan Kiszka <jan.kiszka@siemens.com>
> >>> Sent: Thursday, April 11, 2019 6:16 PM
> >>> To: sangorrin daniel(サンゴリン ダニエル ○SWC□OST)
> >>> <daniel.sangorrin@toshiba.co.jp> Cc:
> >>> cip-dev@lists.cip-project.org; isar-users@googlegroups.com;
> >>> kas-devel@googlegroups.com Subject: Re: isar error log
> >>>
> >>> On 11.04.19 11:08, daniel.sangorrin@toshiba.co.jp wrote:
> >>>>> From: Jan Kiszka <jan.kiszka@siemens.com>
> >>>>> On 03.04.19 02:56, daniel.sangorrin@toshiba.co.jp wrote:
> >>>>>> Hi Jan,
> >>>>>>
> >>>>>> Yes I am following the Readme.
> >>>>>>
> >>>>>> The docker image id for kasproject/kas-isar is 9e9fe44e68d3 (I
> >>>>>> am using kas-docker script). And I am
> >> using
> >>>>>
> >>>>> That's the same version I have, and it works for me.
> >>>>>
> >>>>>> kas-docker --isar build kas.yml:board-qemu-amd64.yml
> >>>>>>
> >>>>>> Yes, it seems there are multiple errors:
> >>>>>> /proc/sys/fs/binfmt_misc/register: Invalid argument
> >>>>>> /test-dev-null: Permission denied
> >>>>>>
> >>>>>> Probably this is a bug or misconfiguration in Ubuntu. I will
> >>>>>> try to figure it out.
> >>>>>
> >>>>> Adding kas-devel: Would be interesting to understand this so
> >>>>> that we can fix it or at least document a workaround. Maybe you
> >>>>> need to be in some privileged group in order to use privileged
> >>>>> docker containers? That's how things work on SUSE.
> >>>>>
> >>>>> No one around is using Ubuntu, so that distro is likely a blind
> >>>>> spot for our testing.
> >>>>
> >>>> OK, so I figured out that Ubuntu 16.04 was using the service
> >>>> "binfmt-support", not "systemd-binfmt". For that reason, the
> >>>> "systemd-binfmt" service was inactive. However, "binfmt-support"
> >>>> is working fine. I also checked that the post-install script of
> >>>> the qemu-user-static package had run correctly and there were
> >>>> binfmt configuration files at /var/lib/binfmts/
> >>>
> >>> But what prevented the container to tune the host kernel
> >>> according to its needs? That is the intended resolution for the
> >>> host not having the same settings as the container (or any at
> >>> all).
> >>
> >> To be honest I don't really know what binfmt is all about yet, so
> >> I can't even understand what you mean about "tuning the kernel".
>
> https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html
>
> >>
> >> By the way, I managed to update to the latest Ubuntu 4.4 kernel
> >> (145) and the problem persists. I tried to reinstall
> >> qemu-user-static etc but still fails humm .
> >> Also i just tested on Ubuntu 18.04 and there I can build with ISAR
> >> without problems. So I might just leave it unsolved and update to
> >> 18.04...
> >
> > This might be a hint.
> > On Ubuntu 18.04 I can see "qemu-alpha" on /proc/sys/fs/binfmt_misc,
> > but on Ubuntu 16.04 it isn't there. When running kas-docker, the
> > first error is about not being able to
> > close /proc/sys/fs/binfmt_misc/register (invalid argument) and the
> > second is about qemu-alpha.
>
> Maybe /proc/sys/fs/binfmt_misc is not mounted into the container
> under Ubuntu 16.04, even if that is privileged.
Just had a look at a ubuntu 16.04. It does support the fs but it is
not mounted. So a pseudo-code patch for the docker entry could be:
if not mounted
if grep binfmt_misc /proc/filesystems
mount
else
echo "Get a real and recent distro"
fi
fi
Henning
> Jan
>
next prev parent reply other threads:[~2019-04-12 11:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-02 3:17 daniel.sangorrin
2019-04-02 6:13 ` Jan Kiszka
2019-04-03 0:56 ` daniel.sangorrin
2019-04-03 5:55 ` Jan Kiszka
2019-04-11 9:08 ` daniel.sangorrin
2019-04-11 9:15 ` Jan Kiszka
2019-04-11 10:05 ` daniel.sangorrin
2019-04-11 10:13 ` daniel.sangorrin
2019-04-11 12:42 ` Jan Kiszka
2019-04-12 11:37 ` Henning Schild [this message]
2019-04-12 11:59 ` [cip-dev] " Ben Hutchings
2019-04-16 2:47 ` daniel.sangorrin
2019-04-16 3:04 ` daniel.sangorrin
2019-04-03 13:53 ` Ben Hutchings
2019-04-05 7:44 ` daniel.sangorrin
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=20190412133736.5f3b257f@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=cip-dev@lists.cip-project.org \
--cc=daniel.sangorrin@toshiba.co.jp \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
--cc=kas-devel@googlegroups.com \
/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