diff options
| -rw-r--r-- | desktop/modules/vm/VmModule.qml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/desktop/modules/vm/VmModule.qml b/desktop/modules/vm/VmModule.qml index fa88cef..6a7a9c8 100644 --- a/desktop/modules/vm/VmModule.qml +++ b/desktop/modules/vm/VmModule.qml @@ -48,7 +48,15 @@ Module { property Connections conn: Connections { target: Virsh - function onActionFailed(vm, action, message) { mod.notify(vm, action, message); } + // A start that fails in migrate-incoming is a managed save QEMU will + // not restore (an fd: save under a QEMU that wants file:), and it + // fails the same way every time, so say what to do about it. + function onActionFailed(vm, action, message) { + if (action === "start" && message.includes("migrate-incoming")) + message = "Its saved state can't be restored. Discard saved state on the VMs page, " + + "then start it again: it boots cold, the disk is untouched.\n\n" + message; + mod.notify(vm, action, message); + } } property Connections dockerConn: Connections { |
