I rent my server from a cloud provider; it is practically certain that after I finish using the server, it will be rented out to somebody else. For this reason I need to encrypt some sensitive data in 10+ of the VMs, so that people renting the server after me cannot access that data.
The VMs themselves are not encrypted and can boot normally. I only encrypt a QEMU disk attached to each VM, set the disk to automount via /etc/fstab and /etc/crypttab and configure the software to store the sensitive data only on that disk.
The problem is that every time I upgrade the VMs and they need to reboot, I must type the key by hand (The proxmox console does not support copy-paste). I know LUKS can use keyfiles, but I don't know how to provide a keyfile to the VMs in such a way that the keyfile is itself encrypted.
Which brings me to the question: How can I make a key or keyfile available to the VMs upon boot, in such a way that:
- I don't need to type it every time a VM reboots
- The key itself is not stored in the plain
(It is OK to type a key or password once when the whole server boots, as long as I don't have to type things when each VM reboots)
Thanks!
The VMs themselves are not encrypted and can boot normally. I only encrypt a QEMU disk attached to each VM, set the disk to automount via /etc/fstab and /etc/crypttab and configure the software to store the sensitive data only on that disk.
The problem is that every time I upgrade the VMs and they need to reboot, I must type the key by hand (The proxmox console does not support copy-paste). I know LUKS can use keyfiles, but I don't know how to provide a keyfile to the VMs in such a way that the keyfile is itself encrypted.
Which brings me to the question: How can I make a key or keyfile available to the VMs upon boot, in such a way that:
- I don't need to type it every time a VM reboots
- The key itself is not stored in the plain
(It is OK to type a key or password once when the whole server boots, as long as I don't have to type things when each VM reboots)
Thanks!
Last edited: