remote-android / redroid-doc

redroid (Remote-Android) is a multi-arch, GPU enabled, Android in Cloud solution. Track issues / docs here
4.36k stars 313 forks source link

Mac m1 pd_to ubuntu2004 .The container is alive but not connected #336

Open zeke-chin opened 1 year ago

zeke-chin commented 1 year ago

Mac m1 =--=Parallels Desktop=--=> ubuntu 20.04 arm

(base) ╭─root at ubuntu2004 in ~/test 23-03-11 - 19:08:40
╰─○ uname -a
Linux ubuntu2004 5.15.0-67-generic #74~20.04.1-Ubuntu SMP Wed Feb 22 14:52:19 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
(base) ╭─root at ubuntu2004 in ~/test 23-03-11 - 19:08:40
╰─○ cat docker-compose.yml
version: '3.9'
services:
  mycontainer:
    image: redroid/redroid:12.0.0-arm64
    privileged: true
    volumes:
      - ./data:/data
    ports:
      - "5555:5555"
    environment:
      - redroid.gpu.mode=guest

The container is alive but not connected

Describe the bug adb connection will be disconnected will in link use scrcpy

❯ scrcpy --serial 10.211.55.10:5555
scrcpy 1.25 <https://github.com/Genymobile/scrcpy>
adb: error: connect failed: closed
2023-03-11 18:56:02.532 scrcpy[38816:8479957] ERROR: "adb push" returned with value 1
2023-03-11 18:56:02.532 scrcpy[38816:8479953] ERROR: Server connection failed

make sure the required kernel modules present

[tmp.Ir7DghaksK.tgz](https://github.com/remote-android/redroid-doc/files/10948374/tmp.Ir7DghaksK.tgz)
sh
╰─○ grep binder /proc/filesystems
nodev   binder
(base) ╭─root at ubuntu2004 in ~/test 23-03-11 - 19:01:49
╰─○ grep ashmem /proc/misc
123 ashmem

collect debug logs curl -fsSL https://raw.githubusercontent.com/remote-android/redroid-doc/master/debug.sh | sudo bash -s -- [CONTAINER] omit CONTAINER if not exist any more.

debug for container

zhouziyang commented 1 year ago

Try redroid/redroid:12.0.0_64only-latest since only aarch64 supported in Apple silicon.

Refer #304, seems virgl can be setup to accelerate graphics.

upcsyq commented 1 year ago

it is ok now?

Stapxs commented 1 year ago

it is ok now?

Just use redroid/redroid:12.0.0_64only-latest and it seems to work fine.

image
f1shy-dev commented 7 months ago

Random but what shell app is that, @Stapxs

Stapxs commented 7 months ago

Random but what shell app is that, @Stapxs

https://github.com/Eugeny/tabby