Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM机器上无法启动 #3

Open
pxd0207 opened this issue Feb 1, 2023 · 7 comments
Open

ARM机器上无法启动 #3

pxd0207 opened this issue Feb 1, 2023 · 7 comments

Comments

@pxd0207
Copy link

pxd0207 commented Feb 1, 2023

image
image

@tom-snow
Copy link
Owner

tom-snow commented Feb 1, 2023

arm 镜像是GitHub Action 自动构建的,wine 等并没有针对 arm 做适配,我也没法对其适配(没 arm 的机子,也不保证我有能力进行适配)

如有能力可以参考: https://wiki.winehq.org/Emulation

@tom-snow
Copy link
Owner

tom-snow commented Feb 19, 2023

理论上你只需要参考本文: https://www.kali.org/docs/arm/x86-on-arm/

sudo apt install -y qemu-user-static binfmt-support
sudo dpkg --add-architecture amd64

添加好 qemu x86_64 支持

然后强制拉取运行 x86_64 的镜像,就可以在 甲骨文arm 上运行本镜像,参考 https://stackoverflow.com/questions/65612411/forcing-docker-to-use-linux-amd64-platform-by-default-on-macos

更多细节自行研究。

也欢迎在本条下回复说明你具体适配的过程,完善更多细节方便后人

@tom-snow tom-snow reopened this Feb 23, 2023
@ypxun
Copy link

ypxun commented Mar 1, 2023

我在docker compose文件里加了platform: linux/amd64参数项,拉取的是amd64的镜像。尽管添加好了qemu x86_64的支持,但是还是无法启动容器,重启了几次也不行。报错日志如下:

qemu: uncaught target signal 11 (Segmentation fault) - core dumped

Cleaning stale pidfile '/root/.vnc/debian.debian:5905.pid'!

Cleaning stale X11 lock '/tmp/.X5-lock'!

Cleaning stale X11 lock '/tmp/.X11-unix/X5'!

New Xtigervnc server 'debian.debian:5 (root)' on port 5905 for display :5.

Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /root/.vnc/passwd debian.debian:5 to connect to the VNC server.

qemu: uncaught target signal 11 (Segmentation fault) - core dumped

---All in one 微信 ComRobot 容器---

 启动容器中...

等待 5 秒再 hook

感谢使用.

@linrol
Copy link

linrol commented Aug 6, 2023

我在docker compose文件里加了platform: linux/amd64参数项,拉取的是amd64的镜像。尽管添加好了qemu x86_64的支持,但是还是无法启动容器,重启了几次也不行。报错日志如下:

qemu: uncaught target signal 11 (Segmentation fault) - core dumped

Cleaning stale pidfile '/root/.vnc/debian.debian:5905.pid'!

Cleaning stale X11 lock '/tmp/.X5-lock'!

Cleaning stale X11 lock '/tmp/.X11-unix/X5'!

New Xtigervnc server 'debian.debian:5 (root)' on port 5905 for display :5.

Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /root/.vnc/passwd debian.debian:5 to connect to the VNC server.

qemu: uncaught target signal 11 (Segmentation fault) - core dumped

---All in one 微信 ComRobot 容器---

 启动容器中...

等待 5 秒再 hook

感谢使用.

你这个Dockerfile怎么修改来支持的qemu x86_64,我也想试试

@linrol
Copy link

linrol commented Dec 22, 2023

借用box86+wine已实现arm版,可正常运行微信,注入hook

@pxd0207
Copy link
Author

pxd0207 commented Dec 22, 2023

大佬写个教程

@linrol
Copy link

linrol commented Dec 22, 2023

大佬写个教程

基于ARM架构适配的docker微信机器人,欢迎大佬们享用:
https://blog.linrol.cn/archives/1703220186416

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants