[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Jou
From: |
Laurent Vivier |
Subject: |
[Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service. |
Date: |
Fri, 11 Sep 2020 09:20:39 -0000 |
We can try to see what is failing by enabling qemu strace.
To do that, I don't know a better solution than using a wrapper.
Once /mnt is mounted, copy qemu-arm-static inside with a new name:
sudo cp /usr/bin/qemu-arm-static /mnt/usr/bin/qemu-arm-org
Then create the wrapper:
cat > qemu-wrapper.c <<EOF
#include <stdio.h>
#include <unistd.h>
#include <string.h>
static const char *baseargv[] = {
"-strace",
};
int main(int argc, char **argv, char **envp) {
char *newargv[argc + sizeof(baseargv) / sizeof(char *) + 1];
int current = 0;
newargv[current] = argv[0];
current++;
memcpy(&newargv[current], baseargv, sizeof(baseargv));
current += sizeof(baseargv) / sizeof(char *);
memcpy(&newargv[current], &argv[1], sizeof(*argv) * (argc - 1));
current += argc - 1;
newargv[current] = NULL;
return execve("/usr/bin/qemu-arm-org", newargv, envp);
}
EOF
cc --static -o qemu-wrapper qemu-wrapper.c
sudo cp qemu-wrapper /mnt/usr/bin/qemu-arm-static
And then:
systemd-nspawn --boot --directory=/mnt
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1895053
Title:
Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service.
Status in QEMU:
New
Bug description:
Hi, I'm using nspawn and asked the question @systemd-devel. They redirected
me to you, guessing that nspawn calls a syscall or ioctl qemu isnt aware of and
can't implement properly?
They were like: "Sorry, that's not my department." ^^
Maybe you can reproduce the issue or help me investigating whats wrong
or put the ball right back into their court? :D
Testscript:
wget https://downloads.raspberrypi.org/raspios_lite_armhf_latest -o r.zip
unzip r.zip
LOOP=$(losetup --show -Pf *raspios-buster-armhf-lite.img)
mount ${LOOP}p2 /mnt
mount ${LOOP}p1 /mnt/boot
systemd-nspawn --bind /usr/bin/qemu-arm-static --boot --directory=/mnt --
systemd.log_level=debug
Output:
see attachment
System:
uname -a
Linux MArch 5.8.7-arch1-1 #1 SMP PREEMPT Sat, 05 Sep 2020 12:31:32 +0000
x86_64 GNU/Linux
qemu-arm-static --version
qemu-arm version 5.1.0
systemd-nspawn --version
systemd 246 (246.4-1-arch)
+PAM +AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP
+GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN
+PCRE2 default-hierarchy=hybrid
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1895053/+subscriptions
- [Bug 1895053] [NEW] Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Petunia, 2020/09/09
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Laurent Vivier, 2020/09/10
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Laurent Vivier, 2020/09/10
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Petunia, 2020/09/10
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Petunia, 2020/09/10
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Laurent Vivier, 2020/09/10
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Laurent Vivier, 2020/09/10
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Petunia, 2020/09/11
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service.,
Laurent Vivier <=
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Petunia, 2020/09/13
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Laurent Vivier, 2020/09/13
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Petunia, 2020/09/13
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Laurent Vivier, 2020/09/14
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Petunia, 2020/09/14
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Paul Zimmerman, 2020/09/14
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Petunia, 2020/09/15
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Petunia, 2020/09/15
- [Bug 1895053] Re: Cannot nspawn raspbian 10 [FAILED] Failed to start Journal Service., Petunia, 2020/09/16