Backup Kicksecure VMs

From Kicksecure
Jump to navigation Jump to search

Overview of Ways to Backup your Kicksecure Virtual Machines

Overview - Ways to Backup Kicksecure VMs[edit]

There is not a great and simple way to make backups yet. Best you can do is either:

  • A) VM export: (Easiest, recommended.) Use the export feature of the virtualizer such as VirtualBox.
  • B) Shared folder: (Moderate difficulty.) Copy individual folders to a shared folder.
  • C) Manual copy: (Difficult, discouraged.) Create a copy of your VM settings folder as well as your virtual hard drive files. There is some important knowledge you have to be aware of, this is documented below.

General Important Recommendation[edit]

Creating backups is only the first step. You should do a test run if you are actually to restore your backup. Otherwise you may experience a nasty surprise that some files are missing for a successful and complete restoration.

VM Export[edit]

VirtualBox[edit]

Using the VM export feature of VirtualBox will create standalone .ova files which the user can easily import on any other computer that can run VirtualBox.

Exporting a VirtualBox VM means creating a copy of the VM's virtual hard drive, configuration files, into a single file that can be transferred to another physical machine (computer) or storage device. VirtualBox uses the Open Virtual Appliance (OVA) file format.

Once the file is created, the user can import it into VirtualBox on another physical machine and the VM will be set up with the same configuration as the original VM. This can be useful for migrating VMs between physical machines or for sharing VMs with others.

Exporting a VirtualBox VM is unspecific to Kicksecure. Instructions:

1. Open VirtualBox and select the VM you want to export from the list of available virtual machines.

2. Click on the "File" menu and select "Export Appliance" from the dropdown menu.

3. In the Export Appliance window, select the VM you want to export and choose a name and location for the exported package.

4. If asked, use the OVA file format.

5. Do not make any changes to the VM settings.

6. Click "Export" to start the export process.

7. Wait for the export process to finish. This may take some time depending on the size of the VM and disk speed.

8. Once the export is complete, you can move the exported package to another computer or storage device.

9. Done.

10. To import the exported VM you can use the "File" menu and select "Import Appliance" from the dropdown menu. Then, choose the exported package and follow the prompts to import the VM.

Shared Folder[edit]

A shared folder is a folder that can be accessed by both, the host operating systems as well as the virtual machine (VM). Changes made to the folder from one either the host operating system or the VM are visible to the other. It is a convenient way to share files from the host to the VM and/or vice versa.

VirtualBox[edit]

In VirtualBox, users can set up a shared folder by creating a folder on the host operating system (the operating system on the physical machine) and then configuring VirtualBox to share that folder with the guest operating system (the operating system running inside VirtualBox). This allows for easy file sharing and transfer between the host and guest operating systems.

See VirtualBox Guest Additions and Shared Folders chapter Shared Folder.

Manual Copy of VMs[edit]

Manually copying VMs is discouraged because it is difficult and requires a lot important knowledge. For more information, please press on expand on the right.

VirtualBox[edit]

VirtualBox VMs Folder versus VirtualBox Settings Folder[edit]

  • VirtualBox VMs folder: ~/VirtualBox VMs
  • VirtualBox settings folder: ~/.VirtualBox

~/VirtualBox VMs Folder[edit]

If you want to copy your VirtualBox's to another harddrive, only creating a backup of your ~/VirtualBox VMs folder won't suffice. You have to remember to have a backup of your VirtualBox settings folder (~/.VirtualBox) as well, because manually re-creating that folder is difficult and undocumented by VirtualBox's documentation.

Using VirtualBox's VM Cloning Feature for Backups is not Simple[edit]

The clone feature of VirtualBox is not very user friendly for backups for the same reason as above. It works, for cloning VMs, but it is not very useful for easy backups, because general VM settings are still stored in your home folder (~/.VirtualBox) and these are difficult to restore as mentioned above. So if you use the clone feature and backup your VMs on a different harddrive, you have to remember to have a backup of your VirtualBox settings folder (~/.VirtualBox) as well.

Backup VirtualBox Settings Files[edit]

Turn off VirtualBox before attempting to backup the VirtualBox's settings folder (~/.VirtualBox).

When you change VM settings, add/remove VMs, add/remove virtual hdds, add/remove snapshots you should create a new backup.

Advanced Users using git[edit]

Adding your VirtualBox settings folder to a revision control systemarchive.org such as gitarchive.org is a good addition to backups of VirtualBox's settings folder. Should VirtualBox damage your settings file and its backup file (happens sometimes), you can try a recent backup from an earlier git revision.

We believe security software like Kicksecure needs to remain Open Source and independent. Would you help sustain and grow the project? Learn more about our 12 year success story and maybe DONATE!