Skip to content

to-base-disk hangs at Waiting for systemd #279

Description

@Johan-Liebert1

I do not know what causes this issue. I thought that running multiple instances bcvk caused this but I'm facing this issue even when there's only one instance.

Some logs

TRACE exec: "podman" "image" "inspect" "--" "localhost/bootc-ukicleanup"
 INFO Creating base disk: "/home/pragyan/.local/share/libvirt/images/bootc-base-b81e0ae0a672d881.qcow2"
DEBUG Target disk /home/pragyan/.local/share/libvirt/images/bootc-base-b81e0ae0a672d881.TRwsMz.tmp.qcow2 already exists, checking cache metadata
TRACE exec: "podman" "image" "inspect" "--" "localhost/bootc-ukicleanup"
DEBUG No cache hash xattr found on "/home/pragyan/.local/share/libvirt/images/bootc-base-b81e0ae0a672d881.TRwsMz.tmp.qcow2"
DEBUG Existing disk does not match requirements, recreating: Missing extended attribute metadata
DEBUG Using explicit disk size: 20G -> 21474836480 bytes
DEBUG Creating qcow2 with size 21474836480 bytes
DEBUG qemu-img create completed successfully
DEBUG Starting ephemeral VM with SSH...
DEBUG Running QEMU inside hybrid container for localhost/bootc-ukicleanup
TRACE exec: "podman" "inspect" "--format=json" "--type=image" "--" "localhost/bootc-ukicleanup"
DEBUG Processed disk file: path=/home/pragyan/.local/share/libvirt/images/bootc-base-b81e0ae0a672d881.TRwsMz.tmp.qcow2, name=output, format=qcow2
DEBUG Adding container storage from /home/pragyan/.local/share/containers/storage as hoststorage mount
DEBUG Found DNS servers from /run/systemd/resolve/resolv.conf: ["1.1.1.1", "8.8.8.8", "192.168.0.1"]
DEBUG Using DNS servers for ephemeral VM: ["1.1.1.1", "8.8.8.8", "192.168.0.1"]
DEBUG Podman command: "podman" "run" "--pull=never" "--label=bcvk.ephemeral=1" "--mount=type=tmpfs,target=/run" "--rm" "-t" "-d" "--cap-add=all" "--security-opt=label=disable" "--security-opt
=seccomp=unconfined" "--security-opt=unmask=/proc/*" "-v" "/sys:/sys:ro" "-v" "/var/tmp:/var/tmp" "--device=/dev/kvm" "--device=/dev/vhost-vsock" "-v" "/usr:/run/tmproot/usr:ro" "-v" "/tmp/.t
mp7jpRhE/entrypoint:/var/lib/bcvk/entrypoint" "-v" "/home/pragyan/.cargo/bin/bcvk:/run/selfexe:ro" "--stop-signal=SIGKILL" "--mount=type=image,source=localhost/bootc-ukicleanup,target=/run/so
urce-image,rw=true" "-v" "/home/pragyan/.local/share/containers/storage:/run/host-mounts/hoststorage:ro" "-v" "/home/pragyan/.local/share/libvirt/images/bootc-base-b81e0ae0a672d881.TRwsMz.tmp
.qcow2:/run/disk-files/output:rw" "--dns" "1.1.1.1" "--dns" "8.8.8.8" "--dns" "192.168.0.1" "-e" "BCK_CONFIG={\"image\":\"localhost/bootc-ukicleanup\",\"common\":{\"itype\":null,\"memory\":{\
"memory\":\"4G\"},\"vcpus\":null,\"console\":false,\"debug\":false,\"virtio_serial_out\":[],\"execute\":[],\"ssh_keygen\":true,\"virtiofsd_binary\":null},\"podman\":{\"tty\":true,\"interactiv
e\":false,\"detach\":true,\"rm\":true,\"name\":null,\"network\":null,\"label\":[],\"env\":[]},\"debug_entrypoint\":null,\"bind_mounts\":[],\"ro_bind_mounts\":[],\"systemd_units_dir\":null,\"b
ind_storage_ro\":true,\"add_swap\":\"21474836480\",\"mount_disk_files\":[\"/home/pragyan/.local/share/libvirt/images/bootc-base-b81e0ae0a672d881.TRwsMz.tmp.qcow2:output:qcow2\"],\"kernel_args
\":[],\"ignition_config\":null,\"host_dns_servers\":[\"1.1.1.1\",\"8.8.8.8\",\"192.168.0.1\"]}" "-e" "BOOTC_DISK_FILES=/run/disk-files/output:output:qcow2" "--" "localhost/bootc-ukicleanup" "
/var/lib/bcvk/entrypoint"
DEBUG Ephemeral VM started with container ID: 6eb12f66c6c32c2e94f5a9b136f50f122bac320aa0bd34bc38f4f83c51c79bb9
⠁ Starting VM...                                                                                                                                                                               
DEBUG Waiting for VM readiness via supervisor status file (timeout: 240s)...
⠁ Starting VM...                                                                                                                                                                               
+ SELFEXE=/run/selfexe
+ command -v bwrap
+ BWRAP_ARGS=(--bind /run/tmproot / --proc /proc --dev-bind /dev /dev --bind /var/tmp /var/tmp --tmpfs /run --tmpfs /tmp --bind /run/inner-shared /run/inner-shared)
+ [[ 1 -eq 0 ]]
+ test '!' -d /run/inner-shared
++ systemctl --version
+ export $'SYSTEMD_VERSION=systemd 259 (259.6-1.fc44)\n+PAM +AUDIT +SELINUX -APPARMOR +IMA +IPE +SMACK +SECCOMP -GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +KMOD +L
IBCRYPTSETUP +LIBCRYPTSETUP_PLUGINS +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +BTF +XKBCOMMON +UTMP +SYSVINIT +LIBARCHIVE'
+ SYSTEMD_VERSION=$'systemd 259 (259.6-1.fc44)\n+PAM +AUDIT +SELINUX -APPARMOR +IMA +IPE +SMACK +SECCOMP -GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +KMOD +LIBCRYPT
SETUP +LIBCRYPTSETUP_PLUGINS +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +BTF +XKBCOMMON +UTMP +SYSVINIT +LIBARCHIVE'
+ trap 'kill -TERM $BWRAP_PID 2>/dev/null; exit 0' INT TERM
+ BWRAP_PID=36
+ wait 36
+ bwrap --as-pid-1 --unshare-pid --bind /run/tmproot / --proc /proc --dev-bind /dev /dev --bind /var/tmp /var/tmp --tmpfs /run --tmpfs /tmp --bind /run/inner-shared /run/inner-shared --bind /
run /run -- /run/selfexe container-entrypoint monitor-status
DEBUG Status update: Some(WaitingForSystemd)
⠁ Waiting for systemd...                                                                                                                                                                       
DEBUG Waiting for systemd to initialize...
⠴ Waiting for systemd...                                                                                                                                                                       
DEBUG Status update: Some(WaitingForSystemd)
⠴ Waiting for systemd...                                                                                                                                                                       
DEBUG Waiting for systemd to initialize...
⠒ Waiting for systemd...                                                                                                                                                                       

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions