Down another rabbit hole I go. This time, on ZFS on-disk encryption. I was surprised this is not enabled by default, but I'm a noob, so bare with me.
You can run the follow to set encryption to on:
zfs create \
-o encryption=on \
-o keyformat=passphrase \
-o keylocation=prompt \
tank/backups-encrypted
I'm assuming there is an overhead cost associated with this, which is likely the reason it's not enabled by default?
----
I created a Windows template and when running `sysprep.exe`, it gave me pushback related to `BitLocker` and a `Microsoft.WidgetsPlatformRuntime`. No problem, I disabled BitLocker and decrypted the drive. I then removed the widget for all users. Once the decryption completed, I was able to run sysprep.exe and create the template. When creating a new VM based on that template, I now have all of the default apps I installed and settings which is great. I can create a new VM/user quickly.
Once the new VM is deployed and user is created, I need to re-enable BitLocker and encrypt the drive. This isn't so time consuming I can't do it. In fact, just running with qm agent makes it so I don't even have to run in PowerShell within the VM. One extra step that can be easily scripted. At some point, maybe I'll also use unattend.xml to quickly populate the VM user, etc.
----
But, this got me thinking. If ZFS can be encrypted at rest, why encrypt with BitLocker at all? These VMs live on Proxmox and ZFS, so as long as ZFS is encrypted, I shouldn't actually need to re-enable BitLocker, right? No extra step that takes extra time rebooting. Hell, if they're lightly used and not a heavy-write user, I could even get one of these stood up in a matter of seconds, using a linked clone. Fully loaded. I understand that there can be problems related to links breaking, etc. Depending on the use case, it's better just to go with the full clone.
So, the questions are:
1. Why is ZFS encryption not on by default?
2. If you enable ZFS encryption, do you agree that you don't actually need BitLocker re-enabled?
3. Do you encrypt your ZFS pools/datasets? Why or why not?
4. Do you tend to just use a linked clone VM, or go with a full clone?
---
Thanks in advance. I'm liking this community already
You can run the follow to set encryption to on:
zfs create \
-o encryption=on \
-o keyformat=passphrase \
-o keylocation=prompt \
tank/backups-encrypted
I'm assuming there is an overhead cost associated with this, which is likely the reason it's not enabled by default?
----
I created a Windows template and when running `sysprep.exe`, it gave me pushback related to `BitLocker` and a `Microsoft.WidgetsPlatformRuntime`. No problem, I disabled BitLocker and decrypted the drive. I then removed the widget for all users. Once the decryption completed, I was able to run sysprep.exe and create the template. When creating a new VM based on that template, I now have all of the default apps I installed and settings which is great. I can create a new VM/user quickly.
Once the new VM is deployed and user is created, I need to re-enable BitLocker and encrypt the drive. This isn't so time consuming I can't do it. In fact, just running with qm agent makes it so I don't even have to run in PowerShell within the VM. One extra step that can be easily scripted. At some point, maybe I'll also use unattend.xml to quickly populate the VM user, etc.
----
But, this got me thinking. If ZFS can be encrypted at rest, why encrypt with BitLocker at all? These VMs live on Proxmox and ZFS, so as long as ZFS is encrypted, I shouldn't actually need to re-enable BitLocker, right? No extra step that takes extra time rebooting. Hell, if they're lightly used and not a heavy-write user, I could even get one of these stood up in a matter of seconds, using a linked clone. Fully loaded. I understand that there can be problems related to links breaking, etc. Depending on the use case, it's better just to go with the full clone.
So, the questions are:
1. Why is ZFS encryption not on by default?
2. If you enable ZFS encryption, do you agree that you don't actually need BitLocker re-enabled?
3. Do you encrypt your ZFS pools/datasets? Why or why not?
4. Do you tend to just use a linked clone VM, or go with a full clone?
---
Thanks in advance. I'm liking this community already

Last edited: