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:
<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>
[[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]]
=CentOS 8.x 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:
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:




<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>
[[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:

  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