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
40.28k stars 1.92k forks source link

Big Sur not booting #269

Open pavitarsaini opened 3 years ago

pavitarsaini commented 3 years ago

After initial install of Big Sur, I attempt to boot into the OS and get this error. I am unable to understand what the error is about.

ERROR

Screenshot from 2021-05-03 15-14-51

Command Used

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e RAM=10 \
    sickcodes/docker-osx:big-sur

System Info

Linux RBS 5.8.0-50-generic #56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
:0
1
NAME="Ubuntu"
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p6  118G   47G   66G  42% /
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.15)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 6.0.0
              total        used        free      shared  buff/cache   available
Mem:           15Gi        11Gi       315Mi       517Mi       4.0Gi       3.5Gi
Swap:         2.0Gi       143Mi       1.9Gi
8
16
crw-rw----+ 1 root kvm 10, 232 May  3 14:11 /dev/kvm
total 8.0K
drwxrwxrwt  2 root root 4.0K May  3 12:01 .
drwxrwxrwt 20 root root 4.0K May  3 15:15 ..
srwxrwxrwx  1 pav  pav     0 May  3 12:01 X0
root        1774  0.0  0.5 1390432 84768 ?       Ssl  14:06   0:00 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
root        6397  0.0  0.0  17672   732 pts/1    S+   15:16   0:00 grep --color=auto dockerd
02cd22a3579f   sickcodes/docker-osx:big-sur   "/bin/bash -c 'sudo …"   About an hour ago   Up About an hour   0.0.0.0:50922->10022/tcp, :::50922->10022/tcp   compassionate_shaw
kvm:x:108:
libvirt:x:134:pav
libvirt-qemu:x:64055:libvirt-qemu
libvirt-dnsmasq:x:135:
docker:x:998:
sickcodes commented 3 years ago

Testing now

sickcodes commented 3 years ago

https://github.com/thenickdude/KVM-Opencore/commit/ad68dac32a27131b78265235d0ba04ccaef53d68

Fixing!

sickcodes commented 3 years ago

Working, just making sure: https://github.com/sickcodes/osx-serial-generator/pull/12

And I will update the images

sickcodes commented 3 years ago

Please add the following lines and you will be able to boot Big Sur!

    -e GENERATE_UNIQUE=true \
    -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist \
marcellodesales commented 3 years ago

@sickcodes it generates, but have you fixed the use case where the QEMU screen is stuck without mouse/keyboard????

Screen Shot 2021-05-05 at 1 14 22 PM

sickcodes commented 3 years ago

I don't know why Plasma desktop is having this issue, but its unrelated to Docker-OSX.

Try VNC?

https://github.com/sickcodes/Docker-OSX#building-a-headless-container-which-allows-insecure-vnc-on-localhost-for-local-use-only