save vm state before reboot

asked 2019-05-07 18:22:20 -0500

Babar Ismail gravatar image

Our case is that if the hypervisors are rebooted, we want the VM's hosted on that hypervisor to come back in the same state they were initially. E.g. reopen all open windows like terminal, firefox, etc. I understand if there are any ssh connections they will be lost but I would still want all the terminal windows to open up.

resume_guests_state_on_host_boot only takes the vm back into ACTIVE state but it doesn't restore the state of the vm before reboot.

Is there any configuration option that will do this? Or any suggestions that we might be able to code up?

edit retag flag offensive close merge delete



I think what you describe can be achieved by suspending the instance. If so, arrange for suspension when stopping the VM host, and resuming when it boots up.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-07 18:38:57 -0500 )edit

thank you! I'll try that.

Babar Ismail gravatar imageBabar Ismail ( 2019-05-07 18:51:45 -0500 )edit