redroid-doc icon indicating copy to clipboard operation
redroid-doc copied to clipboard

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

Open zeke-chin opened this issue 2 years ago • 9 comments

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

  • grep binder /proc/filesystems
[tmp.Ir7DghaksK.tgz](https://github.com/remote-android/redroid-doc/files/10948374/tmp.Ir7DghaksK.tgz)
sh
╰─○ grep binder /proc/filesystems
nodev	binder
  • grep ashmem /proc/misc
(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

zeke-chin avatar Mar 11 '23 11:03 zeke-chin

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.

zhouziyang avatar Mar 11 '23 13:03 zhouziyang

it is ok now?

upcsyq avatar Sep 20 '23 11:09 upcsyq

it is ok now?

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

image

Stapxs avatar Nov 16 '23 01:11 Stapxs

Random but what shell app is that, @Stapxs

f1shy-dev avatar Apr 11 '24 22:04 f1shy-dev

Random but what shell app is that, @Stapxs

https://github.com/Eugeny/tabby

Stapxs avatar Apr 11 '24 23:04 Stapxs