You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add native Linux mode (vmType=native) — bypass Lima/QEMU on Linux hosts
Add vmType 'native' that runs container runtimes (Docker, containerd, Incus, K3s)
directly on the Linux host without any virtualization layer.
Key changes:
- New environment/vm/native/ package: VM interface via direct host execution
- Config validation: native type auto-detected on Linux, skips VM-specific checks
- App factory: NewWithVMType() solves config-before-VM-creation ordering
- model/guest.go: centralized newGuest() replaces 13x hardcoded lima.New()
- Command guards: skip limautil calls when in native mode
- Docker daemon: fallback from host.lima.internal to ip route for gateway IP
- Docker context: use /var/run/docker.sock directly in native mode
- K3s/Kubeconfig: use host IP and primary interface
- Incus: guard DiskProvisioned/MountPoint for native
- colima model: blocked in native mode (GPU passthrough requires krunkit VM)
Tested:
- Cross-compiled GOOS=linux GOARCH=amd64: OK
- macOS regression GOOS=darwin GOARCH=arm64: OK
- go vet: OK
- E2E in Colima VM: start → status → stop → delete lifecycle verified
0 commit comments