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

Can't Boot because I get this Error. #8

Open TylerJaacks opened 3 years ago

TylerJaacks commented 3 years ago

tylerjaacks@Tyler-Jaacks-MacBook-Pro images % docker run -it --privileged \ --device /dev/kvm \ -e RAM=6 \ -e HFS_MAIN=./images/hfs.main \ -e HFS_SEC=./images/hfs.sec \ -p 2222:2222 \ -v "$PWD:/home/arch/docker-eyeos/images" \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -p 1233:1234 \ -e GDB_ARGS='-S -s' \ sickcodes/docker-eyeos:latest ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 nohup: appending output to 'nohup.out' Unable to init server: Could not connect: Connection refused gtk initialization failed tylerjaacks@Tyler-Jaacks-MacBook-Pro images % ls hfs.main hfs.main.zst hfs.sec hfs.sec.zst tylerjaacks@Tyler-Jaacks-MacBook-Pro images %

sickcodes commented 3 years ago

This repo only works on Linux, otherwise you can follow this https://github.com/alephsecurity/xnu-qemu-arm64/wiki/Build-iOS-on-QEMU.

I should make the Mac version tho!

wilj commented 2 years ago

I was getting the same error under Linux, and it turned out I needed to allow the connection using xhost: http://manpages.ubuntu.com/manpages/jammy/en/man1/xhost.1.html

I'm guessing you can probably close this issue.

VanHoevenTR commented 2 years ago

@wilj Thanks, fixed with just xhost local:

Now QEMU boots up but it hangs on Thu Jan 1 00:01:26 1970 localhost com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.system) <Error>: Could not read path: path = /AppleInternal/Library/LaunchDaemons, error = 2: No such file or directory

Any idea?

logs.txt

wilj commented 2 years ago

@wilj Thanks, fixed with just xhost local:

Now QEMU boots up but it hangs on Thu Jan 1 00:01:26 1970 localhost com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.system) <Error>: Could not read path: path = /AppleInternal/Library/LaunchDaemons, error = 2: No such file or directory

Any idea?

logs.txt

Someone else had a similar error setting up an iOS VM in another project and they link to a tutorial for working around it. Maybe there's a setting/option in their instructions that you need?

https://github.com/TrungNguyen1909/qemu-t8030/issues/2

https://github.com/TrungNguyen1909/qemu-t8030/wiki/Bringing-up-the-emulator

VanHoevenTR commented 2 years ago

Someone else had a similar error setting up an iOS VM in another project and they link to a tutorial for working around it. Maybe there's a setting/option in their instructions that you need?

TrungNguyen1909/qemu-t8030#2

https://github.com/TrungNguyen1909/qemu-t8030/wiki/Bringing-up-the-emulator

I'm not sure if it's related. How did you got it work?

My PC is Dell Optiplex 7010 with Nvidia Geforce GT 710, the docker-OSX works perfectly

newthis commented 4 months ago

Could not read path: path = /AppleInternal/Library/LaunchDaemons, error = 2: No such file or directory

I meet this problem too, have you ever fixed it?