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
793 stars 69 forks source link

I get an error message when I try to run it #2

Open JKakaofanatiker opened 3 years ago

JKakaofanatiker commented 3 years ago
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 
nohup: appending output to 'nohup.out'
No protocol specified
Unable to init server: Could not connect: Connection refused
gtk initialization failed
sickcodes commented 3 years ago

https://github.com/sickcodes/Docker-OSX/blob/master/README.md

Try chmod 666 /dev/kvm

Try echo $DISPLAY and use that instead of DISPLAY:-0.0

sickcodes commented 3 years ago

Same troubleshoot instructions as Docker-OSX, I will add to the readme for Docker-eyeOS

sickcodes commented 3 years ago

Are you using Linux? If not, I might make a Dockerfile for Mac

JKakaofanatiker commented 3 years ago

I'm using Linux

sickcodes commented 3 years ago

Confirm you have QEMU https://github.com/sickcodes/Docker-OSX/blob/master/README.md#requirements-kvm-on-the-host

And you can run hardware nested virtualization egrep -c '(svm|vmx)' /proc/cpuinfo

JKakaofanatiker commented 3 years ago

1.I have QEMU

2.

egrep -c '(svm|vmx)' /proc/cpuinfo
6
sickcodes commented 3 years ago

You have these two images downloaded? hfs.main hfs.sec

https://github.com/sickcodes/Docker-OSX/issues/43#issuecomment-667650384

https://github.com/sickcodes/Docker-OSX/issues/7#issuecomment-639356240

https://github.com/sickcodes/Docker-OSX/issues/1#issuecomment-640174615

https://github.com/sickcodes/Docker-OSX/issues/4#issuecomment-639557380

JKakaofanatiker commented 3 years ago

Screenshot_20201003_151243 I have them

sickcodes commented 3 years ago

And you have all of these?

Which OS?

# ARCH
sudo pacman -S qemu libvirt dnsmasq virt-manager bridge-utils flex bison iptables-nft edk2-ovmf

# UBUNTU DEBIAN
sudo apt install qemu qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager

# CENTOS RHEL FEDORA
sudo yum install libvirt qemu-kvm -y

# then run
sudo systemctl enable libvirtd.service
sudo systemctl enable virtlogd.service
sudo modprobe kvm

# reboot
sickcodes commented 3 years ago

Let us know when you got it working, or let me know OS so I can replicate. Will add to docs

JKakaofanatiker commented 3 years ago

OS: Manjaro Kernel: 5.4.67-1-MANJARO

voideater commented 3 years ago

I also had this error, solved by running xhost + (install x11-xserver-utils if running xhost returns an error).

Btw, @sickcodes , what is the root password when ssh'ing into the container? Just got it running but can't figure out the password. :x

sickcodes commented 3 years ago

alpine 😅

sickcodes commented 3 years ago

Hey @voideater how'd you go? 😁? Everything worked?

voideater commented 3 years ago

@sickcodes indeed it does! Only played a bit around with it so far (as everyone else, too much other stuff going on at work, haha) - I'll see if I can find some good use for this once I get some more spare time. Definitely a lot of potential here at least!

sickcodes commented 3 years ago

@sickcodes indeed it does! Only played a bit around with it so far (as everyone else, too much other stuff going on at work, haha) - I'll see if I can find some good use for this once I get some more spare time. Definitely a lot of potential here at least!

Thanks!

Staying on the pulse 😁

Upstream work gets released here:

https://twitter.com/alephsecurity

https://twitter.com/jonathanafek

https://twitter.com/v3rochka

https://twitter.com/levaronsky

And of course if there are updates with new iOS versions, I'll post on mine:

https://twitter.com/sickcodes

newthis commented 4 months ago

$DISPLAY

I have run these commands, but still can not run eyeOs container. The error is: ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 nohup: appending output to 'nohup.out' No protocol specified Unable to init server: Could not connect: Connection refused gtk initialization failed,

Operating system: ubuntu 16.04 desktop, the $DISPLAY is :0

And the command is: sudo docker run -it --privileged --device /dev/kvm -p 2222:2222 \ -v /tmp/.X11-unix:/tmp/.X11-unix -v /mnt/hgfs/repos/eye_os:/home/arch/docker-eyeos/images \ -e RAM=6 \ -e "DISPLAY=:0" \ -e HFS_MAIN=/home/arch/docker-eyeos/images/hfs.main \ -e HFS_SEC=/home/arch/docker-eyeos/images/hfs.sec sickcodes/docker-eyeos:latest