Package: qemu-user-static
Version: 1:8.0.3+dfsg-4
Severity: important

Hi,

instead of bugging you on IRC, let me write down my finding in a bit more
structured way this time. :)

Steps to reproduce:

        $ debvm-create -r unstable -- --include=qemu-user-static,arch-test
        $ debvm-run
        # findmnt /proc/sys/fs/binfmt_misc
        TARGET                   SOURCE      FSTYPE      OPTIONS
        /proc/sys/fs/binfmt_misc systemd-1   autofs      
rw,relatime,fd=31,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_i
        /proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc 
rw,nosuid,nodev,noexec,relatime
        [...]
        # cat /usr/lib/binfmt.d/qemu-x86_64.conf > 
/proc/sys/fs/binfmt_misc/register
        cat: write error: File exists
        # arch-test amd64
        amd64: not supported on this machine/kernel

I'm on an arm64 system trying to run amd64. But I first discovered the problem
on amd64 on jenkins.debian.net where I'm running:

        if [ ! -e /proc/sys/fs/binfmt_misc/status ]; then
                mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
        fi
        cat /usr/lib/binfmt.d/qemu-aarch64.conf > 
/proc/sys/fs/binfmt_misc/register
        arch-test arm64

But that results in:

        + [ ! -e /proc/sys/fs/binfmt_misc/status ]
        + mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
        + cat /usr/lib/binfmt.d/qemu-aarch64.conf
        + arch-test arm64
        arm64: not supported on this machine/kernel

So the symptoms are a bit different but in the end arch-test is still unable to
run the foreign architecture. Maybe this is the same bug, maybe it's different.

Any ideas?

Thanks!

cheers, josch

Reply via email to