2

We have several VMs on our system. Sometimes there seems to be an issue with RAM management on the host system and one system dies quietly.

We have setup the VMs to autostart on host start, which works fine. But what about this scenario:

  1. Host autostarts VMs on start up
  2. One VM dies quietly for whatever reason
  3. VM does not run anymore therefore some key services running on the VM are not available

How can I setup the VM to automatically restart itself when its not running (But dont spawn multiple instances) after initial autostart using virsh ?

Thanks

3

Check your domain XML for the value of <on_crash>.

This should be set to:

  <on_crash>restart</on_crash>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.