Configure Windows Server Activation
Amazon EVS provides Windows Server activation for VMs that have Windows Server entitlements. You must create an EVS Windows Server activation VPC endpoint within the VPC you used for your Amazon EVS environment. Each entitled VM must then be configured to connect to this activation endpoint. VPC endpoints can only be created if you have an active Amazon EVS environment.
-
Identify the VPC where the Amazon EVS environment is deployed.
-
In the same VPC, create a VPC Endpoint using the following service name:
com.amazonaws.region.evs-windows-server-activationFor example, create a VPC Endpoint with the following configuration:
-
Type: AWS services
-
Service name: search for and select
com.amazonaws.region.evs-windows-server-activation -
VPC: Select the VPC your Amazon EVS environment resides in
-
Subnets: Select the subnet(s) from which your Windows VMs establish outbound connections
-
Security groups: Select or create one that allows inbound TCP port
1688from your Windows instance’s security group or CIDR
-
-
Note down the private DNS name of the VPC Endpoint you created.
-
Connect to the Windows Server VM and open PowerShell.
-
Configure the activation server to use the VPC Endpoint by running the following command:
cscript C:\Windows\System32\slmgr.vbs /skmsVPC_Endpoint_Private_DNS_Name:1688The output confirms that the activation server was set successfully.
-
Activate Windows Server by running the following command:
cscript C:\Windows\System32\slmgr.vbs /atoThe output should include
Product activated successfully. -
Verify that activation completed successfully by running the following command:
cscript C:\Windows\System32\slmgr.vbs /dliThe output should include:
-
Volume activation expiration: 259200 minute(s) (180 day(s))— or close to it -
Registered KMS machine name:VPC_Endpoint_Private_DNS_Name:1688
-
Troubleshooting
Activation fails because the VM does not have a GVLK
The EVS activation endpoint requires VMs to have a Generic Volume License Key (GVLK) installed to use KMS-based activation. To check whether a GVLK is installed, run the following command:
cscript C:\Windows\System32\slmgr.vbs /dlv | findstr /C:"Product Key Channel"
If the output does not show Volume:GVLK, find the corresponding product key (GVLK) for your version and edition of Windows from KMS client activation keys
cscript C:\Windows\System32\slmgr.vbs /ipkGVLK
After installing the GVLK, retry the activation steps starting from the /ato command in step 6.
Activation command returns an error
If cscript C:\Windows\System32\slmgr.vbs /ato returns an error, verify that the VM can reach the VPC Endpoint on port 1688:
Test-NetConnection -ComputerNameVPC_Endpoint_Private_DNS_Name-Port 1688
The output should show TcpTestSucceeded : True. For example:
ComputerName : <VPC_Endpoint_Private_DNS_Name> RemoteAddress : <VPC_Endpoint_IP_address> RemotePort : 1688 InterfaceAlias : Ethernet 2 SourceAddress : 10.0.110.93 TcpTestSucceeded : True
If TcpTestSucceeded is False, verify that the VPC Endpoint security group allows inbound TCP port 1688 from the VM’s security group or CIDR.