Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JKakaofanatiker opened this issue Oct 3, 2020 · 17 comments
Open

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

JKakaofanatiker opened this issue Oct 3, 2020 · 17 comments

Comments

@JKakaofanatiker
Copy link

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
Copy link
Owner

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
Copy link
Owner

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

@sickcodes
Copy link
Owner

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

@JKakaofanatiker
Copy link
Author

I'm using Linux

@sickcodes
Copy link
Owner

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
Copy link
Author

1.I have QEMU

egrep -c '(svm|vmx)' /proc/cpuinfo
6

@sickcodes
Copy link
Owner

@JKakaofanatiker
Copy link
Author

Screenshot_20201003_151243
I have them

@sickcodes
Copy link
Owner

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
Copy link
Owner

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

@JKakaofanatiker
Copy link
Author

OS: Manjaro
Kernel: 5.4.67-1-MANJARO

@voideater
Copy link

voideater commented Oct 12, 2020

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
Copy link
Owner

alpine 😅

@sickcodes
Copy link
Owner

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

@voideater
Copy link

@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
Copy link
Owner

@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
Copy link

newthis commented Mar 6, 2024

$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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants