I am creating a VirtualBox VM that runs Ubuntu and I would like to have the virtual disk encrypted. Are there performance and/or security advantages to using the VirtualBox Disk Encryption over Ubuntu's LUKS disk encryption within the VM?


As I understand it, the good point of the VB encryption is that you can easily change your mind, encrypt a VM that isn't or decrypt a VM which is, and use the result with VB. Making a decrypted image from a LUKS-encrypted one and vice-versa is likely possible but would be more complicated.

Also, with the VB encryption you can store the encryption passphrase in the VB config outside of the VM, so you can boot the VM without having to enter a decryption passphrase. Of course you have to keep the VB config safe to avoid disclosure of the passphrase.

  • Thanks for the information! – NoamChompsky Jun 21 at 0:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.