Enabling session storage
Session storage is a folder on the Amazon DCV server that clients can access when they're connected to a specific Amazon DCV session. When you enable session storage for a session, clients can download files from, and upload files to, the specified folder. This feature enables clients to share files while connected to a session.
Enabling session storage on a Windows Amazon DCV Server
To enable session storage, first create the folder to use for session storage. Then, configure the storage-root parameter using
the Windows Registry Editor.
To enable session storage on Windows
-
Create the folder to use for session storage (for example,
c:\session-storage). -
Configure the
storage-rootparameter.-
Open the Windows Registry Editor.
-
Navigate to the HKEY_USERS\S-1-5-18\Software\GSettings\com\nicesoftware\dcv\session-management\automatic-console-session key and select the storage-root parameter.
If there's no
storage-rootparameter in the registry key, create one as follows:-
In the navigation pane, open the context (right-click) menu for the session-management/automatic-console-session key. Then, choose New, String.
-
For Name, enter
storage-rootand press Enter.
-
-
Open the storage-root parameter. For Value data, enter the full path to the folder that's created in step 1.
You can also use
%home%in the path to specify the home directory of the user who's currently signed in. For example, the following path usesc:\Users\as the session storage directory.username\storage\%home%/storage/Note
If the specified subdirectory doesn't exist, then session storage is disabled.
-
Choose OK and close the Windows Registry Editor.
-
-
Start the session and specify the
--storage-rootoption. For more information, see Starting Amazon DCV sessions.
Enabling session storage on a Linux Amazon DCV Server
To enable session storage, create the folder to use for session storage and then configure the storage-root parameter in the
dcv.conf file.
To enable session storage on Linux
-
Create the folder to use for session storage (for example,
/opt/session-storage/). -
Configure the
storage-rootparameter.-
Navigate to
/etc/dcv/and open thedcv.confwith your preferred text editor. -
Locate the
storage-rootparameter in the[session-management/automatic-console-session]section. Replace the existing path with the full path to the folder that you created in step 1.If there's no
storage-rootparameter in the[session-management/automatic-console-session]section, add it manually using the following format.[session-management/automatic-console-session] storage-root="/opt/session-storage/"You can also use
%home%in the path to specify the home directory of the user who's currently signed in. For example, the following parameter uses the$HOME/storage/directory for session storage.[session-management/automatic-console-session] storage-root="%home%/storage/"Note
If the specified subdirectory doesn't exist, then session storage is disabled.
-
-
Save and close the file.
-
Start the session and specify the
--storage-rootoption. For more information, see Starting Amazon DCV sessions.