Update control APIs for VirtualBox 5.0 disk encryption
michaelsanford opened this issue · 1 comments
VirtualBox 5.0 now supports encrypted virtual disk images, which non-trivially complicates launch of headless VMs:
9.31.3. Starting a VM with encrypted images
When a VM is started using the GUI, a dialog will open where the user needs to enter all passwords for all encrypted images attached to the VM. If another frontend like VBoxHeadless is used, the VM will be paused as soon as the guest tries to access an encrypted disk. The user needs to provide the passwords through VBoxManage using the following command:
VBoxManage controlvm "uuid|vmname" addencpassword "id" "password" [--removeonsuspend "yes|no"]
To be implemented properly, this feature should be event-driven (or at least poll on a timer), waiting for the machine to pause and ask for a password and then providing one.
The matter of what to do about handling the machine's password is open, see #25.
Closing for lack of community interest; we can re-open it later if we like.