GitHub user akaydinb added a comment to the discussion: CloudStack KVM Host Reinstallation – Reusing Hostname and IP
Hi Shakib, I have tested a quite similar case in our test environment. We're running Apache Cloudstack v4.20.1.0 with KVM hosts on Ubuntu 24.04. I've put a host into maintenance and backed up `/etc/cloudstack/agent/agent.properties`, SSH keys of root (i.e. `/root/.ssh/id_rsa.pub.cloud` and `/root/.ssh/id_rsa.cloud`), as well as host keys pairs under `/etc/ssh`. Then I wiped the server completely, installed Ubuntu 26.04 from scratch with same IP, same hostname etc. and configured it for Cloudstack. I finally restored above mentioned files and restarted cloudstack-agent service. After these steps, the connection between the host and Cloudstack Manager was successful, the server appeared online and I was able to disable maintenance mode on the host, with a minor issue: Since I forgot to backup client certificates (`/etc/cloudstack/agent/cloud.key`, /etc/cloudstack/agent/cloud.crt`) and `listen_tls` setting in libvirtd.conf is default zero, the server appeared as "Unsecure". For this, I simply clic ked to "Provision host security keys", et voilà. Everything was back online like before. I strongly believe, that backing up ssh keys shouldn't be actually necessary, yet `agent.properties` is definitely necessary. And the certificates are up to you. GitHub link: https://github.com/apache/cloudstack/discussions/13846#discussioncomment-17990730 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
