Ephemeral Instances Unexpectedly Removed During IncusOS Reboot

My expectation is that ephemeral instances are only removed when explicitly stopped or powered off from within the container. Based on my understanding of this thread, ephemeral instances should persist when the host is rebooted.

However, it seems that when rebooting or powering off IncusOS (via UI or incus admin os) ephemeral instances are removed and need to be recreated.

Is this behavior expected? If so, is there a way to reboot the host and keep the instances?

That’s not expected. Normally shutdown triggered by Incus itself doesn’t count as a trigger for deletion.

Can you get the incus admin os debug log -b-1 -n300 output to see what happened during shutdown?

Normally I’d expect this to be the equivalent of running incus admin shutdown on a non-IncusOS system which similarly should retain the ephemeral instances.

Thanks for confirming my expectations.

Below are the logs you requested. I appreciate you looking into this!

incus admin os debug log -b-1 -n300

That suggests a clean shutdown, Incus took 12s to shutdown all instances before continuing with the rest of the system shutdown sequence.

So most likely an Incus issue. Can you file something at GitHub · Where software is built?

Thanks! I was able to confirm the same behavior on a fresh non-IncusOS host as well using incus admin shutdown.

Filed here: Ephemeral Instances Unexpectedly Removed After Shutdown · Issue #3108 · lxc/incus · GitHub