Distrobox: Difference between revisions
| Line 30: | Line 30: | ||
=== Using different architecture === | === Using different architecture === | ||
Following example will run an Ubuntu container with a different architecture than the host, in this case arm64.<syntaxhighlight lang="nix"> | Following example will run an Ubuntu container with a different architecture than the host, in this case arm64. | ||
Add following line to your system configuration, apply it and then reboot the system.<syntaxhighlight lang="nix"> | |||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; | |||
</syntaxhighlight>Run a Debian container with arm64 architecture<syntaxhighlight lang="nix"> | |||
sudo podman run --rm --privileged multiarch/qemu-user-static --reset -p yes | sudo podman run --rm --privileged multiarch/qemu-user-static --reset -p yes | ||
distrobox create -n debian --image arm64v8/debian | distrobox create -n debian --image arm64v8/debian | ||