Is it possible to pipe qemu-img into SSH target?
You want to use tee
instead of cat
.
tee - read from standard input and write to standard output and files
qemu-img convert -f raw -O vmdk /dev/sda1 - | ssh foo@bar "tee /home/foo/foobar.vmdk > /dev/null"