How to start VM without all files?

Discussions related to using VirtualBox on Linux hosts.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to start VM without all files?

Post by socratis »

Dirk_Lehmann wrote:If vmdk is lost, then no possibility to get up vm again with the "help" of the differential snapshot files?
YES! YOUR DATA IS LOST!
IF YOU HAVE NO BACKUP, SNAPSHOTS ALONE DO NOT HELP!!!

That's MY official statement. If you don't understand how something works, don't use it thinking that it works the way *you* think it works.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Martin
Volunteer
Posts: 2561
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: How to start VM without all files?

Post by Martin »

Also: This is a user forum, from users for users. Oracle just sponsors the running of the forum, this is no official support channel.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to start VM without all files?

Post by socratis »

Dirk_Lehmann wrote:Sara:
Who's Sara? In any event, it sounds like she got it right; there's no hope.
Dirk_Lehmann wrote:Dirk Lehmann: Running Ubuntu Linux with Virtualbox on sdd and vm path to hdd (raid) with backup to ext. drive. Is that reliable to run vms?
Not if you don't back it up, no. It's as reliable as running it on a Windows XP, with an external USB2. Or a floppy. But not if you delete the file on your own!

And this is definitely not a VirtualBox problem, it's a certain user mistake. Technology is not an answer for PEBKAC...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: How to start VM without all files?

Post by mpack »

Dirk_Lehmann wrote:Is mpack answer official statement to this issue by oracle company?
No answer received on this site is an "official answer", even if the person saying it is an Oracle employee. Which I'm not. I believe I am however considered knowledgeable on the subject of virtual disk formats.

The problem here is that you do not know what a snapshot is. It is not a file cabinet for disk files which takes over when you "close" the first cabinet - which is how a lot of people seem to think about it.

A snapshot is just a list of patches, but it works at the disk sector level, not the file level. VirtualBox knows nothing about guest files. I.e. you can think of it as a list of instructions of the form "replace sector 123 (from the parent image) with this data: [...]. If you don't have the parent medium then then list of patches is nearly useless. Now it's true, if you happened to have a snapshot that patched every sector of the parent, and if you were a computer programmer who could tailor some software to stop looking for a parent, then you could probably recover a drive image. However the facts are that the filesystem on the drive never needs to be totally rewritten so the snapshot will be lacking that, so the reconstituted image would be lacking a file system. It would just be a random scatter of not quite zero sectors. Plus you probably aren't a programmer, and finding one to hire who knows anything about this stuff would be (a) difficult, and (b) disappointing, since he'll just tell you the same as I did.
 Edit: Actually I just thought of a way for a non-programmer to do the work, which is to create a new base image of the correct size, and then hook up the UUID links from child to parent. The fact that you chose the non-standard VMDK format may complicate this, and I'll emphasize that all this will do is give you the aforementioned disk image with no filesystem. You have no hope of booting from this or even mounting it in a guest OS. At best it could be scanned for data scraps. Files smaller than 32KB (which from memory is the default grain size in VMDK) might be found this way. 
Post Reply