From cd76e01fa209167f8dcdb20f3b1b785c89ceabe1 Mon Sep 17 00:00:00 2001 From: Ben Potter Date: Fri, 24 Apr 2026 13:46:12 +0000 Subject: [PATCH] fix(incus-vm): tie boot.autostart to workspace start_count VMs were unconditionally set to boot.autostart=true, meaning after a host reboot all VMs (including stopped workspaces) would come back up. With 18 VMs auto-starting, dnsmasq hit its 150 concurrent DNS query limit, cascading into incus.service failures and a watchdog reboot. Now boot.autostart mirrors the workspace state so stopped workspaces stay stopped across host reboots. --- registry/bpmct/templates/incus-vm/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/bpmct/templates/incus-vm/main.tf b/registry/bpmct/templates/incus-vm/main.tf index f3628cfd..19982ade 100644 --- a/registry/bpmct/templates/incus-vm/main.tf +++ b/registry/bpmct/templates/incus-vm/main.tf @@ -257,7 +257,7 @@ resource "incus_instance" "dev" { free-page-reporting = "on" QEMUCONF "security.secureboot" = false - "boot.autostart" = true + "boot.autostart" = data.coder_workspace.me.start_count == 1 "user.coder-agent-token" = local.agent_token }, local.is_nixos ? {} : {