[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115610":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":13,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":9,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":27,"discoverSource":28},115610,"vphone-linux","YahiaAngelo\u002Fvphone-linux","YahiaAngelo","Run vphone-cli's virtual iPhone (iOS on Apple's vresearch101 platform) on Linux with QEMU, reims-vgpu and metal2vulkan",null,"Swift",255,46,2,10,0,16,17,58.62,"Other",false,"main",[],"2026-11-21 13:42:57","2026-11-23 20:46:24","\u003Cdiv align=\"center\">\n\n# vphone-linux\n\n**Run a virtual iPhone on Linux — no Mac required.**\n\n[![CI validation](https:\u002F\u002Fgithub.com\u002FYahiaAngelo\u002Fvphone-linux\u002Factions\u002Fworkflows\u002Fvalidate.yml\u002Fbadge.svg?branch=main)](https:\u002F\u002Fgithub.com\u002FYahiaAngelo\u002Fvphone-linux\u002Factions\u002Fworkflows\u002Fvalidate.yml)\n[![Follow @YahiaDev on X](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FFollow-%40YahiaDev-000000?logo=x&logoColor=white)](https:\u002F\u002Fx.com\u002FYahiaDev)\n[![GitHub stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002FYahiaAngelo\u002Fvphone-linux?style=flat&logo=github)](https:\u002F\u002Fgithub.com\u002FYahiaAngelo\u002Fvphone-linux\u002Fstargazers)\n\n[Quick start](#quick-start) · [Documentation](#documentation) · [What works](#status) · [Known limits](#known-limits)\n\n\u003C\u002Fdiv>\n\nRun [vphone-cli](https:\u002F\u002Fgithub.com\u002FLakr233\u002Fvphone-cli)'s virtual iPhone on a **Linux x86_64 host**, or on Windows 11 under WSL2 ([docs\u002FWSL.md](docs\u002FWSL.md)).\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fscreenshots\u002Flock-screen.png\" width=\"200\" alt=\"Lock screen\">\n  \u003Cimg src=\"docs\u002Fscreenshots\u002Fhome-screen.png\" width=\"200\" alt=\"Home screen with widgets\">\n  \u003Cimg src=\"docs\u002Fscreenshots\u002Fmaps.png\" width=\"200\" alt=\"Maps\">\n  \u003Cimg src=\"docs\u002Fscreenshots\u002Fcalendar.png\" width=\"200\" alt=\"Calendar\">\n\u003C\u002Fp>\n\u003Cp align=\"center\">\u003Ci>iOS 27.0.1 (iPhone 16 Pro, at 2x) running on a Linux PC (Fedora, NVIDIA GPU) in vphone-linux, created with \u003Ccode>setup\u002Fcreate-vm.sh\u003C\u002Fcode>.\u003C\u002Fi>\u003C\u002Fp>\n\nvphone-cli runs iOS on an Apple Silicon Mac with Apple's Virtualization.framework, on the\n`vresearch101` virtual platform that Apple's Private Cloud Compute (PCC) research VMs use. vphone-linux\nboots the **same VM bundle** on Linux, with no Apple code at run time, and can also **create it on\nLinux with no Mac at all** (see [docs\u002FCREATE-ON-LINUX.md](docs\u002FCREATE-ON-LINUX.md)):\n\n- **QEMU** (a fork of [ChefKissInc\u002FQEMUAppleSilicon](https:\u002F\u002Fgithub.com\u002FChefKissInc\u002FQEMUAppleSilicon)) gains a\n  `-M vresearch101` machine and an `apple-gxf` CPU (GXF\u002FSPRR for SPTM and TXM). It runs the guest\n  under TCG with 8 vCPUs and models the SEP coprocessor, the GIC wiring, a USB touchscreen, vsock and\n  the paravirtual GPU's MMIO device.\n- **[reims-vgpu](https:\u002F\u002Fgithub.com\u002Fsteelbrain\u002Freims-vgpu)** implements Apple's ParavirtualizedGraphics\n  protocol on the host. It is statically linked into QEMU.\n- **[metal2vulkan](https:\u002F\u002Fgithub.com\u002Fsteelbrain\u002Fmetal2vulkan)** translates the guest's Metal work to\n  Vulkan.\n\nThis repository is the glue: the launcher (`run-vphone.sh`), the test and profiling tools (`tools\u002F`),\nthe Linux build of vphone-cli's firmware tooling (`linux-create\u002F`) and the documentation. The three forks are git submodules (see [Repository layout](#repository-layout)).\n\n## Status\n\nSo far tested on one PC: Fedora 44, Intel i7-14700K, 62 GB RAM, NVIDIA RTX 4080 SUPER (driver\n615.71.09).\n\nLinux distributions `setup\u002Fsetup.sh` supports, and how far each was tested:\n\n| Distribution | Tested |\n|---|---|\n| Fedora 43\u002F44 | end to end (the home screen) on the PC above; setup + vphone-cli build in a clean Fedora 44 container |\n| Arch Linux, Omarchy | setup, the whole build, and a VM created through the CFW install (Omarchy 4.0.4 in a VM); `tools\u002Fomarchy-window.sh` floats the iPhone window under Hyprland |\n| Debian 13, Ubuntu 25.04+ | setup + vphone-cli build in clean Debian 13 and Ubuntu 26.04 containers |\n| Windows 11 (WSL2, Ubuntu) | the iPhone boots, rendered on lavapipe ([docs\u002FWSL.md](docs\u002FWSL.md)) |\n\nEvery list of packages is checked against Fedora 43\u002F44, Debian 13, Ubuntu 25.10\u002F26.04 and Arch by\nCI. Ubuntu 24.04 is too old (no libimobiledevice-glue or libtatsu).\n\nTested guest pairings on Linux:\n\n| Device | iOS | cloudOS | State |\n|---|---|---|---|\n| iPhone17,3 (iPhone 16 Pro) | 26.6.2 (23G90) | 26.4 (23E5207q) | end-to-end: the home screen, created with no Mac |\n| iPhone17,3 (iPhone 16 Pro) | 27.0.1 (24A446) | 26.4 (23E5207q) | end-to-end with `setup\u002Fcreate-vm.sh`: the home screen at 2x, Auto-Lock Never |\n| iPhone19,4 (iPhone Duo) | 27.1 (24A94425) | 26.4 (23E5207q) | the home screen: display, wallpaper, touch (keep it at 3x); needs this repo's QEMU (native X1 and CSSC) |\n\n**Works**\n\n- A full boot: AVPBooter, iBoot, SPTM\u002FTXM, XNU, sepOS on the emulated SEP, the encrypted Data volume,\n  the user's lock screen. In test boots, vphoned answered 1-2 minutes after start and the device\n  unlocked after 3-5 minutes.\n- Home screen, wallpaper, widgets, Control Center and built-in apps (Settings, Calendar, Maps, Photos,\n  Weather and others), drawn by the guest's Metal through reims-vgpu and metal2vulkan on the host GPU.\n- Touch: QEMU's `usb-touchscreen`, which iOS accepts as the built-in main-screen digitizer. Taps,\n  scrolling and drags work from the window (`WINDOW=1`) and over QMP (`tools\u002Fqmp.py`).\n- Home: a swipe up from the bottom edge, or a middle click. QEMU turns these into Cmd+H, iOS's Home\n  shortcut (the guest does not start its own home gesture from this touchscreen).\n- The window's button bar: Home, Lock, Volume up\u002Fdown, Screenshot (saved to `~\u002FPictures\u002Fvphone\u002F`),\n  and Fold on an iPhone Duo. `run-vphone.sh` starts it with the window; `TOOLBAR=0` turns it off\n  ([docs\u002FTOOLS.md](docs\u002FTOOLS.md#the-vm-window)).\n- iPhone Duo (iPhone19,4, iOS 27.1): its cover and its unfolded inner display, through vphone-cli\n  2.14's fold patches. The Fold button opens and closes it, and the window turns landscape while it\n  is open.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fscreenshots\u002Fwindow-duo-closed.jpg\" height=\"300\" alt=\"iPhone Duo closed, with the window's button bar\">\n  \u003Cimg src=\"docs\u002Fscreenshots\u002Fwindow-duo-open.jpg\" height=\"300\" alt=\"iPhone Duo unfolded, the window turned landscape\">\n\u003C\u002Fp>\n- vphoned, vphone-cli's guest daemon, over vsock (port 1339): health, `screen.unlock`, `apps.launch`,\n  services, file upload, self-update (`tools\u002Fvphoned.sh`, `tools\u002Fvphoned-update.sh`).\n- Your own apps: an iOS app built on Linux with [xtool](https:\u002F\u002Fgithub.com\u002Fxtool-org\u002Fxtool) installs\n  and runs with `tools\u002Finstall-ipa.py`, no Apple ID or signing needed\n  ([docs\u002FAPP-DEVELOPMENT.md](docs\u002FAPP-DEVELOPMENT.md): build, run, logs, the edit–build–run loop).\n\n**Creating the VM on Linux, with no Mac**\n\n- Done end to end on the test PC (2026-10-24), from an empty bundle: vphone-cli 2.12.1's\n  `fw prepare` and `fw patch` built for Linux, a full restore through OpenAVB's DFU mode over USB\u002FIP,\n  vphone-cli's custom firmware installed through an SSH ramdisk, then a boot to the home screen\n  (vphoned answered after 49 s, unlocked after 89 s; the first boot's data migration took about 20\n  minutes more).\n- The boot ROMs are **OpenAVB** and **OpenSEP**, the open-source ROMs vphone-cli ships, in place of\n  Apple's `AVPBooter`\u002F`AVPSEPBooter`. Everything else comes from Apple's published IPSWs and\n  vphone-cli's release zip.\n\n### Known limits\n\n- **Speed.** The guest's arm64e code runs under TCG (there is no hardware virtualization of arm64 on\n  x86). A cold app launch took about 19-20 s and a warm one 4-8 s in an earlier measurement\n  (2026-10-19); later TCG work made indirect-branch lookups and TLB refills much cheaper.\n  Scrolling Settings now runs at about 60-68 frames\u002Fs on average, with occasional 50-110 ms stalls\n  (guest CPU work at emulated speed).\n- Creating the VM needs root for several steps, about 60 GB free disk, and about an hour plus the\n  downloads ([docs\u002FCREATE-ON-LINUX.md](docs\u002FCREATE-ON-LINUX.md)).\n- Only the NVIDIA host GPU has been tested. reims-vgpu documents what AMD GPUs need (`\u002Fdev\u002Fudmabuf`).\n- vphoned's `GET \u002Fv1\u002Ffiles\u002Fcontent` stops after 64 KiB on the default vhost-vsock datapath; use\n  `tools\u002Fguest-read.py`, or the `virtio-vsock-uds-pci` device (QEMU branch `vsock-uds`, not merged).\n- reims-vgpu runs in **census mode** by default: a Metal feature it cannot model costs an inexact frame\n  instead of killing the VM (see [docs\u002FPERFORMANCE.md](docs\u002FPERFORMANCE.md)).\n- Untested: networking, audio, multiple VMs at once.\n- Never boot two VMs on one `Disk.img`: the drives are opened with `file.locking=off`, and a second\n  VM corrupts the APFS image.\n\n## Quick start\n\nYou need a Linux x86_64 PC with a Vulkan GPU (NVIDIA is the only vendor tested so far), at least\n16 GB RAM, about 100 GB of free disk space, and `sudo` access. No Mac is required. See\n[What you need](docs\u002FSETUP.md#1-what-you-need) for supported distributions and more detail.\n\nRun these commands from a terminal:\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002FYahiaAngelo\u002Fvphone-linux.git && cd vphone-linux\n.\u002Fsetup\u002Fsetup.sh       # Install dependencies and build the tools (safe to re-run)\n.\u002Fsetup\u002Fcreate-vm.sh   # Choose a device and iOS version, then create and start the VM\n```\n\nThe setup scripts guide you through the process. `create-vm.sh` leaves the new VM running and\nunlocked. To start it again later:\n\n```sh\n.\u002Fsetup\u002Fstart-vm.sh          # Start and unlock a VM (shows a menu if you have several)\n.\u002Fsetup\u002Fstart-vm.sh --stop   # Shut down iOS\n.\u002Fsetup\u002Fstart-vm.sh --list   # List your VMs and their running state\n.\u002Fsetup\u002Fstart-vm.sh --trim   # Reduce background services and resource use\n```\n\n`--trim` (also available on `create-vm.sh`) applies vphoned's `trimmed` service profile: Siri and\nintelligence, Find My, Wallet, Watch, Home, health coaching, telemetry, ads, the App Store and\nsign-in follow-ups stay off, so the guest runs about a third fewer processes and uses less memory\nand disk. It does not make the guest itself faster, but it keeps it steadier. The first boot after\ntrimming is busy for about ten minutes while widgets settle. The Weather widget then reads \"Weather\nUnavailable\"; `tools\u002Fservice-profile.py CID trimmed --allow com.apple.weatherd` keeps it.\n\n`create-vm.sh` menus down to a tested device\u002FiOS pairing, runs the whole create flow\n(`fw prepare` + `fw patch`, the DFU restore, the SSH-ramdisk CFW install, the snapshot flip),\nkeeps one state file per VM so a re-run resumes after a failed step, and starts QEMU exactly once\nat the end (never killed by the scripts). Non-interactive:\n\n```sh\n.\u002Fsetup\u002Fcreate-vm.sh --device \"iPhone17,3\" --ios 26.6.2 --scale 1\n.\u002Fsetup\u002Fcreate-vm.sh --list         # every device and its tested pairings\n```\n\nThe pairings tested here: iPhone17,3 + iOS 26.6.2 and + iOS 27.0.1 (end to end with these scripts:\nthe home screen), and iPhone19,4 (the iPhone Duo) + iOS 27.1 (the home screen; keep it at 3x). Other\npairings are macOS-tested and offered as \"under test\" with a confirmation. Already have a VM made\nwith vphone-cli on a Mac? [docs\u002FCREATE-ON-MAC.md](docs\u002FCREATE-ON-MAC.md) shows how to bring it over\ninstead. The step-by-step manual path, with the packages and every command, is\n[docs\u002FSETUP.md](docs\u002FSETUP.md).\n\n## Documentation\n\n| Document | Contents |\n|---|---|\n| [setup\u002F](setup\u002FREADME.md) | The two-step setup in this repo: build everything, then pick a device and an iOS version and create the VM |\n| [docs\u002FSETUP.md](docs\u002FSETUP.md) | The manual step-by-step: what you need, dependencies, building, creating the VM, first boot, your own apps |\n| [docs\u002FCREATE-ON-LINUX.md](docs\u002FCREATE-ON-LINUX.md) | The create flow in detail: firmware, restore over USB\u002FIP, custom firmware, first boot |\n| [docs\u002FAPP-DEVELOPMENT.md](docs\u002FAPP-DEVELOPMENT.md) | Developing iOS apps on Linux with xtool: build, run in the VM, read the log, iterate |\n| [docs\u002FCREATE-ON-MAC.md](docs\u002FCREATE-ON-MAC.md) | Optional: creating the VM with vphone-cli on a Mac and copying it over |\n| [docs\u002FWSL.md](docs\u002FWSL.md) | Running on Windows 11 under WSL2: what differs (lavapipe, the kernel tree for APFS) and the one-time setup |\n| [docs\u002FTROUBLESHOOTING.md](docs\u002FTROUBLESHOOTING.md) | Known problems and fixes |\n| [docs\u002FADVANCED.md](docs\u002FADVANCED.md) | Building by hand, display scale, services, GPU clocks |\n| [docs\u002FARCHITECTURE.md](docs\u002FARCHITECTURE.md) | How the machine model, SEP, GIC, USB touch, vsock and the GPU path fit together |\n| [docs\u002FPERFORMANCE.md](docs\u002FPERFORMANCE.md) | The TCG performance work, every tuning switch, and how to profile |\n| [docs\u002FTOOLS.md](docs\u002FTOOLS.md) | Each script in `tools\u002F` |\n| [docs\u002FLICENSING.md](docs\u002FLICENSING.md) | Licenses of the parts |\n| [CONTRIBUTING.md](CONTRIBUTING.md) | How to contribute |\n\n## Repository layout\n\n```text\nvphone-linux\u002F\n├── build.sh               builds the submodules and QEMU\n├── run-vphone.sh          the launcher: a vphone-cli VM bundle -> QEMU command line\n├── tools\u002F                 test, input, vphoned and profiling scripts (docs\u002FTOOLS.md)\n├── linux-create\u002F          vphone-cli's firmware tooling built for Linux (fw, restore, cfw)\n├── patches\u002F               small patches for vphone-cli (Mac side)\n├── docs\u002F\n├── qemu\u002F                  submodule: qemu-vphone, branch vphone\n├── reims-vgpu\u002F            submodule: reims-vgpu fork, branch vphone\n├── metal2vulkan\u002F          submodule: metal2vulkan fork, branch vphone\n├── vms\u002F                   your VM bundles (ignored by git)\n└── runs\u002F                  test-run output (ignored by git)\n```\n\nThe submodules are [qemu-vphone](https:\u002F\u002Fgithub.com\u002FYahiaAngelo\u002Fqemu-vphone),\n[reims-vgpu](https:\u002F\u002Fgithub.com\u002FYahiaAngelo\u002Freims-vgpu) and\n[metal2vulkan](https:\u002F\u002Fgithub.com\u002FYahiaAngelo\u002Fmetal2vulkan), each on its `vphone` branch.\nreims-vgpu's `Cargo.toml` takes metal2vulkan from `..\u002Fmetal2vulkan`, so the submodules must stay side by\nside as above. vphone-cli is not a submodule: on a Mac it\nruns from its own releases, and `linux-create\u002Fsync-sources.sh` builds its firmware tooling from a\nvphone-cli 2.14.2 checkout without changing its files.\n\n## Credits\n\n- [QEMU](https:\u002F\u002Fwww.qemu.org\u002F) and [ChefKissInc\u002FQEMUAppleSilicon](https:\u002F\u002Fgithub.com\u002FChefKissInc\u002FQEMUAppleSilicon)\n  (Apple Silicon machines, GXF\u002FSPRR, the A13-era CPU work this builds on).\n- [reims-vgpu](https:\u002F\u002Fgithub.com\u002Fsteelbrain\u002Freims-vgpu), [metal2vulkan](https:\u002F\u002Fgithub.com\u002Fsteelbrain\u002Fmetal2vulkan)\n  and [qemu-reims-vgpu](https:\u002F\u002Fgithub.com\u002Fsteelbrain\u002Fqemu-reims-vgpu) (the C `apple-gfx` device ported here)\n  by steelbrain (Anees Iqbal).\n- [vphone-cli](https:\u002F\u002Fgithub.com\u002FLakr233\u002Fvphone-cli) by Lakr233 and contributors (VM creation, firmware\n  patches, the CFW and vphoned), and the [super-tart-vphone-writeup](https:\u002F\u002Fgithub.com\u002Fwh1te4ever\u002Fsuper-tart-vphone-writeup)\n  it acknowledges.\n- The Asahi Linux project's documentation of Apple's GXF.\n\n## Legal\n\nThis project contains **no Apple software**. It does not ship firmware, IPSWs, ROMs,\nkernelcaches or VM images, and the emulator uses no code from Virtualization.framework. You create\nyour own VM from firmware Apple publishes, on Linux or with vphone-cli on your own Mac. On Linux,\nvphone-cli's tooling downloads the IPSWs you name from Apple's servers, and the VM boots on the\nopen-source OpenAVB\u002FOpenSEP ROMs from vphone-cli's release.\n\nApple's software licenses restrict where and how its operating systems may run. Running an iOS or\nPCC guest outside Virtualization.framework on a Mac may not be permitted by those terms. vphone-cli\ndescribes its purpose as security research, reverse engineering and debugging; this project has the\nsame purpose. You are responsible for complying with the licenses of the software you run.\n\n\"Apple\", \"iPhone\", \"iOS\" and \"Metal\" are trademarks of Apple Inc. This project is not affiliated with or\nendorsed by Apple, ChefKiss, or the authors of the upstream projects.\n\nThe glue in this repository is MIT-licensed ([LICENSE](LICENSE)). The submodules have their own\nlicenses: see [docs\u002FLICENSING.md](docs\u002FLICENSING.md).\n","vphone-linux 是一个在 Linux 系统上运行虚拟 iPhone（基于 Apple vresearch101 平台的 iOS 镜像）的开源项目，无需 macOS 或 Apple 硬件。它通过定制 QEMU（支持 vresearch101 机器模型与 apple-gxf CPU）、reims-vgpu（实现 Apple ParavirtualizedGraphics 协议）和 metal2vulkan（将 Metal API 调用转译为 Vulkan）三者协同，在 x86_64 Linux 主机上启动并渲染 iOS 系统。项目支持从零构建 iOS 虚拟机镜像，兼容 NVIDIA\u002FAMD GPU，已在 Fedora 和 Arch 等发行版验证可用。适用于 iOS 系统研究、ARM64 虚拟化技术学习、跨平台移动操作系统调试等非生产性技术探索场景。","2026-11-24 04:51:31","CREATED_QUERY"]