Docker-eyeOS icon indicating copy to clipboard operation
Docker-eyeOS copied to clipboard

I get an error message when I try to run it

Open JKakaofanatiker opened this issue 5 years ago • 17 comments

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

JKakaofanatiker avatar Oct 03 '20 08:10 JKakaofanatiker

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 avatar Oct 03 '20 08:10 sickcodes

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

sickcodes avatar Oct 03 '20 08:10 sickcodes

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

sickcodes avatar Oct 03 '20 08:10 sickcodes

I'm using Linux

JKakaofanatiker avatar Oct 03 '20 10:10 JKakaofanatiker

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

sickcodes avatar Oct 03 '20 10:10 sickcodes

1.I have QEMU

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

JKakaofanatiker avatar Oct 03 '20 10:10 JKakaofanatiker

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

sickcodes avatar Oct 03 '20 11:10 sickcodes

Screenshot_20201003_151243 I have them

JKakaofanatiker avatar Oct 03 '20 13:10 JKakaofanatiker

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 avatar Oct 03 '20 15:10 sickcodes

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

sickcodes avatar Oct 04 '20 10:10 sickcodes

OS: Manjaro Kernel: 5.4.67-1-MANJARO

JKakaofanatiker avatar Oct 04 '20 17:10 JKakaofanatiker

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

voideater avatar Oct 12 '20 12:10 voideater

alpine 😅

sickcodes avatar Oct 14 '20 18:10 sickcodes

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

sickcodes avatar Oct 20 '20 16:10 sickcodes

@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!

voideater avatar Oct 21 '20 06:10 voideater

@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

sickcodes avatar Dec 07 '20 00:12 sickcodes

$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

newthis avatar Mar 06 '24 09:03 newthis