Restoring a virtual machine

Like backup, we can also restore virtual machines through the Proxmox GUI. VMs can be restored through the Backup menu tab of the VM or by selecting a backup file through the storage content list. If Restore is selected through the VM Backup option, then the VM ID cannot be changed. To understand this better, let's take a look at the following example:

In the preceding screenshot, we are under the Backup option for VM #100. Since the Backup option shows a list of all backup files stored in that backup storage node, we can see the backup file for VM #100. If we select the backup file and then click on Restore, we will not be able to restore the VM #100 on its own. Instead, it will actually replace VM #100. The following screenshot shows the Restore dialog box where the destination VM ID is not definable:

If we select the backup file for VM #100 from the storage content list and then click on Restore, we will be able to define a VM ID in the Restore dialog box, as shown in the following screenshot:

Defining the VM ID during restore is needed when we want to restore a VM while the VM's same ID stays intact. If the same VM ID is kept, then the existing virtual machine in the cluster with the same ID will be deleted and restored from the backup version. If we use a different ID before restoring it, then we will have an exact copy of the original VM with a different VM ID.

One important thing to remember is that a full backup created for a virtual machine with the .qcow2 or .vmdk image format can only be restored to local, CephFS, or NFS-like storages. But a virtual machine with the .raw image format can be restored on just about any storage system. RBD and LVM storages do not support image types such as .qcow2 or .vmdk.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.247.31