Installing VM Agent on a Single VM
To deploy a component to a virtual machine (VM), you need to install the agent. After the host is managed, the backend can communicate with the host.
For details about the VM agent status and description, see Table 1.
Agent Status |
Description |
---|---|
Agent missing. Install it first. |
The VM agent is not installed on the ECS node. You need to install the VM agent. |
a.b.c |
The VM agent has been installed and is running properly. a.b.c indicates the version of the VM agent. Example: 1.3.15. |
Agent offline |
The agent has been installed but is offline and cannot work properly. |
ECSs in the CCE cluster are managed in the environment with the cluster and do not need to be managed separately. |
The ECS node is a node in the CCE cluster. Therefore, you cannot install the VM agent on the ECS node. |
This section describes how to install the VM agent on a single VM.
Procedure
- Log in to ServiceStage, and choose Infrastructure > VMAgent Manager.
- Locate the VM where the agent is to be installed and click Install Agent.
- Select an authorization mode.
Authorize the agent to use your authentication information to obtain the deployment, upgrade, start, and stop tasks of an application and execute the task.
You can use AK/SK to perform authorization.
Select AKSK for Authorization Model and enter the AK and SK. For details about how to obtain the AK/SK, see How Do I Obtain an AK/SK Pair?.
- Select Add application access port automatically based on service requirements.
- Copy the command automatically generated in the lower part of the window, that is, the agent installation command.
Example command for the AKSK model:
export AGENT_INSTALL_URL=https://${Region_Name}-servicestage-vmapp.obs.${Region_Name}.${Domain_Name}/vmapp/agent/agent-install.sh;if [ -f `which curl` ];then curl -# -O -k ${AGENT_INSTALL_URL};else wget --no-check-certificate ${AGENT_INSTALL_URL};fi;bash agent-install.sh ${AK}${SK} ${Project_ID} ${Version} ${Region_Name} ${Flag}
- In the preceding command, AGENT_INSTALL_URL indicates the installation address of the Agent.
- ${AK}/${SK} indicates an access key.
- ${Region_Name} indicates a region name.
- ${Domain_Name} indicates the global domain name.
- ${Project_ID} indicates a project ID. For details about how to obtain a project ID, see How Do I Obtain a Project Name?.
- ${Version} is the version number. Use latest to automatically download the latest version.
- ${Flag} is a Boolean value, indicating whether to automatically add the application access port. true indicates yes and false indicates no.
- Log in to the VM and run the installation command.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot