Skip to content

Can't add host server to cloudstack management server - brand new installation. #11140

Closed

Description

@clemylton

problem

I did a fresh install and when I try to add the KVM virtualization hosts I get the following error message;
Unable to add the host: Cannot find the server resources at http://10.20.123.4

versions

CloudStack 4.20.1.0
OracleLinux R9 U6
Openjdk 17.0.15 2025-04-15 LTS
QEMU emulator version 9.1.0

The steps to reproduce the bug

1.I installed and updated the OS on the management server, I configured the bridges brcloud0 for management and brcloud1 for guest and public
2.I installed and updated the OS on the KVM Hosts servers, I configured the bridges brcloud0 for management and brcloud1 for guest and public
3.I tested connectivity between hosts via the management network using the FQDN
4. I accessed the management server through the GUI and created the zone, pod and cluster. Everything is OK, everything is enabled, no errors.
5. I click on the add host button, and fill in the information and try to add the host, that's when I get the error message
...

What to do about it?

I put all the logs in debug mode but I can't get a clue about the problem

----------------- LOGS FROM THE KVM HOST --------------------

[root@cshost02 ~]# tail -n 50 -f /var/log/cloudstack/agent/agent.log
2025-07-03 17:06:09,186 DEBUG [agent.properties.AgentPropertiesFileHandler] (main:[]) (logid:) Property [guid] has empty or null value. Using default value [null].
2025-07-03 17:06:09,187 DEBUG [agent.properties.AgentPropertiesFileHandler] (main:[]) (logid:) Property [developer] has empty or null value. Using default value [false].
2025-07-03 17:06:19,903 INFO [cloud.agent.AgentShell] (main:[]) (logid:) Agent started
2025-07-03 17:06:19,907 INFO [cloud.agent.AgentShell] (main:[]) (logid:) Implementation Version is 4.20.1.0
2025-07-03 17:06:19,909 INFO [cloud.agent.AgentShell] (main:[]) (logid:) agent.properties found at /etc/cloudstack/agent/agent.properties
2025-07-03 17:06:19,914 DEBUG [agent.properties.AgentPropertiesFileHandler] (main:[]) (logid:) Property [host] was altered. Now using the value [localhost].
2025-07-03 17:06:19,937 DEBUG [agent.properties.AgentPropertiesFileHandler] (main:[]) (logid:) Property [guid] has empty or null value. Using default value [null].
2025-07-03 17:06:19,937 DEBUG [agent.properties.AgentPropertiesFileHandler] (main:[]) (logid:) Property [developer] has empty or null value. Using default value [false].
2025-07-03 17:06:30,662 INFO [cloud.agent.AgentShell] (main:[]) (logid:) Agent started
2025-07-03 17:06:30,666 INFO [cloud.agent.AgentShell] (main:[]) (logid:) Implementation Version is 4.20.1.0
2025-07-03 17:06:30,667 INFO [cloud.agent.AgentShell] (main:[]) (logid:) agent.properties found at /etc/cloudstack/agent/agent.properties
2025-07-03 17:06:30,673 DEBUG [agent.properties.AgentPropertiesFileHandler] (main:[]) (logid:) Property [host] was altered. Now using the value [localhost].
2025-07-03 17:06:30,696 DEBUG [agent.properties.AgentPropertiesFileHandler] (main:[]) (logid:) Property [guid] has empty or null value. Using default value [null].
2025-07-03 17:06:30,696 DEBUG [agent.properties.AgentPropertiesFileHandler] (main:[]) (logid:) Property [developer] has empty or null value. Using default value [false].
2025-07-03 17:06:41,402 INFO [cloud.agent.AgentShell] (main:[]) (logid:) Agent started

Activity

  1. boring-cyborg commented on Jul 3, 2025

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template!

  2. clemylton commented on Jul 3, 2025

    @clemylton
    Author

    Some details I forgot;

    • I had to set SHA1 as default to be able to install the agent -> update-crypto-policies --set DEFAULT:SHA1
    • I had to create the file /etc/sysconfig/libvirtd to add the line LIBVIRTD_ARGS="--listen" couse i couldnt find it after OS installation
    • I'm using the Shapeblue repository

    any help is greatly appreciated

  3. weizhouapache commented on Jul 3, 2025

    @weizhouapache
    Member

    Some details I forgot;

    • I had to set SHA1 as default to be able to install the agent -> update-crypto-policies --set DEFAULT:SHA1
    • I had to create the file /etc/sysconfig/libvirtd to add the line LIBVIRTD_ARGS="--listen" couse i couldnt find it after OS installation
    • I'm using the Shapeblue repository

    any help is greatly appreciated

    @clemylton
    have you configured the kvm network label (brcloud0/brcloudbr1) for physical networks in the zone creation wizard?

  4. clemylton commented on Jul 3, 2025

    @clemylton
    Author

    Hi weizhouapache

    Yeah;

    Image
    Image
    Image
    Image

  5. rajujith commented on Jul 7, 2025

    @rajujith
    Contributor

    @clemylton can you check the value of 'host' in the global settings? It must be set to the management server IP if not updated by default.

  6. locked and limited conversation to collaborators on Jul 7, 2025
  7. converted this issue into a discussion #11155 on Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions