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
48.66k stars 2.72k forks source link

Intel & AMD Selector small issue #567

Open sickcodes opened 2 years ago

sickcodes commented 2 years ago

May be required to run latest (ventura):

-e CPU='Haswell-noTSX,vendor=GenuineIntel,+invtsc,+hypervisor,kvm=on,vmware-cpuid-freq=on'

-e CPU='host,vendor=GenuineIntel,+invtsc,+hypervisor,kvm=on,vmware-cpuid-freq=on'

For example:

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \
    -e GENERATE_UNIQUE=true \
     -e CPU='Haswell-noTSX,vendor=GenuineIntel,+invtsc,+hypervisor,kvm=on,vmware-cpuid-freq=on' \
    sickcodes/docker-osx:ventura
dcarbone commented 2 years ago

The latest update broke my functioning catalina image 2 hours before a presentation :(

Error message:

Screenshot_20221118_082112

Updating cpu & cpuid flags (the example and the comments above it differ...), ensuring the plist is provided and GENERATE_UNIQUE being set do not effect the error.

I assume this is related to something within this opencore pr...

sickcodes commented 2 years ago

I apologize for that, it's due to naked being built off old latest, I was building it twice in a row but then had some Docker issue with latest Docker-CE not being backwards compatible for some reason. Rebuilding it now to push. And also my screenshot test failed coz EFI shows in boot menu now and became first boot option

dcarbone commented 2 years ago

no worries, man :) this is an awesome project!

sickcodes commented 2 years ago

Thanks mate!

The issue will solve by using the previous plist:

-e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/catalina/config-custom.plist'

I made a catalina branch to hold it there while I update and make sure all the images work

MichaelZingman commented 1 year ago

May be required to run latest (ventura):

  • AMD:

-e CPU='Haswell-noTSX,vendor=GenuineIntel,+invtsc,+hypervisor,kvm=on,vmware-cpuid-freq=on'

  • Intel

-e CPU='host,vendor=GenuineIntel,+invtsc,+hypervisor,kvm=on,vmware-cpuid-freq=on'

For example:

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \
    -e GENERATE_UNIQUE=true \
     -e CPU='Haswell-noTSX,vendor=GenuineIntel,+invtsc,+hypervisor,kvm=on,vmware-cpuid-freq=on' \
    sickcodes/docker-osx:ventura

Did this every get integrated into Ventura as it is needed to perform updates now