How to Backup a VirtualBox VM

It is a good idea to backup your VirtualBox VM when you reach a milestone during a complex installation. It’s something very easy to do and it takes only a few minutes. This small tutorial will show you how to do it.

Export Appliance
Export Appliance

In previous tutorials, I described how I installed Oracle Linux 8.5 in a VirtualBox VM, how I did the oracle user setup and how I installed the VirtualBox Guest Additions. It was now a good time to do a backup of the VM before going on with more installations. The process is pretty straightforward and you only need a few minutes and some disk space. So let’s see how to do it:

The VM needs to be shutdowned before you can create a backup, you can do it by executing the command “sudo shutdown -h now” from a Oracle Linux shell  or using the “Machine > ACPI Shutdown” menu from VirtualBox.

shutdown -h now
shutdown -h now
ACPI Shutdown
ACPI Shutdown

The VM was now shutdowned, I selected the “File > Export Appliance” menu from VirtualBox Manager.

File > Export Appliance
File > Export Appliance

Then I selected the “OracleLinux8.5” Virtual Machine from the list of VMs and clicked the “Next” button:

Select OracleLinux8.5 VM
Select OracleLinux8.5 VM

I used the default Appliance settings for exporting the Virtual Machine. I only changed the export directory to “C:\VBOX” where I store all the VMs and I clicked the “Next” button:

Appliance Settings
Appliance Settings

The next screen allowed to add some descriptive information to the exported appliance. I kept the default values and I clicked the “Export” button.

Virtual System Settings
Virtual System Settings

The export stared and it took a few minutes to complete. The amount of time may took more or less time depending on the amount of data to save and the disks speed.

Exporting appliance
Exporting appliance

The backup file had an .ova extension and a size of 4.29GB.

OracleLinux8.5.ova
OracleLinux8.5.ova

Conclusion:

I now had a backup of the Virtual Machine and I was now ready to go on with the installations. I would recommend you to create a backup every time you reach an important milestone during a complex installation. It will allow you to quickly restart the installation process from a previous successful milestone in case of need.

Disclaimer

The information contained in this Website is for general information purposes only. We try to keep this information up to date and correct but we make no warranties of any kind about the completeness, accuracy, reliability with respect to the website, the information or the graphics contained on the website for any purpose. Any reliance you place on such information is strictly at your own risk. In no event will we be liable for any loss or damage whatsoever from the use of this Website.

The post How to Backup a VirtualBox VM appeared first on MyBIJourney

All trademarks are properties of their respective owners.
FacebookTwitterPinterestWhatsAppMail