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

MACH REBOOT CPU ERROR: Memory panic on mac os monterey #401

Open sjhaleprogrammer opened 2 years ago

sjhaleprogrammer commented 2 years ago

Linux samuel-rogzephyrusg15ga503qrga503qr 5.15.6-arch2-1 #1 SMP PREEMPT Thu, 02 Dec 2021 15:47:09 +0000 x86_64 GNU/Linux :0.0

image

getting memory panic on monterey

MikeCoder96 commented 2 years ago

Duplicate Here

sickcodes commented 2 years ago

Anyone getting CPU errors, these should fix the problem, if so, please let me know and Ill update the readme

# Catalina, Big Sur
    -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/d5f3ff3f81d13d696556b78024fbebde8e5b7281/config-custom.plist \

# Self PR for Monterey
    -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/811c14c4b43ba4d0b20a22480975a91e3e176d72/config-custom.plist' \

# Master
    -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \
sickcodes commented 2 years ago

This should be fixed in all images, please reply if it has not

I-Want-ToBelieve commented 2 years ago

@sickcodes Linux arch 5.15.13-arch1-1 #1 SMP PREEMPT Wed, 05 Jan 2022 16:20:59 +0000 x86_64 GNU/Linux

docker run -it \
          --device /dev/kvm \
          -p 50922:10022 \
          -v /tmp/.X11-unix:/tmp/.X11-unix \
          -e "DISPLAY=:0" \
          -e GENERATE_UNIQUE=true \
          -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/811c14c4b43ba4d0b20a22480975a91e3e176d72/config-custom.plist' \
          sickcodes/docker-osx:monterey

image

JustJoostNL commented 2 years ago

I have the Mach reboot issue still on the Monterey one, I don't know if others work, can someone help me with this?

sickcodes commented 2 years ago

It's usually due to incompatible CPU; or you haven't set up KVM correctly

2shrestha22 commented 2 years ago

Same error for me. Was working before, did all the setup and today I updated my ArchLinux now it does not start. Catalina works Monterey does not.

sickcodes commented 2 years ago

Should be fixed today. 5.18.9

may required modprobe msr cpuid

2shrestha22 commented 2 years ago

Thank you.

imunique-ZJ commented 1 year ago

Still getting same error on Monterey but works on Catalina and Big-Sur. OS: ubuntu 22.04.1 LTS CPU: AMD 4800U

image

smurfxx commented 1 year ago

I get this error installing ventura on a Legion 5 with AMD Ryzen 7 4800H from Ubuntu 22.04.1 LTS and this command: sudo docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" -e RAM=8 -e GENERATE_UNIQUE=true -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' sickcodes/docker-osx:ventura

nullchilly commented 2 months ago

I was able to boot past MACH REBOOT using command from @asies23 on discord

Quote: This is the command I had to use to finally make it boot past the MACH Reboot Error

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -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/osx-serial-generator/master/config-custom.plist' \
    -e "RAM=8" \
    -e CPU='Haswell-noTSX,vendor=GenuineIntel,+invtsc,+hypervisor,kvm=on,vmware-cpuid-freq=on' \
    -e EXTRA="-smp 8,sockets=1,cores=4,threads=2" \
    sickcodes/docker-osx:ventura

# docker build -t docker-osx --build-arg SHORTNAME=ventura .
image
JAicewizard commented 1 month ago

See https://github.com/sickcodes/Docker-OSX/issues/380#issuecomment-2143425540, maybe also resolves this issue.