Error: Invalid config: Unknown configuration key: boot.autorestart

Hello everyone,

Details:
Host: Debian 12
Instance: debian-bookworm-amd64-default-20240901_05:24
Incus Version: 6.4

I have driven myself up the wall trying to figure this out for hours to no avail. I am trying to prevent a particular instance (container) from starting at boot. Per the documentation, I tried…

$ incus config set boot.autorestart=false
Error: Invalid config: Unknown configuration key: boot.autorestart

But I keep getting the error above. I have tried the same via the API, via directly editing the config but it’s always the same. Can anyone point me to what I am doing wrong?

Any help you can give would be extremely appreciated! :pray:

Edit: Thank you all! See solution marked below.

Incus 6.4 doesn’t support this feature it will be available in 6.5 or latest nightly.

It is more or less a matter of time now until available…

I think that if a container/VM is in a stopped state and you reboot the host, that container/VM by default does not automatically start upon the reboot of the host.

I think the new feature is to arrange Incus to restart automatically a container/VM, when the instance has shutdown? Perhaps because there was an update that requires the instance to restart.

If you want to prevent a particular instance from starting at boot, try this (notice autostart instead of autorestart):
incus config set <container_name> boot.autostart=false

You can set boot.autostart=false globally like this:
incus profile set default boot.autostart=false

I could absolutely swear I had tried this too but sure enough this is the proper solution and it worked. Turns out I hadn’t even been trying to set the right option. Go figure. Thank you very much!!

That is correct but there was one particular instance that I did not want to have start in case of power failure or some such similar situation. The reason is that it requires me to enter a LUKS decryption passphrase to get started properly. Admittedly a niche situation and not ideal. There are multiple ways I’ve read to fix it but for now I don’t want to deal with the effort. Thanks!

Now I see what you mean. Similar to server computer firmware. The option not to restart the computer after a power loss.