Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #272424
| From | Steve Keller <keller.steve@gmx.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | QEMU: Run a container of a different architecture |
| Date | 2024-08-21 17:20 +0200 |
| Message-ID | <JdVhT-6Ak1-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Can I run a container for a different CPU architecture using systemd-nspawn? I can easily install on my amd64 host a Debian container of the same architecture and run that: # debootstrap stable deb12-amd64 # systemd-nspawn -D deb12-amd64 and get a shell running in that container. I can also install a Debian system of a different architecture and run binaries from it like this (using qemu-user-binfmt): # debootstrap --arch=arm64 --foreign stable deb-arm64 # QEMU_LD_PREFIX=/usr/aarch64-linux-gnu deb-arm64/bin/date Wed Aug 21 16:43:40 CEST 2024 But the following doesn't work # QEMU_LD_PREFIX=/usr/aarch64-linux-gnu systemd-nspawn -D deb-arm64 Spawning container deb-arm64 on /usr/local/deb-arm64. Press ^] three times within 1s to kill container. execv(/bin/bash, /bin/bash, /bin/sh) failed: No such file or directory Container deb-arm64 failed with error code 1. I'd like to know if it's also possible to run the whole container in arm64 architecture using systemd-nspawn like above for amd64. Steve
Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread
QEMU: Run a container of a different architecture Steve Keller <keller.steve@gmx.de> - 2024-08-21 17:20 +0200
Re: QEMU: Run a container of a different architecture Markus Schönhaber <debian-user@list-post.mks-mail.de> - 2024-08-21 19:10 +0200
Re: QEMU: Run a container of a different architecture Steve Keller <keller.steve@gmx.de> - 2024-08-21 22:30 +0200
Re: QEMU: Run a container of a different architecture Tim Woodall <debianuser@woodall.me.uk> - 2024-08-22 19:30 +0200
Re: QEMU: Run a container of a different architecture Steve Keller <keller.steve@gmx.de> - 2024-08-23 16:30 +0200
csiph-web