qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QEMU checkpoint/restore without an image?


From: Peter Maydell
Subject: Re: QEMU checkpoint/restore without an image?
Date: Sun, 27 Jun 2021 18:36:14 +0100

On Sat, 26 Jun 2021 at 22:41, Leek, Jim <leek2@llnl.gov> wrote:
>
> I'm working with VxWorks, a Real Time Operating System for embedded systems. 
> They recently added QEMU support, and I've been trying to figure it out. (I'm 
> fairly new to all these technologies.) I would like to checkpoint and restart 
> the virtual machine, ie save the RAM and processor state and reload it later 
> from exactly that point.
>
> I read up on snapshots, but those seem to require a disk image in qcow2 
> format. But my simulation has no disk, the program is loaded directly into 
> RAM and run.

You need a QCOW2 image file, because that is where the data
(RAM contents, etc) is stored. But that image file doesn't
actually have to be used for anything by the system you're
emulating. This blog post I wrote ages ago:
https://translatedcode.wordpress.com/2015/07/06/tricks-for-debugging-qemu-savevm-snapshots/
suggests that you can create an image with
  qemu-img create -f qcow2 dummy.qcow2 32M
and then add
  -drive if=none,format=qcow2,file=dummy.qcow2
to your command line. (Ignore warnings about the drive being orphaned.)
Hopefully that still works...

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]