Auto Restart crashed Truenas Scale VM

lampshade29

New Member
Apr 9, 2023
5
2
3
I am running Truemas as a VM in Proxmox. I am randomly having issues with my Truenas Scale VM crashing about once every three weeks. Does anyone have or know a good way to have the VM auto restart when it crashes? Or a good container that will monitor all the VM's/LXC in Proxmox that will restart them if they fail.
I know that is a thing in docker but I haven't found an app for that in Proxmox yet.
 
You could write a script and run it somewhere (host, LXC, VM, ...) via cron/systemd service. Poll the TrueNAS VM via TrueNAS API and once it isn't responding for some minutes restart the VM via Proxmox API.

...but would be better to find out why it is crashing in the first place...each crash results in data-loss (even if it may only be the last 5 seconds of async writes)...
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!