id = 1231 title = "Loading migration of VM in debug state fails (with potential solution)" state = "opened" created_at = "2022-09-26T20:53:16.933Z" closed_at = "n/a" labels = ["Migration"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1231" host-os = "N/A" host-arch = "N/A" qemu-version = "7.1.0" guest-os = "N/A" guest-arch = "N/A" description = """``` qemu-system-x86_64: invalid runstate transition: 'inmigrate' -> 'debug' Aborted (core dumped) ```""" reproduce = """1. Start VM with gdbstub 2. Pause VM via gdbstub 3. Save migration snapshot via HMP: `migrate "exec: gzip -c > foo.gz"` 4. Start new QEMU instance from snapshot by adding these args to whatever you used to launch QEMU: `-incoming "exec: gzip -c -d foo.gz"`""" additional = """This can be fixed by adding `{ RUN_STATE_INMIGRATE, RUN_STATE_DEBUG },` to `runstate_transitions_def` in `softmmu/runstate.c`. It's not clear if there are any negative ramifications of this, but it seems to work for me?"""