Snapshosts and fixed storage

Discussions related to using VirtualBox on Mac OS X hosts.
waldorfm
Posts: 86
Joined: 12. Sep 2010, 15:47
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Oracle Linux

Snapshosts and fixed storage

Post by waldorfm »

Hi,

Reading about Snapshots at http://www.virtualbox.org/manual/ch01.html#snapshots I understand that a Snapshot is not a backup of existing data. Instead, it marks the beginning of a new storage location where all new data and changes will be written to. If this is correct, I wonder what would happen if a snapshot is done while the VM uses an empty 20 GB fixed virtual hard drive. Doesn't this mean 20 GB of disk space will continue to be wasted as new data is written to the Snapshot?

Thanks.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Snapshosts and fixed storage

Post by noteirak »

that's correct.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
waldorfm
Posts: 86
Joined: 12. Sep 2010, 15:47
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Oracle Linux

Re: Snapshosts and fixed storage

Post by waldorfm »

Ok. Many thanks for the prompt answer!
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Snapshosts and fixed storage

Post by mpack »

Happily the issue never arises because nobody in their right mind uses either fixed disks or snapshots anyway! :wink:
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Snapshosts and fixed storage

Post by loukingjr »

mpack wrote:Happily the issue never arises because nobody in their right mind uses either fixed disks or snapshots anyway! :wink:
I beg to differ about the snapshots. At least one snapshot anyway. Whenever there are major updates such as a new Kernel it's nice to preserve the working machine before updating because many times the updates will break the install. It's much easier and quicker than cloning. I learned the hard way.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Snapshosts and fixed storage

Post by mpack »

You can easily back up a VM without involving snapshots. Cloning speed isn't really relevant IMHO, since you ought to be making proper backups anyway before any major change.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Snapshosts and fixed storage

Post by loukingjr »

Yes, you could make backups. However in my case where I could have 20-30 VMs at a time, snapshots seem to be quicker and easier and take up less disk space. different strokes etc.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Snapshosts and fixed storage

Post by mpack »

Yes, we could get into the old snapshots vs cloning debate, but here is not the place for it - the OP didn't ask about that. So lets call it quits.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Snapshosts and fixed storage

Post by loukingjr »

okie doke. :)
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Snapshosts and fixed storage

Post by mpack »

Though perhaps you might try explaining to this chap, why you think snapshots are better than clones. :twisted:
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Snapshosts and fixed storage

Post by loukingjr »

mpack wrote:Though perhaps you might try explaining to this chap, why you think snapshots are better than clones. :twisted:
thought we were done? as I mentioned, using ONE snapshot works for me. multiple snapshots can quickly turn into a nightmare.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Snapshosts and fixed storage

Post by mpack »

We were done, but then this prime example presented itself. He only had one snapshot too: not that that helps if you lose the base VDI as he did.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Snapshosts and fixed storage

Post by loukingjr »

mpack wrote:We were done, but then this prime example presented itself. He only had one snapshot too: not that that helps if you lose the base VDI as he did.
So I guess what you are saying is if someone uses a snaphot/snapshots incorrectly they will have problems.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Snapshosts and fixed storage

Post by mpack »

No, I'm saying that if you damage any file in a snapshot chain then you'll have problems, particularly if its the base VDI. File damage can happen for a number of reasons, not all of them involving improper manipulation of the snapshot files. With a backup there can be no such problem - you just restore the affected file.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: Snapshosts and fixed storage

Post by loukingjr »

mpack wrote:No, I'm saying that if you damage any file in a snapshot chain then you'll have problems, particularly if its the base VDI. File damage can happen for a number of reasons, not all of them involving improper manipulation of the snapshot files.
From what I read he never copied the VDI in the first place. Had he copied the entire VirtualBox folder he would of been fine. It doesn't seem to me snapshots were the problem. It's just all he had left. Had he cloned the VM and managed not to copy that to his new drive he would be no better off.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply