Encrypting Disk Images
Encrypting disk images can be done either using or
the VBoxManage. While is easier to
use, it works on a per VM basis and encrypts all disk images
attached to the specific VM. With VBoxManage
one can encrypt individual images, including all differencing
images. To encrypt an unencrypted medium with
VBoxManage, use:
VBoxManage encryptmedium uuid|filename \
--newpassword filename|- --cipher cipher-ID --newpasswordid "ID
To supply the encryption password point
VBoxManage to the file where the password is
stored or specify - to let VBoxManage ask you
for the password on the command line.
The cipher parameter specifies the cipher to use for encryption
and can be either AES-XTS128-PLAIN64 or
AES-XTS256-PLAIN64. The specified password
identifier can be freely chosen by the user and is used for
correct identification when supplying multiple passwords during
VM startup.
If the user uses the same password when encrypting multiple
images and also the same password identifier, the user needs to
supply the password only once during VM startup.