HomeAssistant VM freezes on a MacOS UTM VM

Have a new M4 mac mini. Did a fresh install of current UTM, setup a HomeAssistant VM, everything is working perfectly fine.
In the MacOS i disabled everything that is power management connected: no sleeps, no disconnections, nothing.
When I disconnect from the server for an hour or more - the VM freezes, HA stops working etc. I have to login back to the server and restart the VM.
Any suggestions please how to stop this freeze?

Anything in the logs?

HomeAssistant logs are empty. And I don’t know how to check UTM logs.

Sounds like an UTM issue, not Home Assistant in my opinion (but I could be wrong). Do some digging here https://docs.getutm.app/

the only useful tip there was to check the “Prevent system from sleeping” option of UTM. I already had that checked. I’m googling more, people say the use “caffeinate” and/or “amphetamine” app for this purposes. I’m not a linix speciast, but I guess there must be a way to run one of these apps on the HA linux? any idea how?

here’s a link to github with instructions:

After spending quite a few hours on this topic, I ended up installing a VMWare VM on my mac M4, and I moved the whole HA install over there. VMWare seems to work properly and does not freeze.
I guess my problem is resolved.