Skip to main content

Automatic Restart VM on Failure

For some reason your VM might crash, which would mean that you need to restart your VM manually. This might be no problem if you are maintaining your system yourself. However, especially when you installed a server at someone else's place then it is great that it restarts automatically without that you are texted with: Heyyy! App X is not working!!!. So to prevent that you can set a setting for your VM that it automatically restarts on failure.

  1. Enter your Proxmox Dashboard screen
  2. Go to your shell
  3. Type in the following command
nano /etc/pve/qemu-server/[vm-id].conf

then scroll down and add the following line to it

restart: always

Then hit CTRL+X and after that hit the Y key to save the change

Β 

Β