Skip to content

How to Restore a Virtual Machine On Proxmox?

restore a virtual machine on proxmox

In the previous article, we explained how to back up a virtual machine on Proxmox. This article will try to explain how to restore a virtual machine on proxmox?

 

Problem

How to restore a virtual machine on proxmox?

 

Solution

After we back up a virtual machine in proxmox, then we can move the backup file to another proxmox server to do a restore so that we no longer need to create a virtual machine from scratch and we must place the backup file in the /var/lib/vz/dump/ folder. There are 2 methods to restore a virtual machine in proxmox: the GUI method and the command line.

In the GUI method, click local then click Backups, select the backup file to restore, and after that click the Restore button as shown in the image below:

The restore file

then there will be a pop-up like an image below:

The pop-up of restore appears

We can change the options in this pop-up, and if you have finished configuring it then click the Restore button, then there will be a display like below:

The restore process is running

We have to wait until the restore is finished which is marked with the sentence TASK OK and when it is finished click the cross at the top right. And the virtual machine should be formed on our proxmox like in the image below.

A new VM has been created

In the CLI method, we must first go to the /var/lib/vz/dump/ folder and we must select the backup file we want to restore by selecting a file with a .zst or .gz or .lzo extension. After that, type the command with the following format to restore:

qmrestore backup_file.zst/.gz/.lzo ID

In my case, the format will be changed like this command below:

qmrestore vzdump-qemu-100-2022_05_31-16_57_52.vma.zst 101

 

To determine the ID, we can choose the ID according to our will as long as the ID is not already in use on proxmox (to find out the ID that has been used, use the command qm list). Or we can also display the ID automatically by pressing the Tab key 2x.

Restore VM using CLI

 

Note

After we know how to create, delete, backup, and restore a virtual machine in Proxmox, then we are more familiar with the features of Proxmox.

 

References

bobcares.com
laptophow.com
klinikit.id
colamen.id

Print Friendly, PDF & Email

Leave a Reply

Your email address will not be published.