Skip to content

Enabling snapshots (QEMU older than 6.0.0)

Boris Stepanenko edited this page Aug 20, 2021 · 1 revision

nEMU is able to manage VMs snapshots, but this feature needs patched QEMU (added {save|load|del}vm qmp commands). Therefor to be able to use snapshots in nEMU you will need to build QEMU from source.

Since QEMU 6.0.0 {save|load|del}vm qmp commands were added. Our patch is no longer needed, but this API is only supported since nEMU version 3.0.0

Uninstall QEMU, if you installed it via packet manager

Depends on distributive you use, common cases:

  • # yum remove qemu
  • # apt remove qemu
  • etc...

Getting QEMU sources

  1. $ git clone https://git.qemu.org/git/qemu.git
  2. $ cd qemu
  3. $ git checkout v4.2.0

Patch and build QEMU (configure options may differ)

  1. $ patch -p1 < <path_to_nemu_sources>/patches/qemu-qmp-savevm-4.1.0+.patch
  2. $ ./configure --prefix=/usr --target-list=x86_64-softmmu
  3. $ make

Install QEMU

  1. # make install