How to have VM with predefined starting state

Albrecht

New Member
Jun 8, 2009
4
0
1
Hi,

I want to have a VM that always starts at a predefined state, since I need to test installers for our product on "clean" OS installations.

VMWare has the feature to "revert to snapshot at startup", which is what I am looking for.

What is your suggestion? Write scripts that do the backup/restore prior to starting the VM, or is there already support for this?

Albrecht
 
Well, maybe you can use the 'snapshot' flag of the harddisk. In /etc/qemu/XXX.conf use something like:

ide0: filename.qcow2,snapshot=on

Then that harddisk in never written to.