Node-Virtualization / node-virtualbox

A JavaScript Library for Interacting with VirtualBox
MIT License
259 stars 68 forks source link

Update control APIs for VirtualBox 5.0 disk encryption #24

Closed michaelsanford closed 7 years ago

michaelsanford commented 9 years ago

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.

michaelsanford commented 7 years ago

Closing for lack of community interest; we can re-open it later if we like.