CentOS 8.x Cloudstack 4.15 Re-add existing cloudstack KVM host to cloudstack manager

From Notes_Wiki

Home > CentOS > CentOS 8.x > Virtualization > Cloudstack 4.15 > Re-add existing cloudstack KVM host to cloudstack manager

Sometimes a host is removed from cloudstack either for testing / maintenance or we might have formatted cloudstack manager (Dropped database / setup database again, etc.). In either case it is possible to re-add an cloudstack host to manager, even if it was added to another manager with same or different IP using:

  1. Remove cloudstack-agent package
    yum remove cloudstack-agent
  2. Remove files related to cloudstack agent
    rm -rf /etc/cloudstack/agent
  3. Install agent along with openssl-perl package
    dnf -y install cloudstack-agent openssl-perl
  4. Reboot the machine after package installation
    shutdown -r now
  5. After reboot you might find that libvirtd is stopped and cloudstack-agent is stopped
    systemctl status libvirtd #Stopped
    systemctl status cloudstack-agent #Stoped
  6. Without worring about services being stopped, add host to cloudstack
  7. Try below again and again, eventually the service will start properly
    systemctl start libvirtd
  8. After libvirtd starts, start cloustack-agent using:
    systemctl start cloudstack-agent
  9. Later edit '/etc/cloudstack/agent/agent.properties' appropriately. Specifically look at:
    host=<ip>@static
    guest.network.device=<bridge>
    public.network.device=<brdge>
    and ensure those values are as pre requirement / expecation.
  10. If any agent.properties are modified restart agent using:
    systemctl restart cloudstack-agent



Home > CentOS > CentOS 8.x > Virtualization > Cloudstack 4.15 > Re-add existing cloudstack KVM host to cloudstack manager