Skip to contentSkip to conversation

Do vm snapshot feature exist in qemu as in VMware

Qemu-devel ¤終於aware 2 participants 3 messages Dec 20, 2011

lore
Share & tools
lore
#0 lore raw

Hi,
how to save the current state of the running vm as a file and restore the last running state later by using the file as a arg of qemu cmd line?

#1 lore raw
Quoted 2 lines · ¤終於aware

Hi,
how to save the current state of the running vm as a file and restore the last running state later by using the file as a arg of qemu cmd line?

You can see http://en.wikibooks.org/wiki/QEMU/Monitor , search savevm and
loadvm.

Regards,
chenwj

Signature · 5 lines
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj
#2 lore raw
In reply to ¤終於aware
Quoted 2 lines · ¤終於aware

Hi,
how to save the current state of the running vm as a file and restore the last running state later by using the file as a arg of qemu cmd line?

BTW, make sure your root file system's format support snapshot. For example,
if you have a ext2 root file system "rootfs.ext2", convert it to qcow2 format by using qemu-img.

  $ qemu-img convert -O qcow2 rootfs.ext2 rootfs.qcow2

Regards,
chenwj

Signature · 5 lines
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj