mirror of
https://github.com/89luca89/distrobox.git
synced 2026-08-19 01:14:49 -05:00
docs: add entry on how to use qemu to use containers of different architectures
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
This commit is contained in:
@@ -69,6 +69,7 @@ graphical apps (X11/Wayland), and audio.
|
||||
- [Using docker inside a distrobox](useful_tips.md#using-docker-inside-a-distrobox)
|
||||
- [Using init system inside a distrobox](useful_tips.md#using-init-system-inside-a-distrobox)
|
||||
- [Using distrobox as main cli](useful_tips.md#using-distrobox-as-main-cli)
|
||||
- [Using a different architecture](useful_tips.md#using-a-different-architecture)
|
||||
- [Improve distrobox-enter performance](useful_tips.md#improve-distrobox-enter-performance)
|
||||
- [Slow creation on podman and image size getting bigger with distrobox-create](useful_tips.md#slow-creation-on-podman-and-image-size-getting-bigger-with-distrobox-create)
|
||||
- [Container save and restore](useful_tips.md#container-save-and-restore)
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
- [Using docker inside a distrobox](#using-docker-inside-a-distrobox)
|
||||
- [Using init system inside a distrobox](#using-init-system-inside-a-distrobox)
|
||||
- [Using distrobox as main cli](#using-distrobox-as-main-cli)
|
||||
- [Using a different architecture](#using-a-different-architecture)
|
||||
- [Improve distrobox enter performance](#improve-distrobox-enter-performance)
|
||||
- [Slow creation on podman and image size getting bigger with distrobox create](#slow-creation-on-podman-and-image-size-getting-bigger-with-distrobox-create)
|
||||
- [Container save and restore](#container-save-and-restore)
|
||||
@@ -196,6 +197,31 @@ to the Host profile.
|
||||
For other terminals, there are similar features (profiles) or you can set up a
|
||||
dedicated shortcut to launch a terminal directly in the distrobox
|
||||
|
||||
## Using a different architecture
|
||||
|
||||
In case you want to run a container with a different architecture from your host,
|
||||
you can leverage the use of `qemu` and support from podman/docker.
|
||||
|
||||
Install on your host the following dependencies:
|
||||
|
||||
- qemu
|
||||
- qemu-user-static
|
||||
- binfmt-support
|
||||
|
||||
Then you can easily run the image you like:
|
||||
|
||||
```console
|
||||
~$ uname -m
|
||||
x86_64
|
||||
~$ distrobox create -i aarch64/fedora -n fedora-arm64
|
||||
~$ distrobox enter fedora-arm64
|
||||
...
|
||||
user@fedora-arm64:~$ uname -m
|
||||
aarch64
|
||||
```
|
||||
|
||||

|
||||
|
||||
## Improve distrobox enter performance
|
||||
|
||||
If you are experiencing a bit slow performance using `podman` you should enable
|
||||
|
||||
Reference in New Issue
Block a user