{"id":17944757,"url":"https://github.com/godmode2k/docker-macos","last_synced_at":"2025-04-03T14:26:14.421Z","repository":{"id":259575984,"uuid":"877132789","full_name":"godmode2k/docker-macos","owner":"godmode2k","description":"macOS in Docker","archived":false,"fork":false,"pushed_at":"2024-10-25T03:38:24.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T03:21:29.313Z","etag":null,"topics":["docker","macos","macosx","osx","qemu-kvm","x11"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/godmode2k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-23T06:29:16.000Z","updated_at":"2024-10-25T03:38:27.000Z","dependencies_parsed_at":"2024-10-26T17:12:12.280Z","dependency_job_id":"b0f2bf53-e101-46b5-a610-f49ce61467de","html_url":"https://github.com/godmode2k/docker-macos","commit_stats":null,"previous_names":["godmode2k/docker-macos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godmode2k%2Fdocker-macos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godmode2k%2Fdocker-macos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godmode2k%2Fdocker-macos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godmode2k%2Fdocker-macos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/godmode2k","download_url":"https://codeload.github.com/godmode2k/docker-macos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247016710,"owners_count":20869702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","macos","macosx","osx","qemu-kvm","x11"],"created_at":"2024-10-29T06:04:47.935Z","updated_at":"2025-04-03T14:26:14.394Z","avatar_url":"https://github.com/godmode2k.png","language":"Shell","readme":"# Docker-macOS\n\n\nSummary\n----------\n\u003e Run macOS in Docker \u003c/br\u003e\n\u003e\n\u003e source-based: https://github.com/sickcodes/Docker-OSX \u003c/br\u003e\n\u003e USE THIS AT YOUR OWN RISK.\n\n\nEnvironment\n----------\n\u003e build all and tested on GNU/Linux\n\n    GNU/Linux: Ubuntu 20.04_x64 LTS\n\n\nRun\n----------\n```sh\n// Docker installation\nhttps://docs.docker.com/engine/install/\n\n\n// Arch\n$ sudo pacman -S qemu libvirt dnsmasq virt-manager bridge-utils flex bison iptables-nft edk2-ovmf\n\n\n// Ubuntu\n$ sudo apt-get install qemu qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager libguestfs-tools\n\n\n// CentOS, RHEL, Fedora\n$ sudo yum install libvirt qemu-kvm\n\n\n// Then, enable libvirt and load the KVM kernel module\n$ sudo systemctl enable --now libvirtd\n$ sudo systemctl enable --now virtlogd\n$ echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs\n$ sudo modprobe kvm\n\n\n\n// macOS Sonoma (14)\n$ sudo bash run_docker_macos.sh\n\n\n\n---------------------------------\nIssues\n---------------------------------\n1. infinite boot loop\n - USE this options: {\n    -e CPU='Haswell-noTSX' -e CPUID_FLAGS='kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on' -e RAM=4\n   }\n\n\n2. shared directroy: macfuse, sshfs does not work (macOS in docker (QEMU))\n - USE this options: {\n    -v \"${SHARE}:/mnt/hostshare\" \\\n    -e EXTRA=\"-virtfs local,path=/mnt/hostshare,mount_tag=hostshare,security_model=passthrough,id=hostshare\"\n   }\n\n   then, Open Terminal inside macOS and run the following command to mount the virtual file system\n\n   (macOS)$ sudo -S mount_9p hostshare\n   (macOS) Finder [menu: Go -\u003e Computer] -\u003e you can find 'hostshare'.\n\n\n3. Audio\n - USE this options: {\n   --device /dev/snd \\\n    -e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket \\\n\n    -v \"/run/user/$(id -u)/pulse/native:/tmp/pulseaudio.socket\" \\\n    or (logged in userid, not 'sudo' for root)\n    -v \"/run/user/1000/pulse/native:/tmp/pulseaudio.socket\" \\\n\n    -e EXTRA=\"-virtfs local,path=/mnt/hostshare,mount_tag=hostshare,security_model=passthrough,id=hostshare -device intel-hda -device hda-output,audiodev=hda\" \\\n    -e NOPICKER=false \\\n   }\n\n   then,\n   source-based:\n    - https://github.com/MobCode100/Dastux/blob/main/VoodooHDA-QEMU-KVM.md\n    - https://sourceforge.net/projects/voodoohda (download: latest version, VoodooHDA.kext-v301.zip)\n\n   Disable System Integrity Protection (SIP)\n   (macOS) boot menu \u003e select Recovery partition: Go to Utilities \u003e Terminal\n   (macOS)$ csrutil status    // you can skip below command if result like this 'System Integrity Protection status: disabled' or 'Kext Signing: disabled'\n   (macOS)$ csrutil disable\n   or\n   (macOS)$ csrutil enable --without kext\n   (macOS) reboot macOS\n\n   https://sourceforge.net/projects/voodoohda: download VoodooHDA, VoodooHDA.kext-v301.zip (latest version)\n   (macOS)$ sudo cp -R Downloads/VoodooHDA.kext /Library/Extensions\n   Shortly after that, a popup will appear.\n\n   For Ventura:\n    - you might need to load the kext manually by entering cmd for the popup message to appear.\n    - (macOS)$ sudo kextutil -v /Library/Extensions/VoodooHDA.kext\n\n   (macOS) Go to System Settings \u003e Security \u0026 Privacy \u003e Security section\n   (macOS) select 'App Store and identified developers' \u003e Click the button 'Details...', enter your password\n   (macOS) check the 'Unidentified - VoodooHDA - Updated', click OK and restart.\n\n\n   Install Homebrew: https://brew.sh/\n   (macOS)$ /bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n\n   Install Pulseaudio\n   (macOS)$ brew install pulseaudio\n   (macOS)$ brew services start pulseaudio\n   (macOS)$ brew services stop pulseaudio\n\n\n\n```\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodmode2k%2Fdocker-macos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgodmode2k%2Fdocker-macos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodmode2k%2Fdocker-macos/lists"}