:naked fails to start "Could not open '/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2': No such file or directory" #218

Closed
opened 2025-12-29 00:20:42 +01:00 by adam · 3 comments
Owner

Originally created by @GabrielLasso on GitHub (Jul 7, 2021).

OS related issued, please help us identify the issue by posting the output of this

I got an error when I run this command:

~ docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v "${PWD}/mac_hdd_ng.img:/image" \
    sickcodes/docker-osx:naked

nohup: appending output to 'nohup.out'
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 
nohup: appending output to 'nohup.out'
++ id -u
++ id -g
+ sudo chown 1000:1000 /dev/kvm
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /dev/snd
+ [[ 3 = max ]]
+ [[ 3 = half ]]
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /dev/snd
+ exec qemu-system-x86_64 -m 3000 -cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check, -machine q35,accel=kvm:tcg -smp 4,cores=4 -usb -device usb-kbd -device usb-tablet -device 'isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc' -drive if=pflash,format=raw,readonly,file=/home/arch/OSX-KVM/OVMF_CODE.fd -drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd -smbios type=2 -audiodev alsa,id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda -device ich9-ahci,id=sata -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2 -device ide-hd,bus=sata.2,drive=OpenCoreBoot -drive id=MacHDD,if=none,file=/image,format=qcow2 -device ide-hd,bus=sata.4,drive=MacHDD -netdev user,id=net0,hostfwd=tcp::10022-:22,hostfwd=tcp::5900-:5900, -device vmxnet3,netdev=net0,id=net0,mac=52:54:00:09:49:17 -monitor stdio -vga vmware
qemu-system-x86_64: -drive if=pflash,format=raw,readonly,file=/home/arch/OSX-KVM/OVMF_CODE.fd: warning: short-form boolean option 'readonly' deprecated
Please use readonly=on instead
qemu-system-x86_64: -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2: Could not open '/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2': No such file or directory

uname -a
; echo "${DISPLAY}"
; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
; grep NAME /etc/os-release
; df -h .
; qemu-system-x86_64 --version
; libvirtd --version
; free -mh
; nproc
; egrep -c '(svm|vmx)' /proc/cpuinfo
; ls -lha /dev/kvm
; ls -lha /tmp/.X11-unix/
; ps aux | grep dockerd
; docker ps | grep osx
; grep "docker|kvm|virt" /etc/group

Linux manjaro 5.10.47-2-MANJARO #1 SMP PREEMPT Thu Jul 1 17:02:24 UTC 2021 x86_64 GNU/Linux
:0
1
NAME="Manjaro Linux"
PRETTY_NAME="Manjaro Linux"
Sist. Arq.      Tam. Usado Disp. Uso% Montado em
/dev/sda2       101G   89G  7,3G  93% /
QEMU emulator version 6.0.0
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 7.3.0
               total        used        free      shared  buff/cache   available
Mem.:          7,7Gi       2,2Gi       2,2Gi       643Mi       3,3Gi       4,6Gi
Swap:          8,8Gi       0,0Ki       8,8Gi
4
8
crw-rw-rw- 1 root kvm 10, 232 jul  7 09:24 /dev/kvm
total 0
drwxrwxrwt  2 root root  60 jul  7 09:08 .
drwxrwxrwt 13 root root 520 jul  7 09:24 ..
srwxrwxrwx  1 root root   0 jul  7 09:08 X0
root         763  0.1  1.0 3143004 85380 ?       Ssl  09:09   0:01 /usr/bin/dockerd -H fd://
glasso      6186  0.0  0.0   6452  2340 pts/0    S+   09:26   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
kvm:x:992:
docker:x:966:glasso
libvirt:x:961:

