{"id":2000,"date":"2023-11-27T20:12:29","date_gmt":"2023-11-27T11:12:29","guid":{"rendered":"http:\/\/gotocloud.co.kr\/?p=2000"},"modified":"2023-11-27T20:35:08","modified_gmt":"2023-11-27T11:35:08","slug":"build-nicedcv-windows-ami-for-aws","status":"publish","type":"post","link":"https:\/\/gotocloud.co.kr\/?p=2000","title":{"rendered":"Build NiceDCV Windows AMI for AWS"},"content":{"rendered":"<h1>Objectives<\/h1>\n<p>This document explains the AWS AMI build procedure of the NiceDCV 2023 server on Windows server 2022 for the AWS x86_64 instances. In this AMI, the NiceDCV is configured and automatically started at the Windows instance launch time. At launch time, the user can create a DCV user with their own password. After the instance is started, the user can login the DCV session using the NiceDCV client.<\/p>\n<h1>Install NiceDCV server<\/h1>\n<ul>\n<li>Launch a Windows Server 2022 instance in AWS. The c6i.xlarge instance is recommended. After the instance is started, login the Windows instance using RDP.<\/li>\n<li>After login, download and install the <a href=\"https:\/\/d1uj6qtbmh3dt5.cloudfront.net\/Drivers\/nice-dcv-virtual-display-x64-Release-66.msi\">NiceDCV Virtual Display Driver<\/a>.<\/li>\n<li>Install <a href=\"https:\/\/d1uj6qtbmh3dt5.cloudfront.net\/2023.0\/Servers\/nice-dcv-server-x64-Release-2023.0-15487.msi\">NiceDCV Server 2023<\/a>. During installation, allow the DCV service in the firewall and configure the automatic start of the DCV service.<br \/>\n<a href=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2001\" src=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-300x233.png\" alt=\"image\" width=\"300\" height=\"233\" srcset=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-300x233.png 300w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image.png 336w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nCheck that the manual creation of the console session. The console session will be created manually by the <code>User-data<\/code> script at the instance launch time.<br \/>\n<a href=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2002\" src=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-1-300x233.png\" alt=\"image-1\" width=\"300\" height=\"233\" srcset=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-1-300x233.png 300w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-1.png 342w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>Check the DCV server is started automatically in the Windows Services of the Task manager.<br \/>\n<a href=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2003\" src=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-2-300x190.png\" alt=\"image-2\" width=\"300\" height=\"190\" srcset=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-2-300x190.png 300w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-2.png 531w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<\/ul>\n<h1><a href=\"https:\/\/docs.aws.amazon.com\/dcv\/latest\/adminguide\/manage-storage.html\">Enable the session-storage<\/a><\/h1>\n<p>Session-storage is a folder on the NICE DCV server that clients can access when they&#8217;re connected to a specific NICE DCV session. By the session-storage service in the DCV server, the file transfer between the client and the server during the DCV session is connected.<\/p>\n<ul>\n<li>Create a folder which will be used for the session storage-storage. For example, <code>C:Userssession-storage<\/code><\/li>\n<li>Open the Registry Editor and navigater to the <code>HKEY_USERS\/S-1-5-18\/Software\/GSettings\/com\/nicesoftware\/dcv\/session-management\/automatic-console-session<\/code> key and select the storage-root parameter.<\/li>\n<li>In the navigation pane, open the contect menu (right-click) <code>session-management\/automatic-console-session<\/code>. Then choose <code>New, String<\/code>. And set the <code>Name<\/code> as <code>storage-root<\/code><\/li>\n<li>Open the <code>session-root<\/code> parameter and set the value as the folder name which was crated in the above such as <code>C:Userssession-storage<\/code><\/li>\n<li>To start the session-storage, specify the <code>--storage-root<\/code> option at the session creation time.<\/li>\n<\/ul>\n<h1>Setup the snapshot using <code>EC2Launch V2<\/code><\/h1>\n<p>To create a AMI, install the latest updates and configure the <code>EC2 Launch V2<\/code> settings.<\/p>\n<ul>\n<li>Install the latest update in the Windows Server 2022.<\/li>\n<li>From the <code>Start menu<\/code>, run the <code>All Programs -&gt; EC2Launch settings<\/code> and configure parametes as following<\/li>\n<li><a href=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2004\" src=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-3-200x300.png\" alt=\"image-3\" width=\"200\" height=\"300\" srcset=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-3-200x300.png 200w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-3.png 500w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/a><\/li>\n<li>\n<ul>\n<li>Check the <code>Extend OS partion<\/code> to use all disk spaces of the instance<\/li>\n<li>In the <code>Set administrator account<\/code>, select the <code>Random password<\/code> for the Administrator. Using the ssh key, the random password can be decrypted after the instance is started<\/li>\n<li>Check the <code>Enable SSH<\/code> parameter to log in using the ssh command to the Windows Power Shell<\/li>\n<\/ul>\n<\/li>\n<li>After configure parameters, click <code>Shutdown with Sysprep<\/code>. Create an AMI using the stopped instance.<\/li>\n<\/ul>\n<h1>Launch an instance with <code>User-data<\/code><\/h1>\n<p>To log in to the DCV session after the Windows server is started, the DCV user should be configured in the <code>User-data<\/code> field at an instance launch time. The example of <code>User-data<\/code> is following<\/p>\n<p>&lt;persist&gt;true&lt;\/persist&gt;<br \/>\n&lt;script&gt;<br \/>\nnet user userid ComplexPassword \/add<br \/>\nnet localgroup administrators userid \/add<br \/>\n&#8220;C:\\Program Files\\NICEDCV\\Server\\bin\\dcv.exe&#8221; create-session 0 &#8211;owner &#8220;userid&#8221; &#8211;name &#8220;sessionname&#8221; &#8211;storage-root &#8220;C:\\Users\\session-storage&#8221;<br \/>\n&lt;\/script&gt;<\/p>\n<p><code> <\/code><a href=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2007\" src=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-6-300x140.png\" alt=\"image-6\" width=\"300\" height=\"140\" srcset=\"https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-6-300x140.png 300w, https:\/\/gotocloud.co.kr\/wp-content\/uploads\/2023\/11\/image-6.png 601w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>In the above script, <code>userid<\/code> with the <code>ComplexPassword<\/code> is created in the Windows server and the <code>sessionname<\/code> DCV session is automatically created. The user can login as the <code>userid<\/code> with <code>password<\/code> using the DCV client. The <code>password<\/code> should be satisfied for the Windows security policy.<br \/>\nAnd, in the security group setting, <code>8443\/tcp<\/code> should be allowed in the in-bound connection.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Objectives This document explains the AWS AMI build procedure of the NiceDCV 2023 server on Windows server 2022 for the AWS x86_64 instances. In this [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2008,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[384,321,382,381,383],"_links":{"self":[{"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2000"}],"collection":[{"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2000"}],"version-history":[{"count":6,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2000\/revisions"}],"predecessor-version":[{"id":2013,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2000\/revisions\/2013"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=\/wp\/v2\/media\/2008"}],"wp:attachment":[{"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gotocloud.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}