sickcodes / Docker-eyeOS

Run iPhone (xnu-arm64) in a Docker container! Supports KVM + iOS kernel debugging (GDB)! Run xnu-qemu-arm64 in Docker! Works on ANY device.
https://hub.docker.com/r/sickcodes/docker-eyeos
GNU General Public License v3.0
796 stars 69 forks source link

Docker won't start on Container Station #12

Closed AndnixSH closed 2 years ago

AndnixSH commented 2 years ago

I'm trying to run it on my QNAP's Container Station but getting the following errors and it shuts down.

My QNAP is TS451+ running QTS 5.0 with Linux Kernel 5.10

ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 
nohup: appending output to 'nohup.out'
/home/arch/docker-eyeos/hfs.main: No such file or directory
/home/arch/docker-eyeos/hfs.main: CAN'T CHECK FILE SYSTEM.
/home/arch/docker-eyeos/hfs.main: UNEXPECTED INCONSISTENCY; RUN fsck_hfs MANUALLY.
/home/arch/docker-eyeos/hfs.sec: No such file or directory
/home/arch/docker-eyeos/hfs.sec: CAN'T CHECK FILE SYSTEM.
/home/arch/docker-eyeos/hfs.sec: UNEXPECTED INCONSISTENCY; RUN fsck_hfs MANUALLY.
Unable to init server: Could not connect: Connection refused
bash: line 13:    20 Aborted                 sudo xnu-qemu-arm64/aarch64-softmmu/qemu-system-aarch64 -M iPhone6splus-n66-s8000,kernel-filename=/home/arch/docker-eyeos/kernelcache.release.n66.out,dtb-filename=/home/arch/docker-eyeos/Firmware/all_flash/DeviceTree.n66ap.im4p.out,driver-filename=/home/arch/docker-eyeos/aleph_bdev_drv.bin,qc-file-0-filename=/home/arch/docker-eyeos/hfs.main,qc-file-1-filename=/home/arch/docker-eyeos/hfs.sec,kern-cmd-args="debug=0x8 kextlog=0xfff cpus=1 rd=disk0 serial=2",xnu-ramfb=off -cpu max -m ${RAM:-6}G -serial mon:stdio -vga std ${EXTRA:-}
nohup: appending output to 'nohup.out'
/home/arch/docker-eyeos/hfs.main: No such file or directory
/home/arch/docker-eyeos/hfs.main: CAN'T CHECK FILE SYSTEM.
/home/arch/docker-eyeos/hfs.main: UNEXPECTED INCONSISTENCY; RUN fsck_hfs MANUALLY.
/home/arch/docker-eyeos/hfs.sec: No such file or directory
/home/arch/docker-eyeos/hfs.sec: CAN'T CHECK FILE SYSTEM.
/home/arch/docker-eyeos/hfs.sec: UNEXPECTED INCONSISTENCY; RUN fsck_hfs MANUALLY.
Unable to init server: Could not connect: Connection refused
bash: line 13:    21 Aborted                 sudo xnu-qemu-arm64/aarch64-softmmu/qemu-system-aarch64 -M iPhone6splus-n66-s8000,kernel-filename=/home/arch/docker-eyeos/kernelcache.release.n66.out,dtb-filename=/home/arch/docker-eyeos/Firmware/all_flash/DeviceTree.n66ap.im4p.out,driver-filename=/home/arch/docker-eyeos/aleph_bdev_drv.bin,qc-file-0-filename=/home/arch/docker-eyeos/hfs.main,qc-file-1-filename=/home/arch/docker-eyeos/hfs.sec,kern-cmd-args="debug=0x8 kextlog=0xfff cpus=1 rd=disk0 serial=2",xnu-ramfb=off -cpu max -m ${RAM:-6}G -serial mon:stdio -vga std ${EXTRA:-}
nohup: appending output to 'nohup.out'
/home/arch/docker-eyeos/hfs.main: No such file or directory
/home/arch/docker-eyeos/hfs.main: CAN'T CHECK FILE SYSTEM.
/home/arch/docker-eyeos/hfs.main: UNEXPECTED INCONSISTENCY; RUN fsck_hfs MANUALLY.
/home/arch/docker-eyeos/hfs.sec: No such file or directory
/home/arch/docker-eyeos/hfs.sec: CAN'T CHECK FILE SYSTEM.
/home/arch/docker-eyeos/hfs.sec: UNEXPECTED INCONSISTENCY; RUN fsck_hfs MANUALLY.
Unable to init server: Could not connect: Connection refused
bash: line 13:    19 Aborted                 sudo xnu-qemu-arm64/aarch64-softmmu/qemu-system-aarch64 -M iPhone6splus-n66-s8000,kernel-filename=/home/arch/docker-eyeos/kernelcache.release.n66.out,dtb-filename=/home/arch/docker-eyeos/Firmware/all_flash/DeviceTree.n66ap.im4p.out,driver-filename=/home/arch/docker-eyeos/aleph_bdev_drv.bin,qc-file-0-filename=/home/arch/docker-eyeos/hfs.main,qc-file-1-filename=/home/arch/docker-eyeos/hfs.sec,kern-cmd-args="debug=0x8 kextlog=0xfff cpus=1 rd=disk0 serial=2",xnu-ramfb=off -cpu max -m ${RAM:-6}G -serial mon:stdio -vga std ${EXTRA:-}
sickcodes commented 2 years ago

Unable to init server: Could not connect: Connection refused

This means there is no Display attached or the user doesn't have permission to launch GTK windows.

https://github.com/sickcodes/Docker-OSX#libgtk-errors-connection-refused

Specifically https://github.com/sickcodes/Docker-OSX/issues/174#issuecomment-796454057

AndnixSH commented 2 years ago

Oh ok. It seems the container station doesn't support display, still getting this error even i gave all permissions in the docker settings

I'll try Linux station since it supports display

AndnixSH commented 2 years ago

no luck running docker on Linux station on QNAP. I Guess I should find other system to run docker

docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: process_linux.go:508: setting cgroup config for procHooks process caused: bpf_prog_query(BPF_CGROUP_DEVICE) failed: function not implemented: unknown.
ERRO[0007] error waiting for container: context canceled