lukechilds / dockerpi

A Virtualised Raspberry Pi inside a Docker image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using dockerpi to run other ditros' rpi based ARM images

AnatoleLucet opened this issue · comments

I'm trying to run dockerpi using this Kali linux ARM image (I'm using the last one Kali Linux RaspberryPi 2 (v1.2), 3 and 4 64-Bit).

When running: docker run -it -v <my image path>:/sdcard/filesystem.img lukechilds/dockerpi:vm

The logs ends with this:

Run /sbin/init as init process
request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
Starting init: /sbin/init exists but couldn't execute it (error -8)
Run /etc/init as init process
Run /bin/init as init process
Run /bin/sh as init process
request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
Starting init: /bin/sh exists but couldn't execute it (error -8)
Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
CPU: 0 PID: 1 Comm: swapper Not tainted 4.19.50+ #1
Hardware name: ARM-Versatile (Device Tree Support)
[<c001d230>] (unwind_backtrace) from [<c00190ac>] (show_stack+0x10/0x14)
[<c00190ac>] (show_stack) from [<c0025f14>] (panic+0xc8/0x240)
[<c0025f14>] (panic) from [<c054b434>] (kernel_init+0xb8/0xe8)
[<c054b434>] (kernel_init) from [<c00090e8>] (ret_from_fork+0x14/0x2c)
Exception stack(0xcf823fb0 to 0xcf823ff8)
3fa0:                                     00000000 00000000 00000000 00000000
3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
Rebooting in 1 seconds..

Sorry, I'm not too sure, I've only tested with Raspbian images. I'm guessing those Kali images aren't based on Raspbian then?

Unfortunately I don't really have time to look into this and work on support for Kali, but if you can get it working and it's only a simple change I'd certainly be interested in accepting a PR.

I don't think I'm good enough with Linux to do this kind of contribution.
I let you make the choice to close this issue or not if you want to implement Kali. For my case I can find a workaround...
Thank you anyway!