For each virtual machine that is remotely accessible using RDP, you can individually determine if and how client connections are authenticated. For this, use the
The null method means that there is no authentication at all. Any client can connect to the VRDP server and thus the virtual machine. This is very insecure and only to be recommended for private networks.
The external method provides external authentication through a special
authentication library.
The default authentication library,
On Linux and Oracle Solaris hosts,
On Windows hosts,
On macOS hosts,
In other words, the external method by default performs authentication with the user accounts that exist on the host system. Any user with valid authentication credentials is accepted. For example, the username does not have to correspond to the user running the VM.
An additional library called
Enable
VBoxManage setproperty vrdeauthlibrary "VBoxAuthSimple"
To enable the library for a particular VM, you must switch authentication to external, as follows:
VBoxManage modifyvmVM-name --vrde-auth-type external
Replace
You then need to configure users and passwords by writing items into the machine's extradata. Since
the XML machine settings file, into whose
VBoxManage setextradataVM-name "VBoxAuthSimple/users/user "hash
Replace
$ VBoxManage internalcommands passwordhash "secret" 2bb80d537b1da3e38bd30361aa855686bde0eacd7162fef6a25fe97bf527a25b
You then use
As a combined example, to set the password for the user
VBoxManage setextradata "My VM" "VBoxAuthSimple/users/john" 2bb80d537b1da3e38bd30361aa855686bde0eacd7162fef6a25fe97bf527a25b
The guest authentication method performs authentication with a special component that comes with the Guest Additions. As a result, authentication is not performed on the host, but with the guest user accounts.
This method is currently still in testing and not yet supported.
In addition to the methods described above, you can replace the default external authentication module with any
other module. For this,