How to Run Debian 13 and a Local LLM on Apple Silicon Using Apple's Container CLI
A developer has published a technical guide detailing how to set up a Debian 13 virtual machine using Apple's container CLI on an Apple Silicon Mac, while offloading AI inference to the Mac's GPU via Ollama. Because Linux VMs lack direct Metal GPU access, the guide proposes running the application inside the Debian VM while routing model calls to Ollama running on the host macOS system at 192.168.64.1. A key pitfall documented is that the official Debian 13 image lacks /sbin/init, causing the machine to silently fail to boot — a fix involving a custom Dockerfile with systemd-sysv is provided. The setup was tested on an Apple M3 Mac running macOS 27.0 with container runtime 1.4.1 and Ollama 0.33.3, achieving 45.2 tokens per second with the Gemma 4 model loaded entirely on the GPU. Supporting files and configuration tips have been published on GitHub to help others replicate the workflow.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in