I am used to the Virtualbox "save machine state" exit strategy, which is a handy way to let the host reboot without shutting down the vm.

I recently switched to qemu because of its VT-x in VT-x support, necessary for VS2015 emulators, and missing in Virtualbox.

I can handle the commandline startup, but what I haven't been able to do succesfully is to save a VM's state that can be later booted up and resumed. How can I do this? Note that libvirt's virtual machine manager is not an option as I can't seem to install the networking firewall dependencies (nor does it seem necessary, so I don't really want to). I'm running Arch Linux.

  • Just to clarify something. I use VirtualBox myself, and VT-x support is there. You just have to enable it per machine and install the guest addons to use it. Also, it will be disabled if you have another VM installed and its drivers are loaded first. Also, only available on x64 installs. – LPChip Jul 6 '15 at 20:33
  • @LPChip what I mean is that the guest OS cannot access the VT-x capabilities. Qemu (and VMWare for that matter) have a pass-through mechanism. See this Virtualbox bug report. – rubenvb Jul 6 '15 at 20:39
  • Ah, my bad. I thought you meant that VT-x was not detected even. Just wanted to make sure you were aware VT-x is there. but you appear to be a step ahead even. :) – LPChip Jul 6 '15 at 20:40

You can use the "savevm" and "loadvm" command in the qemu monitor. The entire state of the machine is saved, exactly as in virtualbox. The only caveat is that the drive image file has to be in qcow2 format. You can find out more about qemu monitor from the following site: https://en.wikibooks.org/wiki/QEMU/Monitor#savevm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.