sickcodes / Docker-OSX

Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.
https://hub.docker.com/r/sickcodes/docker-osx
GNU General Public License v3.0
36.1k stars 1.78k forks source link

Blank screen when using naked/naked:auto with hosted .img files #680

Open gabeklavans opened 11 months ago

gabeklavans commented 11 months ago

As title says, if I run the command verbatim from the docs:

wget https://images2.sick.codes/mac_hdd_ng_auto.img

docker run -it \    
    --device /dev/kvm \                     
    -p 50922:10022 \                  
    -v "${PWD}/mac_hdd_ng_auto.img:/image" \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \                                                                                        
    -e GENERATE_UNIQUE=true \ 
    -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist \
    sickcodes/docker-osx:naked

It boots up, I see the boot loader go and some text, and then I get a blank screen. No input does anything. I also tried with VNC. Using the OS-base containers work fine, like :latest and :high-sierra. But when I try this or when I try to extract the .img files from any of them and use one of those, I just get this blank black screen.

Here's a log of the output of the docker run command (i hope there's no sensitive info in there heh) log.txt

Here's my system info:

NAME="Nobara Linux"
VERSION_CODENAME=""
PRETTY_NAME="Nobara Linux 37 (KDE Plasma)"
CPE_NAME="cpe:/o:nobaraproject:nobara:37"
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p3  430G  195G  235G  46% /home
QEMU emulator version 7.0.0 (qemu-7.0.0-15.fc37)
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 8.6.0
               total        used        free      shared  buff/cache   available
Mem:            31Gi       4.6Gi        17Gi       135Mi       9.4Gi        24Gi
Swap:           42Gi          0B        42Gi
12
12
crw-rw-rw- 1 root kvm 10, 232 Jul 20 20:22 /dev/kvm
total 0
drwxrwxrwt  2 root root  60 Jul 20 20:13 .
drwxrwxrwt 22 root root 560 Jul 20 20:24 ..
srwxrwxrwx  1 root root   0 Jul 20 20:13 X0
root        4004  0.1  0.2 2573500 85908 ?       Ssl  20:14   0:01 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
gabe        9761  0.0  0.0 222156  2176 pts/3    S+   20:24   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox dockerd
e1583f706b17   sickcodes/docker-osx:naked   "/bin/bash -c 'sudo …"   2 minutes ago   Up 2 minutes   0.0.0.0:5999->5999/tcp, :::5999->5999/tcp, 0.0.0.0:50922->10022/tcp, :::50922->10022/tcp   strange_bose
kvm:x:36:qemu,gabe
libvirt:x:977:
docker:x:975:gabe
gabeklavans commented 11 months ago

Looks like if I remove the option: -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist, it works fine. Is this just something I need more configuration for?

phatpaul commented 10 months ago

Same issue here. Thanks @gabeklavans your workaround works for me too, but I have no idea why.

My system is Ubuntu 22.04 on AMD Athlon 3000G.

gdotdesign commented 9 months ago

I can confirm that @gabeklavans workaround works for me too.

yajuve commented 8 months ago

Looks like if I remove the option: -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist, it works fine. Is this just something I need more configuration for?

I tried it and it works now, thanks

biemster commented 4 months ago

This fixed it for me too