systemd-nspawn with qemu error: Failed to set up credentials

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

systemd-nspawn with qemu error: Failed to set up credentials

Postby leuko » Sun Jan 16, 2022 8:48 pm

I am on a x86_64 system and want to boot into the aarch64 image using `systemd-nspawn` with `systemd-binfmt.service` and `qemu-user-static-bin` to prepare an image for RPi4 (building & installing packages).

I use the following shell script to create the image:
Code: Select all
set -e

dd if=/dev/zero of=$IMG bs=1G count=$GB_COUNT status=progress
sudo mkfs.ext4 $IMG
mkdir -p root
sudo mount $IMG root

sudo bsdtar -xpf $ALARM_ARCHIVE -C root
# sudo umount root

Then I try to boot into the system using:
Code: Select all
sudo systemd-nspawn -D root -b

During boot I get the following error
Code: Select all
systemd-sysusers.service: Failed to set up credentials: Invalid argument
systemd-sysusers.service: Main process exited, code=exited, status=243/CREDENTIALS

Boot process continues but I cannot login using the default password for root:

Code: Select all
alarm login: root
Login incorrect

Probably `qemu` causes this problem (, but I am not sure. Can someone verify this or have a fix/workaround?
Posts: 3
Joined: Sun Jan 16, 2022 8:32 pm

Return to ARMv8

Who is online

Users browsing this forum: No registered users and 8 guests