Virtual Box - Delete all snapshots and use only "Current State"

I have an Ubuntu Server Guest that I staged as a web server and built a PHP app in. I would periodically save the state of the machine as I installed new packages and tweaked the Server config. Likewise as the code tree grew I would take a snapshot of the machine when I was happy.
This is now a production server and I want to free up disk space by deleting all of the snapshots and keep only the Current State, so I can get a backup routine going on the VDI.
I've read way too many conflicting posts to blow 4 months worth of programming and configuration to end up with a fractured disk image.
Looking at the attached image, can someone please verify the correct way to remove the snapshots so that the VM is always running in it's "Current State"?
VM states
LVL 9
Michael KnightAsked:
Who is Participating?
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Yes, okay, use Delete at the Root of the Snapshot tree. It could take a while to complete.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
you want to revert to the original vm configuration and get rid of all snapshots
.?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
so do you want to time travel and go back in time or keep existing state to use in future.

if this is the case just select delete snapshot at the top of the tree, warning this operation could take many hours to merge all snapshots into the main disk as committed before they are removed from the main disk.
0
Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

 
Michael KnightAuthor Commented:
I want the existing state to be the only state. As though it were a real machine.
0
 
Michael KnightAuthor Commented:
OK, just to verify, on my setup I would be right clicking "Fresh Server" and deleting snapshot I should be fine. Do I need to stop the VM first?
Sorry dude I'm paranoid.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
If you dont neec the server on, power off it could be quicket.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
yes that is correct.
0
 
SysExpertCommented:
WHile in theory that is correct, I have had some issues with this.

for safety, i would consider doing a backup of the VM via one of the free tools so that you have a preserved state in a standard format.

Ghost, StorageCraft and others have tools ( free and pay ) for doing this, or use any backup software.

0
 
Michael KnightAuthor Commented:
thank you SySExpert, I exported the appliance before performing the deletion.
On an interesting note, deleting the root snapshot does not in fact 'collapse' the tree, so it was a matter of actually deleting the first root, then waiting , then deleting the next (new) root, then the next and so on. Thankfully, the VM is running only in the current state now and there were no ill side effects to the operation.
My server is now running in the clean current state. Thanks guys.

-mk
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.