no snapshot with Win11 VM TPM 2.0 activated ?

nsc

Active Member
Jul 21, 2010
28
0
41
Hello,

I have installed a Windows 11 VM with TPM 2.0 active on the latest proxmox version :

root@XXXXXXXXXXXXXX:~# pveversion -v
proxmox-ve: 7.3-1 (running kernel: 5.15.85-1-pve)
pve-manager: 7.3-6 (running version: 7.3-6/723bb6ec)
pve-kernel-helper: 7.3-4
pve-kernel-5.15: 7.3-2
pve-kernel-5.15.85-1-pve: 5.15.85-1
pve-kernel-5.15.83-1-pve: 5.15.83-1
ceph-fuse: 14.2.21-1
corosync: 3.1.7-pve1
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve2
libproxmox-acme-perl: 1.4.3
libproxmox-backup-qemu0: 1.3.1-1
libpve-access-control: 7.3-1
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.3-2
libpve-guest-common-perl: 4.2-3
libpve-http-server-perl: 4.1-5
libpve-storage-perl: 7.3-2
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 5.0.2-1
lxcfs: 5.0.3-pve1
novnc-pve: 1.3.0-3
proxmox-backup-client: 2.3.3-1
proxmox-backup-file-restore: 2.3.3-1
proxmox-mail-forward: 0.1.1-1
proxmox-mini-journalreader: 1.3-1
proxmox-offline-mirror-helper: 0.5.1-1
proxmox-widget-toolkit: 3.5.5
pve-cluster: 7.3-2
pve-container: 4.4-2
pve-docs: 7.3-1
pve-edk2-firmware: 3.20220526-1
pve-firewall: 4.2-7
pve-firmware: 3.6-3
pve-ha-manager: 3.5.1
pve-i18n: 2.8-2
pve-qemu-kvm: 7.1.0-4
pve-xtermjs: 4.16.0-1
qemu-server: 7.3-3
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.8.0~bpo11+2
vncterm: 1.7-1
zfsutils-linux: 2.1.9-pve1

Everything is OK except that I can't do a snapshot : The current guest configuration does not support taking new snapshots

I did the same test with a Windows 2022, same result.

Can we create the .raw file TMP state in .qcow2 format?

I guess that's the reason for the problem.

Thanks

nsc
 
Last edited:
Hi Moayad,

Thanks for your help, it's working now.

What i did :

- backup my labs VM in vma.zst format with GUI
- download my backups locally
- reinstall proxmox (my lab is on dediacated ovh server)
- create a ZFS pool with RAID5
- create a ZFS dataset in the pool (get info from this topic : https://forum.proxmox.com/threads/can-we-use-zfs-storage-as-backup-storage.100631/ )
- configure backup dir in /etc/pve/storage.cfg (still from topic)
- upload my backups files into the directory
- restore backup with GUI
- start VM Windows 2011 / 2022 with TPM 2.0
- take a snapshot
- modify data into the VM
- rollback snapshot

very impressed by the simplicity, the only complex thing was how to create a backup directory in the ZFS pool...
 
Hi,

You can create a file into your ZFS storage (mkdir /rpool/backup) and add the directory file as a backup storage in your Proxmox VE by going to Datacenter -> Storage -> Add -> Directory, then you have to give the path of the backup folder you created earlier.
 
This is what i tried first but this doesn't work, directory was unavailable and inactive :

Code:
root@nsXXXXXXXXXXX:~# pvesm status
storage does not support content type 'iso'
storage does not support content type 'backup'
storage does not support content type 'snippets'
storage does not support content type 'vztmpl'
unable to activate storage 'backup-local' - directory is expected to be a mount                                                                                     point but is not mounted: '/zp-raid5/backup-local'
Name                Type     Status           Total            Used       Availa                                                                                    ble        %
backup-local         dir   inactive               0               0                                                                                                   0    0.00%
local                dir     active        20448848         3160872        16223                                                                                    888   15.46%
zp-raid5         zfspool     active      2562883584        22195484      2540688                                                                                    099    0.87%
 
Hi,

Thank you for the output of pvesm status!

Did you edit the storage.cfg file manually?

Can you please post the output of cat /etc/pve/storage.cfg command?
 
i just did this :

Code:
zfs create zp-raid5/backup

And update storage.cfg

Code:
root@nsXXXXXXXXXX:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content iso,snippets,vztmpl
        prune-backups keep-all=1

zfspool: zp-raid5
        pool zp-raid5
        content iso,backup,rootdir,images,snippets,vztmpl
        mountpoint /zp-raid5
        nodes nsXXXXXXXXXX

dir: backup-local
        path /zp-raid5/backup
        content backup
        is_mountpoint yes
        prune-backups keep-all=1
        shared 0

i tried to create with "mkdir /zp-raid5/backup" first but that didn't work.
 
Hello,

Can you edit the /etc/pve/storage.cfg file and get rid of the dir section and try to create the directory from the PVE Web UI or from pvesh tool as the following:

Bash:
pvesh create /storage --storage backup-local --path /ZFS/test --content backup --type  dir
 
i can't create a directory in web UI, alls the fieds are "red" :


firefox_SO9ts8ljsK.png
 
Hi,

You have to create the Directory on the datacenter level, i.e., you have to go to PVE Web UI -> Datacenter -> Storage then click on Add then Directory.
 

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!