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:
- Remove cloudstack-agent package
- yum remove cloudstack-agent
- Remove files related to cloudstack agent
- rm -rf /etc/cloudstack/agent
- Install agent along with openssl-perl package
- dnf -y install cloudstack-agent openssl-perl
- Reboot the machine after package installation
- shutdown -r now
- After reboot you might find that libvirtd is stopped and cloudstack-agent is stopped
- systemctl status libvirtd #Stopped
- systemctl status cloudstack-agent #Stoped
- Without worring about services being stopped, add host to cloudstack
- Try below again and again, eventually the service will start properly
- systemctl start libvirtd
- After libvirtd starts, start cloustack-agent using:
- systemctl start cloudstack-agent
- 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.
- 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