Allow for adding user/pass via vrde external (VBoxAuthSimple )
A web-based front-end to VirtualBox written in PHP
Brought to you by:
imoore76,
neustradamus
For the reference:
Chapter 7. Remote virtual machines. 7.1.5. RDP authentication
https://www.virtualbox.org/manual/ch07.html#vbox-auth
Enable VBoxAuthSimple with the following command:
$ VBoxManage setproperty vrdeauthlibrary "VBoxAuthSimple"
To enable the library for a particular VM, you must then switch authentication to external:
$ VBoxManage modifyvm "<vm>" --vrdeauthtype external
Obtain the hash value for your desired password:
$ VBoxManage internalcommands passwordhash "<password>"
Configure users and passwords (hashes) by writing items into the machine's extradata:
$ VBoxManage setextradata "<vm>" "VBoxAuthSimple/users/<user>" <hash>
Replace
<vm>
with the VM name or UUID,<user>
with the user name who should be allowed to log in,<password>
with your desired password and<hash>
with the encrypted password.