Hi. I have a luks-encrypted external hard drive plugged into my host machine. I use the host machine to open/decrypt and map the drive to /dev/mapper/my-luks on the host. Then I have that location assigned to a VM as a secondary data (non-boot) drive, which will mount it. Everything works great! Except sometimes I do not have the drives plugged into the host. In this scenario, the VM fails to boot. I get an error saying, "Could not open '/dev/mapper/my-luks': No such file or directory"...
Read more
Read more