Allow for adding user/pass via vrde external (VBoxAuthSimple )
A web-based front-end to VirtualBox written in PHP
Brought to you by:
imoore76
External VRDP authentication allows for entering a username and password(stored hashed in vm extradata) via VBoxAuthSimple for a VM (VBox user manual CH7 - 7.1.5. RDP authentication). It would be handy to be able to configure this and enter a user/pass via the Web UI to secure a vrde head of a VM if so desired.
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.