[<<][pool][>>][..]
Thu Jul 19 19:27:48 EDT 2012

Saving qemu state

  (qemu) stop
  (qemu) migrate “exec: dd of=state.img”

To load state.img on startup when present, do something like:

  [ -f state.img ] && INCOMING=-incoming STATE="exec:dd if=state.img"
  MONITOR="-monitor unix:$(dirname $0)/monitor,server,nowait"
  qemu ... $INCOMING "$STATE" $MONITOR ...

The monitor is for use with the following script:

zoo:/qemu/ubit.d# cat hibernate 
#!/bin/bash
cat <<EOF | socat - unix:$(dirname $0)/monitor
stop
migrate "exec:dd of=state.img"
quit
EOF



[Reply][About]
[<<][pool][>>][..]