redroid-doc
redroid-doc copied to clipboard
Container crashed immediately without any logs when lauching (Running in a lxc container on Proxmox VE)
Describe the bug I think to make redroid running in a lxc container would get a perfect memory usage than running in a VM, so I tried to do this.
Steps to reproduce:
- Proxmox VE is a Linux distribution based on Debian, so I firstly ensure some essential kernel modules enabled in host.
# lsmod | grep binder
binder_linux 212991 0
# lsmod | grep ashmem
ashmem_linux 20481 0
- Create a privileged lxc container (Debian 12)
- Install docker-ce in lxc container
- Make sure kernel modules are visible in lxc container
# lsmod | grep binder
binder_linux 212991 0
# lsmod | grep ashmem
ashmem_linux 20481 0
- Check binder devices exists in
/dev
of lxc container, but I found it's not in/dev
folder, so I choice to create and mount it manually
mkdir /dev/binderfs
mount -t binder binder /dev/binderfs
- Try to launch ReDroid container
docker run -it --privileged
--pull always
-v /dev/binderfs/binder:/dev/binder
-v /dev/binderfs/hwbinder:/dev/hwbinder
-v /dev/binderfs/vndbinder:/dev/vndbinder
-v ~/data8:/data
-p 5555:5555
--rm
redroid/redroid:8.1.0-latest
- I got container crashed immediately without any logs.
dmesg -T
just only
[Thu Dec 21 03:23:04 2023] docker0: port 1(veth0e65d09) entered blocking state
[Thu Dec 21 03:23:04 2023] docker0: port 1(veth0e65d09) entered disabled state
[Thu Dec 21 03:23:04 2023] device veth0e65d09 entered promiscuous mode
[Thu Dec 21 03:23:05 2023] eth0: renamed from vethc2533da
[Thu Dec 21 03:23:05 2023] IPv6: ADDRCONF(NETDEV_CHANGE): veth0e65d09: link becomes ready
[Thu Dec 21 03:23:05 2023] docker0: port 1(veth0e65d09) entered blocking state
[Thu Dec 21 03:23:05 2023] docker0: port 1(veth0e65d09) entered forwarding state
[Thu Dec 21 03:23:07 2023] docker0: port 1(veth0e65d09) entered disabled state
[Thu Dec 21 03:23:07 2023] vethc2533da: renamed from eth0
[Thu Dec 21 03:23:08 2023] docker0: port 1(veth0e65d09) entered disabled state
[Thu Dec 21 03:23:08 2023] device veth0e65d09 left promiscuous mode
[Thu Dec 21 03:23:08 2023] docker0: port 1(veth0e65d09) entered disabled state
docker logs redroid8
got nothing.
make sure the required kernel modules present
- [x]
grep binder /proc/filesystems
gotnodev binder
- [x]
grep ashmem /proc/misc
got123 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.
see info above, I have some privacy concern about this, please let me know if you need more information, sorry.
Screenshots If applicable, add screenshots to help explain your problem.