VM Backups on NFS Storage

Chris Thompson

Active Member
Aug 23, 2018
13
3
43
54
Yokosuka, Japan
I have a ProxMox VE environment in which my primary storage is an NFS NAS. From this NAS, I backup the images folder containing my ProxMox KVM VM's. I'm not using the inbuilt Proxmox Backup feature.

I'm curious what the scenario looks like should I ever need to do a one-off restore of a VM and/or a full bare metal restoration using my current setup. Could it be as simple as copying the contents of the backed up images folder back to the NFS share?

Thanks in advance for any thoughts in this regard.

Best Regards,
Chris
 
Hi,

general VM images are a container which is used as a block device.
This means it is nearly the same as every Harddrive, but it is not physical it is virtual.

If you have to restore the VM disk, you can copy the image back, and it should run.
But the problem is if you make the backup (copy the file) at VM runtime the image will not be consistent, and you can't boot the VM.

So if you make Backups on image file level be sure the VM is turned off.
 
Hi,

general VM images are a container which is used as a block device.
This means it is nearly the same as every Harddrive, but it is not physical it is virtual.

If you have to restore the VM disk, you can copy the image back, and it should run.
But the problem is if you make the backup (copy the file) at VM runtime the image will not be consistent, and you can't boot the VM.

So if you make Backups on image file level be sure the VM is turned off.

The qemu guest agent should provide a higher consistency, right?
Would it still be necessary to shut down the VM?
 
The qemu guest agent should provide a higher consistency, right?
Yes, you can freeze the fs of the VM.
But you must freeze so long the backup process will run and in this time the VM is running but can't write what will make it normally unavailable.

Would it still be necessary to shut down the VM?
It depends on the VM, if it would be a read-only VM then it would be possible.
The most VM are not read-only because the logging is running.
So a common VM has to be turned off.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!