I have a linux guest on a windows 7 host. When I start the VM, it loads a snapshot I took 7 days ago. I don't want this, as 7 days of work are in the differencing images. The error I receive on trying to delete the snapshot is that:
Code: Select all
Failed to delete the snapshot Snapshot 1 of the virtual machine slackware.
Hard disk 'H:\vm\slackware.vdi' has more than one child hard disk (3).
Result Code: E_FAIL (0x80004005)
Component: SessionMachine
Interface: IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}
Children 1 and 3 are noted as "NOT ATTACHED", while child 2 is labeled as attached to "slackware" (does this reference the VM or VDI? they both have the same name unfortunately).
VDI "Clone of slackware" foreshadows things to come...
My Question(s):
Currently, when I boot the VM, all i get is the snapshot.
1) How can I remove this snapshot?
2) Alternatively, is it possible to create a copy of the VDI file that merges the difference images into the original VDI?
3) Lastly, if none of those are possible, is it possible to extract my work directly from the difference images + parent disk?
4) What steps would you recommend to create a backup of the current VDI, even broken as it is. (i.e. make copies of parent + children in their directories, to avoid any additional mistakes).
I just want my work by any means necessary and hope to cautiously proceed from here.
- Here is an explanation of how I came to my current setup:
- Created "slackware" and "slackware" vdi, installing (you guessed it) slackware 13.1 _64.
- Ooooh this VM is AWESOME. Hey whats this "take a snapshot" button? Hit the "take a snapshot" button 7 days ago. (my downfall)
- I let the VM run for a week, with no shutdowns etc, and putting in valuable amounts of work in the meantime.
- Run out of disk space (really, 10GB. You thought that was enough?). So I shut down the machine.
- Attempt to use "VBoxManage modifyhd slackware.vdi --resize=100gb to resize the hard drive. slackware.vdi is dynamically allocated.
- --resize fails (neither slackware nor GParted recognize any new unpartitioned space).
- Research the CloneVDI took by mpack to make a clone of slackware.vdi and resizing it in the process. Make "Clone of Slackware.vdi". This correctly resizes the disk. (slackware and GParted recognize new unpartitioned space).
- remove slackware.vdi from my VM's SATA controller and connect "Clone of Slackware.vdi".
- when I boot in I notice no new files are present. Here is when I finally notice that I am in the snapshot. (Note this is snapshot mistake #1)
- I shutdown, remove "Clone of Slackware.vdi" and reconnect slackware.vdi to the virtual sata controller.
- upon booting up, I realize I am still in the snapshot. (Note this is likely snapshot mistake #2)
