Open fsquillace opened 3 years ago
Modified the line in namespace.sh in this way:
JUNEST_ENV=1 ~/.junest/usr/bin/bwrap $COMMON_BWRAP_OPTION $backend_args /usr/bin/qemu-arm-static -L ~/.junest-arm ~/.junest-arm/lib/ld-linux-armhf.so.3 "${DEFAULT_SH[@]}" "${args[@]}"
/usr/bin/qemu-arm-static
has to be within the junest image.
If
binfmt-user-static
is installed in the native OS (say x86_64 arch), it is possible to run JuNest on a different architecture (say ARM) using the namespace more. More information hereTo achieve this on a JuNest ARM architecture with x86_64 arch native system:
where
bwrap
andqemu-arm-static
arex86_64
compiled binaries.qemu-arm-static
must be within the JuNest env in order for this to work.The biggest challenge is how to set
binfmt
as unprivileged user. There are attempt to havebinfmt
for unprivileged containers. Some references here:Reference about the need to use binfmt for making is working: