I am using KVM in cents 5.6. I am trying to do offline migration between two machines. I have a common NFS server. I initially save the state of the running VM (on machine1) to a state file using :
/usr/libexec/qemu -m 1024 -hda image1.img (to start the vm) stop migrate "exec:gzip -c > state.gz"
It successfully saves the state. Now I can resume the vm on the same machine with :
/usr/libexec/qemu -m 1024 -hda image1.img -incoming "exec:gzip -c -d state.gz"
It works fine. But is I use the same command in machine 2, I get :
gzip: stdout: Broken pipe.
Either the vm doesn't give any output or it starts from scratch and not from the memory state. I dont know the mistake I am committing. It will be great if someone can give me some pointers, tips or help on this issue. Thanks a lot.