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.2k stars 1.79k forks source link

Issues with Docker-OSX on Synology #643

Open deten opened 1 year ago

deten commented 1 year ago

I am trying to get Docker-osx to run on my synology box. Here is my run command:

docker run -it \
  --name=docker-osx \
  --device /dev/kvm \
  -p 50922:10022 \
  -p 5999:5999 \
  -e NOPICKER=true \
  -e "DISPLAY=${DISPLAY:-:0.0}" \
  -e GENERATE_UNIQUE=true \
  -e EXTRA="-display none -vnc 0.0.0.0:99,password=on" \
  -e WIDTH=1366 \
  -e HEIGHT=768 \
  -v /volume2/docker/docker-osx/:/config \
  sickcodes/docker-osx:latest 

I am running Synology on DSM6 because 7 messes up some of the USB stuff.

I am able to get to the boot screen, but seem to be stuck there. The error I end with is here:

IOUSBHost Interface(0x100000228): matching deferred by IOUSBHostHIDDevice

Logs Part1: https://pastebin.com/cKDHp5cv Part2: https://pastebin.com/ZZwbMe79

deten commented 1 year ago

The width/height was corrupting the display using VNC, removing it fixed that.

New Run Command:

docker run -i \
  --name=docker-osx \
  --device /dev/kvm \
  -p 50922:10022 \
  -p 5999:5999 \
  -e NOPICKER=true \
  -e GENERATE_UNIQUE=true \
  -e EXTRA="-display none -vnc 0.0.0.0:99,password=on" \
  -v /volume2/docker/docker-osx/:/config \
  sickcodes/docker-osx:latest
nmajin commented 1 year ago

This is where I am failing at:

Screenshot 2023-03-14 at 10 35 29 PM

I am thinking (at the moment) that I have an issue with "Certain SATA controllers dropped": https://dortania.github.io/OpenCore-Install-Guide/extras/big-sur/#supported-hardware

Since I am seeing a kernel-panic there. I would be curious to try these kexts (or just try Catalina) to see if this would get me further. I am just not sure how to do that at the moment. Seems like the helm chart that docker-osx provides allow for custom kexts, but I am not going to setup k8s yet for this to try going that route: https://github.com/sickcodes/Docker-OSX/blob/869b5fafd6d910e8e8c8c3a99a2b5dc90c33c6ee/helm/values.yaml#L18-L30

I also am wondering though, assuming this is all based on Hackintosh, that the hardware overall is just lacking: "Note that Mobile Atoms, Celeron and Pentium CPUs are not supported": https://dortania.github.io/OpenCore-Install-Guide/macos-limits.html#cpu-support.

Note: I am trying to get this working on a RS818 1U Synology. I did upgrade the RAM to 16 GB. But I do see it recognizes my 4 cores there.

deten commented 1 year ago

What does your docker run / compose look like?

I am on a DS916+

nmajin commented 1 year ago

What does your docker run / compose look like?

I am on a DS916+

docker run -it \
  --name=docker-osx \
  --device=/dev/kvm \
  -p 50922:10022 \
  -p 5999:5999 \
  -e NOPICKER=false \
  -e "DISPLAY=${DISPLAY:-:0.0}" \
  -e GENERATE_UNIQUE=true \
  -e EXTRA="-display none -vnc 0.0.0.0:99,password=on" \
  -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \
  sickcodes/docker-osx:catalina

I tried tags:

Same issues for all

kedda commented 1 year ago

Where you able to install all the dependencies on the synology? If yes, how did you do that?

deten commented 1 year ago

I was not, I gave up until someone smarter than me could figure this out.