Menu

KubeVirt does not run on Apple Silicon, so I built KubeSilicon
πŸ“°

KubeVirt does not run on Apple Silicon, so I built KubeSilicon

DEV Community: goΒ·Matheus ThurlerΒ·3 days ago
#hnFIUiVr
#devtogo#devto#dev#cloud#cluster
Reading 0:00
15s threshold

KubeVirt does not run on a Mac with Apple Silicon. It needs KVM, and macOS has no KVM.

I maintain VirtFoundry , a private cloud operator built on KubeVirt. That means every time I wanted to test something that creates VMs, I needed a Linux server. My M5 Pro could run the cluster, but not the VMs.

So I built KubeSilicon : you declare a SiliconVM object, and a daemon on the Mac boots a Linux ARM64 VM with Apple's Virtualization.framework . Pods in your local cluster reach the VM by IP or DNS name.

Watch the 3.5 minute tutorial video (plays in the README).

From-scratch install, 3.5 minutes: kind cluster, install, first VM, SSH, pod to VM, stop/start.

How it works

kind (Docker Desktop VM) macOS host β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ SiliconVM objects │◄─ API watch ── kubesilicond β”‚ β”‚ (CRD kubesilicon.io) │── status ───►│ download + convert image β”‚ β”‚ β”‚ β”‚ cloud-init ISO β”‚ β”‚ pod ──────── ping/ssh ─────────────►│ Virtualization.framework ──► VM β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜β€¦

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.