Open medophin opened 1 year ago
活動連結: https://spotvirtual.com/invite/iostaipei-20ea5d5ecbafb5b9-ElVJEE7ZGI
活動時間: 週二, 2023/4/25 20:00
FB link: https://www.facebook.com/events/1168880770416990
Demo Project: https://github.com/sickcodes/Docker-OSX
Description: 如何用 sickcodes/Docker-OSX 建立環境
https://github.com/sickcodes/Docker-OSX 使用黑蘋果 Hackintosh osx-kvm docker-osx可能違反相關用戶協議,除非你用於資安研究 Disclaimer https://sick.codes/is-hackintosh-osx-kvm-or-docker-osx-legal/
Hackintosh
osx-kvm
docker-osx
support k8s
https://github.com/kholia/OSX-KVM
grep -e vmx -e svm /proc/cpuinfo
sudo apt-get install qemu uml-utilities virt-manager git \ wget libguestfs-tools p7zip-full make dmg2img -y
dmg2img -i BaseSystem.dmg BaseSystem.img
qemu-img create -f qcow2 mac_hdd_ng.img 128G
./OpenCore-Boot.sh
Windows11 wsl2 https://github.com/sickcodes/Docker-OSX#id-like-to-run-docker-osx-on-windows ref : WSL+Docker+Apple MacOS X Big Sur installation in Windows 11 - YouTube
C:/Users/<Your_Name>/.wslconfig
nestedVirtualization=true
[wsl2] nestedVirtualization=true
kvm-ok
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' \ sickcodes/docker-osx:ventura
QEMU HARDDISK MEDIA
xcode simulator need more than 4GB ram to start https://github.com/sickcodes/Docker-OSX/issues/197 backup previous containers mac_hdd_ng_auto.img use sickcodes/docker-osx:naked docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v "${PWD}/mac_hdd_ng_auto.img:/image" \ -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/Docker-OSX/master/custom/config-nopicker-custom.plist \ sickcodes/docker-osx:naked
xcode simulator need more than 4GB ram to start https://github.com/sickcodes/Docker-OSX/issues/197
mac_hdd_ng_auto.img
sickcodes/docker-osx:naked
docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v "${PWD}/mac_hdd_ng_auto.img:/image" \ -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/Docker-OSX/master/custom/config-nopicker-custom.plist \ sickcodes/docker-osx:naked
---
活動連結: https://spotvirtual.com/invite/iostaipei-20ea5d5ecbafb5b9-ElVJEE7ZGI
活動時間: 週二, 2023/4/25 20:00
FB link: https://www.facebook.com/events/1168880770416990
Demo Project: https://github.com/sickcodes/Docker-OSX
Description: 如何用 sickcodes/Docker-OSX 建立環境
虛擬化 #容器
sickcodes/Docker-OSX
https://github.com/sickcodes/Docker-OSX 使用黑蘋果
Hackintosh
osx-kvm
docker-osx
可能違反相關用戶協議,除非你用於資安研究 Disclaimer https://sick.codes/is-hackintosh-osx-kvm-or-docker-osx-legal/opencore+qemu+docker+OSX = Docker-OSX
OSX-KVM - 1/2
https://github.com/kholia/OSX-KVM
grep -e vmx -e svm /proc/cpuinfo
)OSX-KVM - 2/2
qemu-img create -f qcow2 mac_hdd_ng.img 128G
./OpenCore-Boot.sh
why Docker
same env , easy to CI/CD
My Env
Windows11 wsl2 https://github.com/sickcodes/Docker-OSX#id-like-to-run-docker-osx-on-windows ref : WSL+Docker+Apple MacOS X Big Sur installation in Windows 11 - YouTube
Docker-OSX WSL step 1/2
C:/Users/<Your_Name>/.wslconfig
addnestedVirtualization=true
kvm-ok
Docker-OSX WSL step 2/2
QEMU HARDDISK MEDIA
modify RAM setting