QNAP Virtualization Station – how to setup backup and recover from it

QNAP Virtualization Station offers several backup methods:

  1. You can periodically manually export a virtual machine to the .qvm configuration file. In case of a failure, you can simply import this virtual machine using the QNAP Virtualization Station without any problems (if the virtual machine itself was not damaged).
  2. The second method is automatic backup of virtual machines, which is built into the QNAP Virtualization Station application. It automatically creates backups of one or more virtual machines: backup of .img files with data and .json with the configuration. This method also allows you to restore a virtual machine.
  3. The last method is snapshots. They are needed if, for example, you have deleted or changed something on the guest OS and want to return to the previous state of the virtual machine. In case of a serious failure, you will not be able to restore the virtual machine in full using snapshots.

In this article, we will look at backup using the first two methods.

The first method:

  1. Go to the Virtual Machines tab and click on the gear icon in the row with the desired virtual machine.
  2. QNAP virtualization station
  3. Click the Export button in the opened window.
  4. QNAP virtual machine export
  5. Select the file format and the place where it will be copied. Click Start and wait for the end of the process.
  6. QNAP virtual machine export parameters QNAP virtual machine export process
  7. After the file export process is complete, you can use it to transfer the virtual machine to another QNAP device or to recover from a crash. To restore a VM from a file .qvm, just click the Import Virtual Machine button, specify the path to the file and then follow the on-screen instructions.
QNAP virtual machine import QNAP virtual machine import path QNAP virtual machine import destination QNAP virtual machine import parameters QNAP virtual machine import disk image QNAP virtual machine import network QNAP virtual machine import iso QNAP virtual machine import other parameters QNAP virtual machine import all parameters QNAP virtual machine import process QNAP virtual machine import done

The second method:

  1. Go to the Data Protection tab and click on the Create button.
  2. QNAP virtual machine data protection
  3. Select Backup, specify the name of the plan and its description (if necessary).
  4. QNAP - creating data protection plan
  5. Select the needed VM(s)
  6. QNAP - select vm backup
  7. Then specify the location the backups will be saved to.
  8. QNAP - backup vm target
  9. Also specify the number of backups for each virtual machine that can be on the disk at the same time (old copies will be deleted) and set a schedule.
  10. QNAP - backup vm schedule
  11. On the final screen, check the settings and click Create.
  12. QNAP - backup plan parameters
  13. If you have selected the option Immediately backup the VM, the backup creation process begins immediately after configuration.
  14. QNAP backup process
  15. In case of a failure, just open the Data Protection tab again and click Restore.
  16. QNAP backup restore

    Then select the backup folder.

    QNAP backup restore 2

    Select the desired one from the list.

    QNAP backup restore 3

    Select the recovery method and specify the parameters for the virtual machine.

    QNAP backup restoration method QNAP backup restore vm parameters

    At the end, you can check all the parameters again and click the Restore button, which launches the recovery process.

    QNAP backup restore all parameters QNAP backup restore vm overwrite QNAP - restoring vm QNAP - restored vm

    However, it may happen that backups have not been configured correctly, and/or .qvm files have been saved for a long ago, and there is no necessary data, or manual export was also not carried out. Or something has happened to the configuration and it is not possible to transfer/restore virtual machines.

    In this case, you can at least try to restore data from the virtual machine image file. We will discuss exactly how to do it best in this article.