Can you save a snapshot to a NFS volume?

GP123

Member
Dec 20, 2021
13
1
8
34
I have a NFS mount (10.50.1.220:/volume2/Netbackup1/Cluster_1_Backup/proxmox-24) pointed at /mnt/pve/volume2Snapshots which I would like to save VM snapshots to.
I noticed in the WebGUI, when taking snapshots there is no option to select the storage device and the snapshots are saved to whatever storage device the original VM disk is stored on. The qm snapshot manpage also does not seem to have support for this. Is there any way to accomplish this?

qm snapshot <vmid> <snapname> [OPTIONS]
Snapshot a VM.
<vmid>: <integer> (1 - N)
The (unique) ID of the VM.
<snapname>: <string>
The name of the snapshot.
--description <string>
A textual description or comment.
--vmstate <boolean>
Save the vmstate
 
Last edited:
Proxmox will make use of the snapshot functionalities of the underlaying storages. As far as I know all those storages require that snapshots are stored on the same storage which you want to snapahot.
 
Hi,
for the file containing the RAM+VM state, you can change the target. There is a VM configuration option vmstatestorage (also in the VM's Options tab in the UI).
 
  • Like
Reactions: GP123
Hi,
for the file containing the RAM+VM state, you can change the target. There is a VM configuration option vmstatestorage (also in the VM's Options tab in the UI).
Any chance of vmstatestorage being supported in LXC containers?
 
Hi,
Any chance of vmstatestorage being supported in LXC containers?
well, once containers can be hibernated/support snapshots with state, there's going to be such a setting. There are plans to re-evaluate CRIU for containers in Proxmox VE, but nothing concrete yet.
 
Hi,
for the file containing the RAM+VM state, you can change the target. There is a VM configuration option vmstatestorage (also in the VM's Options tab in the UI).
What would happen if the connection to the the NFS server was lost?
 
What would happen if the connection to the the NFS server was lost?
While saving the snapshot: the operation would fail with an IO error or if you're unlucky, the VM would get stuck.
After/before saving the snapshot: nothing if the VM doesn't otherwise access the NFS.
 

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!