Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Backup and restore with VirtualBox

A VirtualBox's newbie here. I created a snapshot of a VM by using this command line:

VBoxManage snapshot VMName take BackupName

Then I used this to check:

VBoxManage showvminfo VMName

and I saw a snapshot was created with the name BackupName. I didn't find an "actual" snapshot BackupName, I found a file filename.sav in SnapShots folder.

My intention was to create a snapshot of this VM, copy it to another host machine and restore it there. Since I couldn't find the "snapshot" BackupName, so I copied sav file to new host and used this command:

VBoxManage adoptsate filename.sav

But it didn't work. Can anyone help me how to copy that "snapshot" and restore it in a new host. Thanks a lot

like image 917
Ragnarsson Avatar asked Dec 08 '14 10:12

Ragnarsson


1 Answers

First, get a list of the Virtual Machines installed on your host at the command line:

vboxmanage list vms

Sample Output

"UbuntuVM" {77743eca-e338-471c-b824-60c5c5c22b6f}
"Windows XP SP3" {3818afc4-189d-4441-8f35-07284c930a4b}
"Windows XP SP3 Clone" {79b40316-225a-43a1-9ddf-22a51c280d4e}

Find the one you want to export to a different host, and export to a file called Ubuntu.ova like this:

vboxmanage export UbuntuVM -o Ubuntu.ova
like image 83
Mark Setchell Avatar answered Sep 20 '22 23:09

Mark Setchell