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

One system works; one hangs. Same OS; same docker version #595

Open dgk4201 opened 1 year ago

dgk4201 commented 1 year ago

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

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

dgk4201 commented 1 year ago

I have two system. One runs fine the other hangs. Both are running PopOS 22.04, with docker version 20.10.21, build baeda1f.

The successful system is an old Apple Mac Mini (2014). I’ve installed Monterey, Catalina, Big Sur, and Ventura. NAME="Pop!_OS" PRETTY_NAME="Pop!_OS 22.04 LTS" VERSION_CODENAME=jammy UBUNTU_CODENAME=jammy Filesystem Size Used Avail Use% Mounted on /dev/sda3 461G 131G 307G 30% / Command 'qemu-system-x86_64' not found, but can be installed with: sudo apt install qemu-system-x86 # version 1:6.2+dfsg-2ubuntu6.6, or (You will have to enable component called 'main') sudo apt install qemu-system-x86-xen # version 1:6.2+dfsg-2ubuntu6.6 (You will have to enable component called 'universe') Command 'libvirtd' not found, but can be installed with: sudo apt install libvirt-daemon total used free shared buff/cache available Mem: 7.6Gi 1.7Gi 3.9Gi 485Mi 2.0Gi 5.2Gi Swap: 4.0Gi 1.5Gi 2.5Gi 4 8 crw-rw----+ 1 root kvm 10, 232 Dec 15 08:25 /dev/kvm total 8.0K drwxrwxrwt 2 root root 4.0K Dec 12 12:12 . drwxrwxrwt 21 root root 4.0K Dec 15 08:20 .. srwxrwxrwx 1 admin admin 0 Dec 12 12:11 X1 root 1454 0.0 0.4 1669608 34948 ? SNsl Dec12 3:35 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock admin 56873 0.0 0.0 19012 2376 pts/0 S<+ 10:49 0:00 grep --color=auto dockerd kvm:x:109: docker:x:999:admin admin@pop-os:~$

The system that hangs is a new HP Dev One (AMD Ryzen 7 PRO 5850U) NAME="Pop!_OS" PRETTY_NAME="Pop!_OS 22.04 LTS" VERSION_CODENAME=jammy UBUNTU_CODENAME=jammy Filesystem Size Used Avail Use% Mounted on /dev/mapper/data-root 934G 50G 837G 6% / QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.6) Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers libvirtd (libvirt) 8.0.0 total used free shared buff/cache available Mem: 14Gi 2.5Gi 10Gi 42Mi 2.0Gi 12Gi Swap: 0B 0B 0B 16 16 crw-rw----+ 1 root kvm 10, 232 Dec 15 10:35 /dev/kvm total 8.0K drwxrwxrwt 2 root root 4.0K Dec 15 09:14 . drwxrwxrwt 21 root root 4.0K Dec 15 09:17 .. srwxrwxrwx 1 dgk dgk 0 Dec 15 09:14 X1 root 1244 0.0 0.4 2261296 68284 ? SNsl 09:14 0:01 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock dgk 25088 0.0 0.0 19012 2400 pts/0 S<+ 10:43 0:00 grep --color=auto dockerd kvm:x:109: docker:x:999:dgk libvirt:x:136:dgk libvirt-qemu:x:64055:libvirt-qemu libvirt-dnsmasq:x:137: dgk@pop-os:~$

Here is where the system hangs. I just keeps repeating the qemu error.

audio: Failed to create voice `adc' qemu: Slirp: Failed to send packet, ret: -1 qemu: Slirp: Failed to send packet, ret: -1 qemu: Slirp: Failed to send packet, ret: -1

Any ideas? Thanks.

maietta commented 1 year ago

Curious why you closed this as completed after asking the question "Any ideas? Thanks".

Either you want help or you don't. Which is it?

dgk4201 commented 1 year ago

My mistake; thought I was closing the note. Yes, I want help.

atb, Dan Kalagher 978-337-4201

On Thu, Dec 15, 2022 at 11:11 AM Nick Maietta @.***> wrote:

Curious why you closed this as completed after asking the question "Any ideas? Thanks".

Either you want help or you don't. Which is it?

— Reply to this email directly, view it on GitHub https://github.com/sickcodes/Docker-OSX/issues/595#issuecomment-1353335718, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJEJE7QNDJ5SRDQSUJL4ULWNM7L7ANCNFSM6AAAAAAS74OS4E . You are receiving this because you modified the open/close state.Message ID: @.***>

maietta commented 1 year ago

Okay cool. I'm still working on resolving my issue but I can't get to it right now. It's similar to yours. My OSX works on one machine but not other.

I am using Ubuntu Desktop 22.04 LTS.

dgk4201 commented 1 year ago

I'm not sure exactly how, but I fixed the issue. I was able to install both Monterey and Ventura. What I did:

Works fine now. Next, I'd like to get sound working.

mike-lloyd03 commented 1 year ago

I'm having a very similar issue. The same image loads and runs correctly on an old Macbook running Arch but when I try it on a Ryzen machine also running Arch, the machine hangs on boot at the Apple logo and progress bar. I can't figure out why this is and I don't know how to troubleshoot it.

mike-lloyd03 commented 1 year ago

Actually, it turns out that the machine isn't hanging, just the loading screen doesn't fully disappear. The machine appears on the network and I can send keystrokes to it, but that Apple logo won't go away. It's slightly transparent over the desktop. Screenshot_20221221_234606