I’m trying to copy a file from a VM to another VM, from dom0 as part of an automated script.
So far I’ve tried:
qvm-run VM1 "qvm-copy-to-vm VM2 FILE
which requires user interaction to select the destination vm.
qvm-copy-to-vm VM2 "$(qvm-run --pass-io VM1 "cat FILE")"
which only displays the file in dom0 terminal without actually copying it.
Is anyone aware of some workaround that does not involve saving the file to dom0 and then transferring it to the second vm?