[SOLVED] Suffices to backup VDI file?
-
kebabbert
- Volunteer
- Posts: 321
- Joined: 31. May 2008, 10:00
- Primary OS: OpenSolaris 11
- VBox Version: OSE other
- Guest OSses: WinXP, RedHat, Ubuntu
[SOLVED] Suffices to backup VDI file?
If I want to backup a virtual machine, does it suffice to only backup the VDI file? The rest of the files will automatically recreated when I attach the VDI file and create "new"?
Last edited by kebabbert on 9. Aug 2010, 23:21, edited 1 time in total.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Suffices to backup VDI file?
The VDI is just the hard drive image. The settings can't be created based on this single file, you have to back them up too. If you want to back up your VMs, then you can just back up the entire .VirtualBox folder.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
kebabbert
- Volunteer
- Posts: 321
- Joined: 31. May 2008, 10:00
- Primary OS: OpenSolaris 11
- VBox Version: OSE other
- Guest OSses: WinXP, RedHat, Ubuntu
Re: Suffices to backup VDI file?
Really? The reason I ask is because I can clone a VDI with
VBoxManage clonehd /FullPath/old.vdi /FullPath/new.vdi
And then I can attach the new.vdi - but there are no settings for new.vdi. Just a VDI file. So all settings are recreated from new.vdi? Is this correctly understood by me? Hence, I could just backup the VDI file? Or?
VBoxManage clonehd /FullPath/old.vdi /FullPath/new.vdi
And then I can attach the new.vdi - but there are no settings for new.vdi. Just a VDI file. So all settings are recreated from new.vdi? Is this correctly understood by me? Hence, I could just backup the VDI file? Or?
-
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: Suffices to backup VDI file?
The settings are not embedded in the VDI in any way - and anyway remember that one VM can use several VDI files.
All I do to backup a VM is back up the VDI, and back up the VM settings xml separately. If I need to restore the VM xml then all I do is create a new VM using the backed up XML as a manual reference. However please note that this changes the VM UUID: as an XP user this doesn't bother me, but Win7 guests would care. There are ways around the VM UUID problem for those that care enough to research it.
[Edit: I should have said that in the worst case, I create a new VM. Of course if the old VM is still intact except for say a damaged disk, then all I need do is restore the disk].
All I do to backup a VM is back up the VDI, and back up the VM settings xml separately. If I need to restore the VM xml then all I do is create a new VM using the backed up XML as a manual reference. However please note that this changes the VM UUID: as an XP user this doesn't bother me, but Win7 guests would care. There are ways around the VM UUID problem for those that care enough to research it.
[Edit: I should have said that in the worst case, I create a new VM. Of course if the old VM is still intact except for say a damaged disk, then all I need do is restore the disk].
Last edited by mpack on 9. Aug 2010, 10:42, edited 1 time in total.
-
MarkCranness
- Volunteer
- Posts: 875
- Joined: 10. Oct 2009, 06:27
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP
Re: Suffices to backup VDI file?
AFAIK, Windows 7 (and Vista) also care about the VirtualBox hard disk UUID.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Suffices to backup VDI file?
Win 7 does not care about the HD UUID. It will not trigger a reactivation. I've tested this myself, only the VM UUID does this.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
MarkCranness
- Volunteer
- Posts: 875
- Joined: 10. Oct 2009, 06:27
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP
Re: Suffices to backup VDI file?
I haven't tested it myself, but I know Microsoft say this about Windows 7 activation:
I note it does NOT explicitly say BIOS UUID (created from the VM UUID by VirtualBox) or BIOS serial number.Specific information sent or received: During the activation process, the following information is sent to an activation server that is maintained by Microsoft:
- Computer make and model
- Version information for the operating system and software using Genuine Advantage
- Region and language settings
- A unique number assigned to your computer by the tools (globally unique identifier or GUID)
- Product key (hashed) and product ID
- BIOS name, revision number, and revision date
- Hard drive volume serial number (hashed)
-
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: Suffices to backup VDI file?
And in any case the subject is moot, since backing up the VDI file does not change the HD UUID. We are talking here about backing up using a simple host OS file copy.Sasquatch wrote:Win 7 does not care about the HD UUID. It will not trigger a reactivation. I've tested this myself, only the VM UUID does this.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Suffices to backup VDI file?
The VM UUID is not the BIOS UUID, but the hardware UUID. If you would replace your motherboard with the exact same type, Windows 7 will probably trigger a reactivation.MarkCranness wrote:I haven't tested it myself, but I know Microsoft say this about Windows 7 activation:
[...]
I note it does NOT explicitly say BIOS UUID (created from the VM UUID by VirtualBox) or BIOS serial number.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
kebabbert
- Volunteer
- Posts: 321
- Joined: 31. May 2008, 10:00
- Primary OS: OpenSolaris 11
- VBox Version: OSE other
- Guest OSses: WinXP, RedHat, Ubuntu
Re: Suffices to backup VDI file?
Ok, I created an OVF file from my fresh install. And I backup the OVF file. But, that was dumb. When I import the OVF file, I get a VMDK file, I do not get a VDI file. So now I have OVF file and I can get VMDK file.
Every VirtualBox command is operating on the VDI file. Not on the OVF or VDMK file. So I must convert back to VDI every time when I want to use a VirtualBox command. This means it is better to back up the VDI file. I should not back up the OVF file. Always backup the VDI file. Never back up the OVF file.
So to back up the VDI file, which files do I need to backup? The entire directory is the safest, right?
Every VirtualBox command is operating on the VDI file. Not on the OVF or VDMK file. So I must convert back to VDI every time when I want to use a VirtualBox command. This means it is better to back up the VDI file. I should not back up the OVF file. Always backup the VDI file. Never back up the OVF file.
So to back up the VDI file, which files do I need to backup? The entire directory is the safest, right?
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Suffices to backup VDI file?
Yes, the entire .VirtualBox directory is the best option. That way, you can restore the entire situation, snapshots, everything in case your system fails from a fatal crash. You can also easily restore it to another user, you only need to check if the paths are still valid. If you don't change the default paths, then they should be relative instead of absolute and are thus easy transferable.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
kebabbert
- Volunteer
- Posts: 321
- Joined: 31. May 2008, 10:00
- Primary OS: OpenSolaris 11
- VBox Version: OSE other
- Guest OSses: WinXP, RedHat, Ubuntu
Re: Suffices to backup VDI file?
So I can restore the entire .Virtualbox folder to another user? Good.
But I can not restore the entire .VirtualBox folder to another computer, say an Ubuntu computer? I am using OpenSolaris...
But I can not restore the entire .VirtualBox folder to another computer, say an Ubuntu computer? I am using OpenSolaris...
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: Suffices to backup VDI file?
No, you can only restore the .VirtualBox directory to a similar OS. Solaris is not like Linux, so you can't exchange configurations between them. You can however transfer the config from Ubuntu to Fedora for example, or from Windows XP to Windows 7. As long as the paths are still valid. Differences in the workings of the OS and version registration in the XML files prevent cross-platform transfers (think about the audio system and the physical network adapter names, as well as shared folder paths).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
MarkCranness
- Volunteer
- Posts: 875
- Joined: 10. Oct 2009, 06:27
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP
Re: Suffices to backup VDI file?
Yes, my bad. The serial number and UUID are DMI type 1 = System, not BIOS.Sasquatch wrote:The VM UUID is not the BIOS UUID, but the hardware UUID. If you would replace your motherboard with the exact same type, Windows 7 will probably trigger a reactivation.MarkCranness wrote:I haven't tested it myself, but I know Microsoft say this about Windows 7 activation:
[...]
I note it does NOT explicitly say BIOS UUID (created from the VM UUID by VirtualBox) or BIOS serial number.