Passthrough LUKS disk via /dev/mapper/ ?

proxox

Member
Feb 15, 2020
2
0
21
25
Hi. One quick question.

Is it a safe practice to passthrough LUKS encrypted disk to VM by pointing to /dev/mapper/ mounted disk ?
I know VM can handle the whole encryption thing, but I have special needs :)

Thanks in advance

Screenshot_2021-12-20_18-32-08.png
 
Keep in mind that the guest still only is seeing a virtual disk with 512B/512B logical/physical sector size even if the real physical disk is using 512B/4K logical/physical sectors. What you see inside the guest is not always the same you see on the host.
 
Last edited: