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

Open
opened 2025-12-29 01:20:38 +01:00 by adam · 5 comments
Owner

Originally created by @gabeklavans on GitHub (Jul 21, 2023).

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
Originally created by @gabeklavans on GitHub (Jul 21, 2023). 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](https://github.com/sickcodes/Docker-OSX/files/12114989/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 ```
Author
Owner

@gabeklavans commented on GitHub (Jul 21, 2023):

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?

@gabeklavans commented on GitHub (Jul 21, 2023): 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?
Author
Owner

@phatpaul commented on GitHub (Aug 17, 2023):

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.

@phatpaul commented on GitHub (Aug 17, 2023): 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.
Author
Owner

@gdotdesign commented on GitHub (Oct 3, 2023):

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

@gdotdesign commented on GitHub (Oct 3, 2023): I can confirm that @gabeklavans workaround works for me too.
Author
Owner

@yajuve commented on GitHub (Oct 31, 2023):

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

@yajuve commented on GitHub (Oct 31, 2023): > 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
Author
Owner

@biemster commented on GitHub (Mar 3, 2024):

This fixed it for me too

@biemster commented on GitHub (Mar 3, 2024): This fixed it for me too
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#514