qemu-user-static icon indicating copy to clipboard operation
qemu-user-static copied to clipboard

Need support for run x86_64 on linux/arm64

Open kirbyzhou opened this issue 3 years ago • 14 comments

Is there any release containing support of run x86_64 on linux/arm64?

kirbyzhou avatar Jul 09 '22 01:07 kirbyzhou

https://martin-grigorov.medium.com/build-linux-software-for-foreign-cpu-architectures-on-arm64-463a95d15460

martin-g avatar Jul 09 '22 18:07 martin-g

I created a fork and managed to build a multi-platform version of the latest and register images, but I don't build the $from_arch-$to_arch versions.

If you want to test and use it, you can find it here. I published the images on the docker hub as alekitto/qemu-user-static:latest (or register)

alekitto avatar Jul 29 '22 20:07 alekitto

20220811092831 Hello, how to solve such a problem? CentOS 7.9: amd64-2009 comes from CentOS: CentOS 7.9.2009, without any modification

tianyayunhai avatar Aug 11 '22 01:08 tianyayunhai

qemu-x86_ 64-static version v7.0.0-7

tianyayunhai avatar Aug 11 '22 02:08 tianyayunhai

@tony429001986 What are you trying to do ? Better create a new issue with more details instead ?!

martin-g avatar Aug 11 '22 07:08 martin-g

Thank you, the problem has been solved. Use this version of qemu-x86_ 64-static_ Arm64v8, the container can run successfully

tianyayunhai avatar Aug 12 '22 02:08 tianyayunhai

这是一封自动回复邮件。已经收到您的来信,我会尽快回复。

tianyayunhai avatar Oct 11 '22 08:10 tianyayunhai

I created a fork and managed to build a multi-platform version of the latest and register images, but I don't build the $from_arch-$to_arch versions.

I was looking into how we could get this running on multiple arch and was goingto go the same route, e.g only build latest and register on multiple arch by integrating it with docker/build-push-action and docker/setup-qemu-action .

@lafin , would there be interest in making :latest push independently from the ${from_arch}-${to_arch} ones? This would allow to easily build qemu-user-static:latest for multiple host architecture.

With a bit more work, it seems all the from/to versions could also be made multi-arch but that would require more work.

chantra avatar Feb 06 '23 22:02 chantra

这是一封自动回复邮件。已经收到您的来信,我会尽快回复。

tianyayunhai avatar Feb 06 '23 22:02 tianyayunhai

I wonder if this should be able to run on Asahi Linux (Fedora for Apple M-series machines)?

It doesn't seem to add qemu-* binaries to /usr/bin or indeed anywhere.

Also, I couldn't figure out how to uninstall/reverse the effects of docker run --rm --privileged alekitto/qemu-user-static:latest --reset -p yes. Maybe just a reboot is enough?

tombh avatar Dec 08 '23 15:12 tombh

这是一封自动回复邮件。已经收到您的来信,我会尽快回复。

tianyayunhai avatar Dec 08 '23 15:12 tianyayunhai

@tianyayunhai how did you solved? would you share?

johnkingo0216 avatar Jan 06 '24 07:01 johnkingo0216

这是一封自动回复邮件。已经收到您的来信,我会尽快回复。

tianyayunhai avatar Jan 06 '24 07:01 tianyayunhai