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.