Failed to add CPUs: Failed to add device: Invalid parameter type for 'core-id', expected: integer

Hello,

I’m trying to install HomeAssistant OS in a VM. After creating an image and adding the following Terraform snippet, I’m receiving the title error:

resource "incus_instance" "homeassistant" {
  name  = "homeassistant"
  type  = "virtual-machine"
  image = "haos"

  config = {
    "limits.cpu"          = 2
    "limits.memory"       = "4GiB"
    "security.secureboot" = false
  }
}

At first I thought this was related to “limits.cpu”, but removing it doesn’t solve the error. I created the image by following the steps here, but updated for HAOS 14.2: Release Home Assistant OS 14.2 · home-assistant/operating-system · GitHub

❯ incus image show haos
auto_update: false
properties:
  description: Home Assistant Operating System
  os: Debian
  release: bookworm 12
public: false
expires_at: 0001-01-01T00:00:00Z
profiles:
- default

I’m guessing you are running QEMU 9.2. There were (and probably are still) incompatibilities with previous releases of Incus for QEMU 9.2. You should upgrade Incus to 6.9 or downgrade QEMU to 9.1.

1 Like