[SOLVED] VMs in storage "local" can snapshot, CTs cannot..

StuardBr

New Member
Dec 29, 2024
3
0
1
Hello everyone!

I have a PVE (not in cluster), installed in the "default" mode, with EXT4 and LVM and, at the end of the installation process, in the first access, I remove the "lvm-data" partition and resized the root volume using:

Code:
lvremove /dev/pve/data
lvresize -l +100%FREE /dev/pve/root
resize2fs /dev/mapper/pve-root

I have VMs and CTs, stored in the "local" storage, but only VMs can do snapshot backups. I have CTs with and without bind mounts and none of them can do snapshots. Someone can help me with this thing?

storage.cfg

Code:
dir: local
    path /var/lib/vz
    content vztmpl,rootdir,images,backup
    shared 0

nfs: BAD_PROXMOX
    export /export/BAD_PROXMOX
    path /mnt/pve/BAD_PROXMOX
    server 192.168.100.10
    content iso,backup
    prune-backups keep-all=1


One the CTs as example:

Code:
arch: amd64
cores: 1
features: keyctl=1,nesting=1
hostname: critical-docker
memory: 2048
mp0: /srv/containers,mp=/srv/containers
nameserver: 192.168.100.1
net0: name=eth0,bridge=vmbr0,gw=192.168.100.1,hwaddr=BC:24:11:48:A8:9B,ip=192.168.100.50/24,type=veth
onboot: 1
ostype: alpine
rootfs: local:1000/vm-1000-disk-0.raw,size=16G
swap: 512
tags: proxmox-helper-scripts
unprivileged: 1

One of the VMs for example:
Code:
agent: 1
boot: order=scsi0;net0
cores: 2
cpu: x86-64-v2-AES
hostpci0: 0000:05:00,pcie=1
machine: q35
memory: 4096
meta: creation-qemu=9.0.2,ctime=1724251164
name: OMV
net0: virtio=BC:24:11:77:8C:BC,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: l26
scsi0: local:100/vm-100-disk-0.qcow2,iothread=1,size=8G
scsihw: virtio-scsi-single
smbios1: uuid=a72a3933-f846-4402-ba11-9f3807516063
sockets: 1
vmgenid: cef48cee-e521-457c-9ee8-5b5d5b5756bb
 
Your situation is as expected. Directory type storage in Proxmox only supports snapshots for qcow2 file types. See here.
Hence your VMs with qcow2 disks are ok, while your CTs which have raw type are not supported for snapshots.
 
  • Like
Reactions: StuardBr
But you could do it for lxc's (and even vm's) on filesystem side (eg by cron script) outside of pve.
 
Your situation is as expected. Directory type storage in Proxmox only supports snapshots for qcow2 file types. See here.
Hence your VMs with qcow2 disks are ok, while your CTs which have raw type are not supported for snapshots.
Thank you very much for the information. I was confused about that just bacause what you said. Directory storage doesn't support snapshots, but VMs can do it. This is the answer!
 

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!