Help Center/ Huawei Cloud Flexus_Huawei Cloud Flexus L Instance/ FAQs/ OS and Image/ What Do I Do If HSS Is Not Started After I Use a Private Image to Create a FlexusL Instance or Change the OS of an Instance?
Updated on 2024-09-27 GMT+08:00

What Do I Do If HSS Is Not Started After I Use a Private Image to Create a FlexusL Instance or Change the OS of an Instance?

Symptom

If Host Security Service (HSS) is included in your private image, but after you use the image to create a FlexusL instance or change the OS of an instance, the HSS status is Unprotected, the possible cause is that the HSS agent is not installed in your private image. Install and enable the agent to enable HSS.

Figure 1 HSS Unprotected status

Procedure

  1. Log in to the HSS console. Choose Asset Management > Servers & Quota in the left navigation pane. On the displayed page, click Agent Installation Guide in the upper right corner.

  2. Select the server OS as prompted. Click Copy to obtain the installation command.

    Select CLOUD server and x86 for Select Server Type.

  3. Log in to the FlexusL console.
  4. Remotely log in to the FlexusL instance on which the agent will be installed.
  5. Run the command obtained in 2 on the server.

    The following error message is displayed.

  6. Run the vi /ect/hosts command and add the following content to the host file:
    100.125.11.131 hss-agent.cn-east-3.myhuaweicloud.com
    100.125.158.120 hss-agent.cn-south-1.myhuaweicloud.com
    100.125.12.111 hss-agent.cn-north-4.myhuaweicloud.com
  7. Run the command obtained in 2 again. If the message "Hostguard installed" is displayed, the agent is installed successfully.

    If the following message is displayed, rectify the fault by referring to Troubleshooting: Modifying the NIC Configuration File.

  8. Return to the HSS console. Choose Asset Management > Servers & Quota in the left navigation pane. After the agent is online, click Enable Protection in the Operation column.

    It takes about 10 minutes for the agent status to change to Online.

  9. Set HSS to yearly/monthly billing and the basic edition, read and select the statement, and click OK.

    FlexusL instances support the HSS basic edition. Do not select other editions.

  10. Return to the FlexusL console and check that HSS is in the Protected status.