-
Notifications
You must be signed in to change notification settings - Fork 312
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 clustername
command with the--show-url
flag and copy theauthToken
value and thesession-id
from 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.dcv
file 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-ID
dcvviewer 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 clustername
command. - Navigate to
/etc/dcv/
and open thedcv.conf
with your preferred text editor. - Locate the
authentication
parameter in the[security]
section, replace the existing value with eithersystem
ornone
, according to the official documentation and comment theauth-token-verifier
one:[security] authentication=method ... #auth-token-verifier="https://localhost:8444"
- Save and close the file.
- Restart the
dcvserver
service. 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 clustername
command. - Start a new session:
dcv create-session new-session-id
- Open the native client and specify
head-node-public-ip:8443
in the connection dialog.