[SOLVED] Storing ISOs/VZdump on encrypted zfs dataset?

Dunuin

Distinguished Member
Jun 30, 2020
14,793
4,630
258
Germany
Hi,

As far as I see it is only possible to store VM images and containers inside a zfs dataset if it is added as "zfspool" storage.
It looks like it is possible to create a "dir" storage pointing its path to the mountpoint of a dataset to be able to store VZdump and ISOs on my zfs dataset.
But how to do that with encrypted datasets?
If I try to unlock my encrypted root dataset I only get this...
Code:
root@BM-Hypervisor:~# zfs mount -l -a
Enter passphrase for 'VMpool/VLT':
Enter passphrase for 'VMpoolHDD/VLT':
cannot mount '/VMpoolHDD/VLT': directory is not empty
cannot mount '/VMpoolHDD/VLT/DUMP': directory is not empty
cannot mount '/VMpoolHDD/VLT/ISO': directory is not empty
because the directories aren't empty anymore. It looks like ProxmoxVE mounts these folders at boot despite the datasets aren't mounted yet because I need to unlock them first which I do via ssh Minutes later.

How to do it right?

Edit:
Looks like this could be a solution: Link
 
Last edited:
  • Like
Reactions: v1nc3nt and aaron

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!