15

I have a machine with snapshots at different key points in the configuration.
Now I need to back up this VM, with its snapshots, to another machine.

  • I tried the "Export" function, but the .ova file only contain the Current state, no snapshots.
  • Other solution I see is reverting to the first snapshot, export, forward to the next snapshot, export... It would be long, tedious, and heavy.

Is there any ways to take a VM and send it to another computer while preserving the snapshots?

4
  • Typically the way you export a virtual machine with snapshots is to clone the virtual machine and this will generate a new consolated virtual machine. Have you tried to clone the virtual machine? – Ramhound Mar 2 '17 at 17:31
  • @Ramhound: I do can clone the VM, but it stay on the same machine, I need to pass the file to another computer. Unless I missed a option to clone to a file? I also need all snapshots, not just one of them. The goal is also archiveing. – DrakaSAN Mar 2 '17 at 18:23
  • @Ramhound: Edited to explain in details the use case, and my current solution. – DrakaSAN Mar 3 '17 at 15:19
15
+50

To copy an entire VM with its snapshots and everything, the only way I know of is by copying the entire folder of the VM. Zipping the folder with 7z will reduce the disk-space to transfer.

If required, the VM with its snapshots can be cloned under another name by:

[right-click] VM -> Clone... -> [button] Next -> [radio button] Full clone -> [radio button] Everything -> [button] Clone

See the article Moving A VirtualBox VM With Snapshots for a detailed write-up.

1

The process of copying the full "Virtual VMs" folder from one host to another may be summarized as follows:

Backup: Backup full “c:/Users/oldlogname/Virtual Vms” folder

Restore:

  • Restore full “c:/Users/newlogname/Virtual Vms” folder

  • Edit each “*.vbox-prev” file of each VM, replacing affected paths/lognames

  • Start VirtualBox console in new host

    • Menu: Machine->Add … (each one of the imported VM folder/vmfile)

    • Declare and associate shared folders existing in the old vm host

  • Update “virtualbox additions” to each VM if the host VBox has different version

Enjoy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.