type vmlifestate =
| VmCreated
| VmShutdown | VmShutdowning
- | VmRebooting
+ | VmRebooted | VmRebooting
| VmPaused | VmSuspending | VmSuspended | VmRestoring
| VmRunning
| VmShutdown -> "shutdown"
| VmShutdowning -> "shutdowning"
| VmRebooting -> "rebooting"
+ | VmRebooted -> "rebooted"
| VmPaused -> "paused"
| VmSuspending -> "suspending" | VmSuspended -> "suspended"
| VmRestoring -> "restoring"
state.vm_cfg.on_crash
| Xal.Vanished -> ActionPreserve
| Xal.Halted -> state.vm_cfg.on_halt
- | Xal.Rebooted -> state.vm_cfg.on_restart
+ | Xal.Rebooted ->
+ Vmact.change_vmstate state VmRebooted;
+ state.vm_cfg.on_restart
| Xal.Suspended -> state.vm_on_suspend_action
| Xal.Shutdown i -> state.vm_cfg.on_halt in