Bochs User Manual
<<< Previous | Using Bochs | Next >>>

# Save and restore simulation

Starting with version 2.3, Bochs has limited save/restore support. The state of cpu(s), memory and all devices can be saved now. To enable this feature, Bochs must be compiled with the `--enable-save-restore` option. When running Bochs with save/restore support there will be a new button in the header bar called "Suspend". Depending on config interface and gui there will be a prompt where you can enter a path or a gui folder selection dialog box. It is possible to save the state at any time, but we recommend to do it when the simulation is idle. After pressing OK/Enter, Bochs will save a set of files into the selected folder. The state of hard disk images is not handled yet, so Bochs will ask you if you want to continue after saving state. We don't recommend to continue unless you are running a read-only guest system (e.g. Live-CD).

To restore the saved simulation state you can select the restore function in the text mode start menu or specify the restore path at the command line:

    bochs -r /path/to/save-restore-data

Then Bochs will start up using the saved configuration and log options, restores the state of the hardware and begins the simulation. In the restore mode Bochs will ignore bochsrc options from the command line and does not load a normal config file.

<<< Previous | Home | Next >>>
The configuration interface 'textconfig' | Up | Common problems and what to do about them (Troubleshooting)