Hello community,

   I am trying to inspect a migration failure using the steps described here (https://wiki.qemu.org/Features/Migration/Troubleshooting#:~:text=on%20graphics%20emulation.-,load%20of%20migration%20failed%3A%20Input%2Foutput%20error,are%20a%20few%20failure%20cases.&text=Something%20kills%2Fcancels%20the%20migration,killed%20before%20migration%20is%20complete.&text=A%20migration%20failure%20on%20the%20source.). In the fourth step, it suggests using migrate 'exec:cat > /dev/null' to try dumping vm state on the source node. Since the virtual machine is controlled by libvirt, I suppose I could using the following command,

virsh qemu-monitor-command --hmp <instance-id> 'migrate "exec:cat > /dev/nulll"

but it failed with 2023-02-24T02:56:07.347307Z qemu-system-x86_64: Unable to write to command: Broken pipe

So my question is how to use this command using libvirt? Thank you very much for the help.
--

Best Regards,

Jiatong Shen