bragonznx commented on issue #5051:
URL: https://github.com/apache/cloudstack/issues/5051#issuecomment-882410533


   Hello Tampler
   The manual isn't complete to my view
   To be able to install the agent, their is a couple of tricks and tips to do 
....
   
   0. Make sure the management network CIDR is configured properly on the 
cloudstack manager:
   
   Head to configuration → global settings and search for 
management.network.cidr
   
   management.network.cidr The cidr of management server network Advanced 
X.X.X.X
   
   Edit the X.X.X.X value here
   
   1. Make sure your primary and secondary storage is available; this can cause 
the agent to loop while waiting for storage and can block discovery
   
   2. Clean up the host from the Cloudstack dashboard:
   
   - Head to infrastructure → hosts - Edit host → enable maintenance (warning 
this causes migration) - Edit host → delete host
   
   3. Head on the host you wish to re-attach
   
   systemctl stop cloudstack-agent
   cd /etc/cloudstack/agent
   mkdir old
   mv cloud.* old/
   cp agent.properties old/
   echo > agent.properties
   systemctl start cloudstack-agent
   4. Add the host using the Web UI or the Cloudmonkey CLI
   
   add host username=[USER] password=[PASSWORD] hosttags=[TAGS] url=http://[IP] 
hypervis
   or=kvm zoneid=[ZONE_ID] clusterid=[CLUSTER_ID] podid=[POD_ID]


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to