-
Notifications
You must be signed in to change notification settings - Fork 315
NICE DCV integration
Enrico Usai edited this page Apr 7, 2021
·
8 revisions
NICE DCV is integrated within ParallelCluster to work only with a Web Browser client. To use a native client there are some alternatives listed below.
- 1.Execute the
pcluster dcv connect clusternamecommand with the--show-urlflag and copy theauthTokenvalue and thesession-idfrom the output:$ pcluster dcv connect clustername --key-path key.pem --show-url https://head-node-public-ip:8443?authToken=TOKEN-ID#session-id - 2a. (Windows client only)
Open a Command Prompt and execute the following command, within 30 seconds:
dcvviewer https://head-node-public-ip:8443#session-id --auth-token=TOKEN-ID - 2b. (Mac and Linux client)
Create a
connection.dcvfile with the following content:Open a shell and execute the following command, within 30 seconds:[version] format=1.0 [connect] host=head-node-public-ip port=8443 sessionid=session-id authtoken=TOKEN-IDdcvviewer connection.dcv
It is possible to skip ParallelCluster integration and use NICE DCV with a custom authentication.
To change the NICE DCV server's authentication method, you must configure the authentication parameter in the dcv.conf file and comment the auth-token-verifier one.
- Connect to the head node instance with the
pcluster ssh clusternamecommand. - Navigate to
/etc/dcv/and open thedcv.confwith your preferred text editor. - Locate the
authenticationparameter in the[security]section, replace the existing value with eithersystemornone, according to the official documentation and comment theauth-token-verifierone:[security] authentication=method ... #auth-token-verifier="https://localhost:8444" - Save and close the file.
- Restart the
dcvserverservice. NOTE: all the running sessions will be automatically closed.
From this moment it's possible to use NICE DCV without the involvement of ParallelCluster.
- Connect to the head node instance with the
pcluster ssh clusternamecommand. - Start a new session:
dcv create-session new-session-id - Open the native client and specify
head-node-public-ip:8443in the connection dialog.