VM periodically shutting down itself in 25.04

After an upgrade to 25.04 and successful migration of the VM to the new Instance mechanism, the VM is shutting down unexpectedly. It doesn’t seem to be related to lack of system memory. Sometimes it runs for 24h and sometimes after just 2h I suddenly find out it is in the “Stopped” state. I’m running Debian in the VM. I wasn’t able to find any errors that could point me in the right direction.

Can you please suggest a solution or way to debug why the VM is constantly stopping?

In your VM you could try logging with syslog/rsyslog to a log. You should be able to get all the kernel messages dumped to a log. This might be enough to give you clues of how it died/shutdown.

In /etc/rsyslogd.conf

kern.*   /var/log/kernel