> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# KubeSilicon Enables Linux VMs and GPU Jobs on Mac with Apple Silicon
- URL: https://www.stirup.si/kubesilicon-enables-linux-vms-and-gpu-jobs-on-mac-with-apple-silicon-1bb1ddd7/
- Published: 2026-11-10T13:11:59.000Z
- Updated: 2026-11-10T13:11:59.000Z
- Description: KubeSilicon allows creation and management of Linux VMs and GPU jobs on Mac with Apple Silicon using Kubernetes objects, leveraging Apple's Virtualization.framework and SiliconVM/SiliconJob custom resource definitions.
- Author: Satish Das
- Tags: Community, News, Stirup Research

## KubeSilicon's Functionality on Mac with Apple Silicon

KubeSilicon enables the creation and management of Linux virtual machines on a Mac with Apple Silicon through Kubernetes objects, similar to how KubeVirt operates on Linux. This functionality is achieved via the SiliconVM custom resource definition (CRD), which is watched by the `kubesilicond` component running on the Mac outside the Kubernetes cluster. For each SiliconVM object, `kubesilicond` initiates a detached process to launch a VM using Apple's Virtualization.framework. The VM is configured with a cloud-init ISO and can be accessed via SSH or ping from a pod within the cluster.

Additionally, KubeSilicon supports GPU jobs through the SiliconJob CRD. Unlike traditional Linux guest environments, macOS natively supports GPU access, so GPU workloads execute directly on the macOS host rather than within the Linux VM.

## Creating and Managing VMs with SiliconVM Objects

KubeSilicon introduces SiliconVM objects to create and manage Linux VMs directly from Kubernetes manifests. By defining a SiliconVM in a YAML file, users can specify CPU, memory, disk sources, and cloud-init configurations. For example, a demo VM can be created with 2 CPUs, 2Gi of memory, and a disk image sourced from Ubuntu’s cloud repository. Once applied, the VM transitions through provisioning states and becomes accessible via its assigned IP address. Users can interact with the VM using the KubeSilicon client, enabling SSH access or network connectivity from within Kubernetes pods. Stopping a VM is done by patching its spec, which halts the instance but preserves the disk. Deletion removes both the VM and its disk. Notably, if the KubeSilicon daemon is stopped, VMs continue running, and any deleted objects are cleaned up upon the daemon’s restart, with VMs shut down and directories removed.

## GPU Job Execution with SiliconJob Objects

KubeSilicon introduces the SiliconJob object to execute GPU-based tasks within Kubernetes, specifically tailored for macOS environments using PyTorch MPS or MLX. A SiliconJob runs a Python script in its own uv venv, inside a sandbox-exec profile, ensuring isolation by writing only to the job directory and not reading from the user's home directory. Dependencies such as PyTorch are specified in the job definition, and inputs and outputs are managed via URLs, with data being fetched before execution and results uploaded afterward using presigned URLs. The script can be monitored with commands like `kubectl get sjob -w` and logs accessed via `kubesilicon -context kind- logs train`. Jobs can be canceled using a Kubernetes patch, and end-to-end tests are available via `hack/e2e-job.sh kind-`. For MLX support, an example YAML file is provided, demonstrating compatibility with the MLX framework.

## Client Tools and Configuration for KubeSilicon

The KubeSilicon client tools are designed for seamless integration with Kubernetes environments. After installation, the daemon is placed in \~/.kubesilicon/bin, and a LaunchAgent is loaded to manage background processes. To use the client, users must explicitly set the `KUBESILICON_CONTEXT` environment variable, specifying their target cluster, such as `kind-`. This deliberate lack of a default context ensures clarity and control over cluster interactions.

- `kubesilicon ip demo` retrieves the IP address of a VM.
- `kubesilicon ssh demo` allows SSH access to the VM as the `ubuntu` user, with additional SSH arguments supported via `--`.
- `kubesilicon console demo` provides a serial console interface, which can be exited using `Ctrl-]`. This feature requires a user with a password, configured via `cloud-init` with `plain_text_passwd` and `lock_passwd: false`.
- Serial console output is logged to `~/.kubesilicon/vms/_/console.log`, enabling users to review session details post-interaction.

## Limitations and Current Capabilities

KubeSilicon currently supports Linux ARM64 guests, EFI boot, and cloud images, but macOS guests are not yet available. Features such as cloud-init (NoCloud ISO), kubesilicon client (ip, ssh, console), and start/stop (ACPI, then forced) are functional, while windowed or VNC console support is not yet implemented. Automatic restart of a VM whose launcher died, disk reuse across stop/start, and qcow2 to raw conversion are available. Multiple Macs as nodes, NAT-based pod connectivity, and one process per VM are supported. However, limitations exist, including the lack of live migration and graphical console without a window due to Apple's framework constraints. Nested virtualization on M3 and newer with macOS 15 is possible but not enabled yet. Additionally, running macOS guests is subject to Apple's license terms, and this project only runs Linux guests.

## Sources and reporting notes

- [Hacker News Show](https://github.com/Matheus-Thurler/KubeSilicon?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.