I am debugging a migration issue(migration fails with message: "load of migration failed: Input/output error").
I could not get any log message in " /var/log/libvirt/qemu/" directory other than "initiating migration" message.
Added below two lines in /etc/libvirt/libvirtd.conf and restarted libvirtd
log_filters="1:qemu 1:libvirt 1:util"
log_outputs="1:file:/var/log/libvirt/libvirtd.log"
Source side libvirt logs:
————————————
2022-09-17 18:48:02.620+0000: 19373: info : qemuMonitorJSONIOProcessLine:235 : QEMU_MONITOR_RECV_EVENT: mon=0x7f03f40030e0 event={"timestamp": {"seconds": 1663440482, "microseconds": 619909}, "event": "MIGRATION", "data": {"status": "setup"}}
2022-09-17 18:48:02.764+0000: 19373: info : qemuMonitorJSONIOProcessLine:235 : QEMU_MONITOR_RECV_EVENT: mon=0x7f03f40030e0 event={"timestamp": {"seconds": 1663440482, "microseconds": 763740}, "event": "MIGRATION_PASS", "data": {"pass": 1}}
2022-09-17 18:48:02.764+0000: 19373: info : qemuMonitorJSONIOProcessLine:235 : QEMU_MONITOR_RECV_EVENT: mon=0x7f03f40030e0 event={"timestamp": {"seconds": 1663440482, "microseconds": 763889}, "event": "MIGRATION", "data": {"status": "active"}}
2022-09-17 18:48:12.863+0000: 19373: info : qemuMonitorJSONIOProcessLine:235 : QEMU_MONITOR_RECV_EVENT: mon=0x7f03f40030e0 event={"timestamp": {"seconds": 1663440492, "microseconds": 863038}, "event": "MIGRATION_PASS", "data": {"pass": 2}}
2022-09-17 18:48:12.865+0000: 19373: info : qemuMonitorJSONIOProcessLine:235 : QEMU_MONITOR_RECV_EVENT: mon=0x7f03f40030e0 event={"timestamp": {"seconds": 1663440492, "microseconds": 865130}, "event": "STOP"}
2022-09-17 18:48:12.866+0000: 19373: info : qemuMonitorJSONIOProcessLine:235 : QEMU_MONITOR_RECV_EVENT: mon=0x7f03f40030e0 event={"timestamp": {"seconds": 1663440492, "microseconds": 865800}, "event": "MIGRATION", "data": {"status": "failed"}}
2022-09-17 18:48:12.867+0000: 19373: info : qemuMonitorJSONIOProcessLine:235 : QEMU_MONITOR_RECV_EVENT: mon=0x7f03f40030e0 event={"timestamp": {"seconds": 1663440492, "microseconds": 865862}, "event": "RESUME"}
Target side libvirt logs:
————————————
2022-09-17 18:48:02.563+0000: 28937: info : qemuMonitorJSONIOProcessLine:235 : QEMU_MONITOR_RECV_EVENT: mon=0x7f827003fe40 event={"timestamp": {"seconds": 1663440482, "microseconds": 562521}, "event": "MIGRATION", "data": {"status": "setup"}}
2022-09-17 18:48:02.643+0000: 28937: info : qemuMonitorJSONIOProcessLine:235 : QEMU_MONITOR_RECV_EVENT: mon=0x7f827003fe40 event={"timestamp": {"seconds": 1663440482, "microseconds": 643001}, "event": "MIGRATION", "data": {"status": "active"}}
2022-09-17 18:48:12.948+0000: 28937: info : qemuMonitorJSONIOProcessLine:235 : QEMU_MONITOR_RECV_EVENT: mon=0x7f827003fe40 event={"timestamp": {"seconds": 1663440492, "microseconds": 947620}, "event": "MIGRATION", "data": {"status": "failed"}}
I could not debug further, libvirtd.log just says "failed", nothing else on why it's failed.
Qemu just logs a single message("initiating migration" ), though I enabled all the qemu trace-events.
Please help me debug this issue.
Thanks.