-
lxc-debian: allow to specify a binfmt interpreter · d50cebd6Laurent Vivier authored
If you specify an interpreter path with "-I" or "--interpreter-path", the architecture of the debian container can differ from the one of the host. Before creating the container, binfmt must be configured on the host: the script checks the name of the interpreter in /proc/sys/fs/binfmt_misc/ to know where to install it in the container. To create a MIPS container on an x86_64 host: $ cat /proc/sys/fs/binfmt_misc/qemu-mips enabled interpreter //qemu-mips flags: OC offset 0 magic 7f454c4601020100000000000000000000020008 mask ffffffffffffff00fffffffffffffffffffeffff $ sudo lxc-create -n virtmips-stretch -t debian -- \ --arch=mips \ --interpreter-path=./mips-linux-user/qemu-mips \ --mirror=http://ftp.debian.org/debian \ --release=stretch Signed-off-by:Laurent Vivier <laurent@vivier.eu>
d50cebd6
×