Originally created by @GabrielLasso on GitHub (Jul 7, 2021). # OS related issued, please help us identify the issue by posting the output of this I got an error when I run this command: ``` ~ docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v "${PWD}/mac_hdd_ng.img:/image" \ sickcodes/docker-osx:naked nohup: appending output to 'nohup.out' ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 nohup: appending output to 'nohup.out' ++ id -u ++ id -g + sudo chown 1000:1000 /dev/kvm ++ id -u ++ id -g + sudo chown -R 1000:1000 /dev/snd + [[ 3 = max ]] + [[ 3 = half ]] ++ id -u ++ id -g + sudo chown -R 1000:1000 /dev/snd + exec qemu-system-x86_64 -m 3000 -cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check, -machine q35,accel=kvm:tcg -smp 4,cores=4 -usb -device usb-kbd -device usb-tablet -device 'isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc' -drive if=pflash,format=raw,readonly,file=/home/arch/OSX-KVM/OVMF_CODE.fd -drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd -smbios type=2 -audiodev alsa,id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda -device ich9-ahci,id=sata -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2 -device ide-hd,bus=sata.2,drive=OpenCoreBoot -drive id=MacHDD,if=none,file=/image,format=qcow2 -device ide-hd,bus=sata.4,drive=MacHDD -netdev user,id=net0,hostfwd=tcp::10022-:22,hostfwd=tcp::5900-:5900, -device vmxnet3,netdev=net0,id=net0,mac=52:54:00:09:49:17 -monitor stdio -vga vmware qemu-system-x86_64: -drive if=pflash,format=raw,readonly,file=/home/arch/OSX-KVM/OVMF_CODE.fd: warning: short-form boolean option 'readonly' deprecated Please use readonly=on instead qemu-system-x86_64: -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2: Could not open '/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2': No such file or directory ``` uname -a \ ; echo "${DISPLAY}" \ ; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs \ ; grep NAME /etc/os-release \ ; df -h . \ ; qemu-system-x86_64 --version \ ; libvirtd --version \ ; free -mh \ ; nproc \ ; egrep -c '(svm|vmx)' /proc/cpuinfo \ ; ls -lha /dev/kvm \ ; ls -lha /tmp/.X11-unix/ \ ; ps aux | grep dockerd \ ; docker ps | grep osx \ ; grep "docker\|kvm\|virt" /etc/group ``` Linux manjaro 5.10.47-2-MANJARO #1 SMP PREEMPT Thu Jul 1 17:02:24 UTC 2021 x86_64 GNU/Linux :0 1 NAME="Manjaro Linux" PRETTY_NAME="Manjaro Linux" Sist. Arq. Tam. Usado Disp. Uso% Montado em /dev/sda2 101G 89G 7,3G 93% / QEMU emulator version 6.0.0 Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers libvirtd (libvirt) 7.3.0 total used free shared buff/cache available Mem.: 7,7Gi 2,2Gi 2,2Gi 643Mi 3,3Gi 4,6Gi Swap: 8,8Gi 0,0Ki 8,8Gi 4 8 crw-rw-rw- 1 root kvm 10, 232 jul 7 09:24 /dev/kvm total 0 drwxrwxrwt 2 root root 60 jul 7 09:08 . drwxrwxrwt 13 root root 520 jul 7 09:24 .. srwxrwxrwx 1 root root 0 jul 7 09:08 X0 root 763 0.1 1.0 3143004 85380 ? Ssl 09:09 0:01 /usr/bin/dockerd -H fd:// glasso 6186 0.0 0.0 6452 2340 pts/0 S+ 09:26 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 kvm:x:992: docker:x:966:glasso libvirt:x:961: ```
adam closed this issue 2025-12-29 00:20:42 +01:00
Author
Owner

@sickcodes commented on GitHub (Jul 9, 2021):

Depends if your image is named mac_hdd_ng.img but I can see you closed the issue, let me know if you have any other issues :)

@sickcodes commented on GitHub (Jul 9, 2021): Depends if your image is named `mac_hdd_ng.img` but I can see you closed the issue, let me know if you have any other issues :)
Author
Owner

@iamjackg commented on GitHub (Jul 15, 2021):

This is actually still an issue -- looks like the nopicker.qcow2 image doesn't exist anymore: the default image now boots automatically after 120 seconds.

See: https://github.com/kholia/OSX-KVM/tree/master/OpenCore-Catalina

@iamjackg commented on GitHub (Jul 15, 2021): This is actually still an issue -- looks like the nopicker.qcow2 image doesn't exist anymore: the default image now boots automatically after 120 seconds. See: https://github.com/kholia/OSX-KVM/tree/master/OpenCore-Catalina
Author
Owner

@sickcodes commented on GitHub (Jul 16, 2021):

    -e GENERATE_UNIQUE=true \
    -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-nopicker-custom.plist \

@sickcodes commented on GitHub (Jul 16, 2021): ``` -e GENERATE_UNIQUE=true \ -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-nopicker-custom.plist \ ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#218