Help Center > > FAQs> After Migration> How Do I Activate the Target ECS Running a Windows OS After the Migration?

How Do I Activate the Target ECS Running a Windows OS After the Migration?

Updated at: May 21, 2020 GMT+08:00

Symptom

After a source server of a Windows OS is migrated to an ECS on HUAWEI CLOUD through SMS, you need to reactivate the license of the target ECS using the license server of HUAWEI CLOUD.

Prerequisites

The IP address of the HUAWEI CLOUD DNS server has been configured.

Procedure

  1. On the target ECS, choose Start and enter cmd.
  2. Run the following command to check whether the IP address of the KMS server is correct:

    slmgr -dli

    • If the obtained IP address is the same as that shown in the red box of Figure 1, the IP address of the KMS server is correct.
    • If the obtained IP address is different from that shown in the red box of Figure 1, the IP address of the KMS server is incorrect. In this case, run the following command to register the ECS with the KMS server:

      slmgr –skms 100.125.1.2

      Figure 1 IP address of the KMS server
    • If the check result shown in Figure 2 is displayed, the KMS server address has not been set for the target ECS. Run the following command to register the ECS with the KMS server:

      slmgr –skms 100.125.1.2

      Figure 2 KMS server address not configured
  3. Run the following command to check whether the ECS has been activated:

    slmgr -ato

    If error 0xC004F074 occurs, the ECS cannot be activated. In this event, go to 4.

  4. Identify the cause of the ECS activation failure.
    1. Check whether the private IP address of the ECS is correct.
      1. Run the following command to obtain the private IP address:

        ipconfig

      2. Check whether this IP address is within the denied IP address range configured on the management console.
      3. Run the following command to release the private IP address:

        ipconfig /release

      4. Run the following command to assign an IP address to the ECS again:

        ipconfig /renew

      5. Run the following command to check whether the ECS has been activated:

        slmgr -ato

    2. Check whether the ECS time is the same as the standard time. If the time is significantly different, the ECS cannot be activated.
    3. Run the following command on the ECS to check whether the link between the ECS and the activated server port is reachable:

      telnet 100.125.1.2 1688

      On the ECS, test the link to the activated server port. If the link failed, perform the following operations:

      • Verify that the internal ECS firewall and security software such as SafeDog are disabled, or that the data on TCP port 1688 can bypass the internal ECS firewall.
      • Verify that the data on port 1688 can bypass the security group rule in the outbound direction.

        The Windows client must periodically communicate with the KMS server. Therefore, ensure that the data on port 1688 can bypass the security group in the outbound direction. If the network communication is interrupted, the Windows client automatically enters the inactive state.

    4. Run the following command to check whether the ECS has been activated:

      slmgr -ato

      The system displays a message indicating that the ECS has been activated.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel