GitHub user harikrishna-patnala added a comment to the discussion: How to 
install custum hostallocator module

@hacked473 If you've developed your custom host allocator as an adapter similar 
to 
[FirstFitAllocator](https://github.com/shapeblue/cloudstack/blob/d5ba23c8482b31bf79a6930dc7a02f27c691aacb/server/src/main/java/com/cloud/agent/manager/allocator/impl/FirstFitAllocator.java#L76),
 you're on the right track. You can refer to that class and how it's registered 
and used in the CloudStack codebase.

If you are having a development environment, you will need to follow below 
steps,
1. Build the project and get 
client/target/cloud-client-ui-4.19.3.0-SNAPSHOT.jar this ready with your changes
2. Copy it in your management server under location 
/usr/share/cloudstack-management/lib with the name cloudstack-4.19.3.0.jar 
(Correct the names as per the version you are using and developing)
3. In the management server UI, set the global setting "host.allocators.order" 
with your custom host allocator name.
4. Restart the management server.

GitHub link: 
https://github.com/apache/cloudstack/discussions/10889#discussioncomment-13560343

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org

Reply via email to