https://github.com/bpmct/coder-incus-vm
Coder template for Incus VMs on Raspberry Pi 5
https://github.com/bpmct/coder-incus-vm
Last synced: 4 days ago
JSON representation
Coder template for Incus VMs on Raspberry Pi 5
- Host: GitHub
- URL: https://github.com/bpmct/coder-incus-vm
- Owner: bpmct
- Created: 2026-03-27T22:30:31.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-05-31T16:09:06.000Z (15 days ago)
- Last Synced: 2026-05-31T18:11:58.973Z (15 days ago)
- Language: HCL
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Incus VM — Coder Template
Provisions a full QEMU/KVM virtual machine via [Incus](https://linuxcontainers.org/incus/) on a Raspberry Pi 5 host.
## Requirements
- Raspberry Pi 5 running Raspberry Pi OS / Debian
- Incus installed and initialized (`incus admin init`)
- `/dev/kvm` available (Pi 5 supports KVM)
- Coder provisioner running **on the Pi** (so `incus` CLI is available to Terraform local-exec)
## What it does
| Event | Action |
|---|---|
| Workspace **start** (new) | Creates Incus VM, installs Coder agent + code-server inside |
| Workspace **start** (existing) | Starts the stopped VM |
| Workspace **stop** | Stops the VM (preserves disk) |
| Workspace **delete** | Deletes the VM and all its data |
## Parameters
| Parameter | Options |
|---|---|
| OS Image | Ubuntu 24.04, Ubuntu 22.04, Debian 12, Alpine 3.20 |
| CPU Cores | 1, 2, 4 |
| Memory | 1, 2, 4, 8 GB |
| Disk Size | 10, 20, 40 GB (set at create time, immutable) |
## Uploading the template
```bash
coder templates create incus-vm --directory ./incus-vm-template
```
Or push an update:
```bash
coder templates push incus-vm --directory ./incus-vm-template
```