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". This is to be expected. However, I would like the VM to just ignore such error and proceed to boot when I do not have the drive plugged in. Is there a way to do this? I have tried setting ignore_msrs to true on the host, but the VM still failed to boot. Many thanks for any insight.
Last edited: