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…
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!
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!