Difference between revisions of "CentOS 8.x Cloudstack 4.15 Re-add existing cloudstack KVM host to cloudstack manager"
From Notes_Wiki
(Created page with "<yambe:breadcrumb self="Cloudstack 4.15 Re-add existing cloudstack KVM host to cloudstack manager">CentOS 8.x Cloudstack 4.15|Cloudstack 4.15</yambe:breadcrumb> =CentOS 8.x Cl...") |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x virtualization|Virtualization]] > [[CentOS 8.x Cloudstack 4.15|Cloudstack 4.15]] > [[CentOS 8.x Cloudstack 4.15 Re-add existing cloudstack KVM host to cloudstack manager|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: | 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: | ||
Line 49: | Line 48: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x virtualization|Virtualization]] > [[CentOS 8.x Cloudstack 4.15|Cloudstack 4.15]] > [[CentOS 8.x Cloudstack 4.15 Re-add existing cloudstack KVM host to cloudstack manager|Re-add existing cloudstack KVM host to cloudstack manager]] |
Latest revision as of 03:02, 23 April 2022
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