[lxc-devel] [lxc/lxc] d50ceb: lxc-debian: allow to specify a binfmt interpreter
GitHub
noreply at github.com
Mon Jun 13 22:36:30 UTC 2016
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: d50cebd6974da307bc4fe8b7e28fbebd204b43ff
https://github.com/lxc/lxc/commit/d50cebd6974da307bc4fe8b7e28fbebd204b43ff
Author: Laurent Vivier <laurent at vivier.eu>
Date: 2016-06-13 (Mon, 13 Jun 2016)
Changed paths:
M templates/lxc-debian.in
Log Message:
-----------
lxc-debian: allow to specify a binfmt interpreter
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 at vivier.eu>
Commit: f6578a7bb20a5349b8bb280def89ab7f20825292
https://github.com/lxc/lxc/commit/f6578a7bb20a5349b8bb280def89ab7f20825292
Author: Stéphane Graber <stgraber at stgraber.org>
Date: 2016-06-13 (Mon, 13 Jun 2016)
Changed paths:
M templates/lxc-debian.in
Log Message:
-----------
Merge pull request #1047 from brauner/mips_container
lxc-debian: allow to specify a binfmt interpreter
Compare: https://github.com/lxc/lxc/compare/56c80e0d4d12...f6578a7bb20a
More information about the lxc-devel
mailing list