I have a Linux virtual machine with two disks, one is mounted as / and the other one as /home. I'd like to take a snapshot of / but not of /home so that I can later come back to a clean system and keep my data.
Is there anyway of achieving this?
After a bit more searching on the virtual box forum, I discovered that there is a type of virtual hard drives not affected by snapshots: writethrough.
To convert the disk, I first had to detach any differencing disk attached to it and then run this on the command line:
VBoxManage.exe modifyhd <path to vdi file> --type writethrough
After this, everything seems to work fine.
I don't know if there's a way to do this or not, but it's probably easier using Guest Additions to mount a folder from your host OS as /home, that way any changes to data there are unaffected by the snapshot.