Applicable to:
- SolusVM 2
Question
How to change hostname for SolusVM 2 management node?
Answer
Warning: It is strongly recommended to schedule a maintenance time frame before changing a hostname.
First, it is recommended to create a backup of SolusVM 2 installation in current state:
- If SolusVM 2 running inside of virtual machine, create a snapshot using tools provided by virtualization automation solution you are using
- Or create a backup of SolusVM 2 on Management node using this article
Once the backup is created, proceed with the hostname change using the steps below:
- Connect to SolusVM 2 Management node via SSH
- Update
host
parameter in/usr/local/solus/config/config.yml
file - After that run the following command to update docker stack settings:
# /usr/local/solus/bin/installer -reconfigure
Note: During the execution of the command above it will try to renew Let's Encrypt certificate for the specified hostname, so it is better to have the new hostname resolvable globally prior to changing it.
- If you have SSL certificate for new domain name purchased from a certificate authority, you can update certificate files using this article
- On the next step, check
api_host
andhost
parameters in/etc/solus/agent.json
file on every CR nodes:
# grep host /etc/solus/agent.json
If there is an old hostname, change it to new one and restart solus-agent service to apply changes
# systemctl restart solus-agent
There is a probability that icons will not be displayed properly on SolusVM 2 > Virtual Servers page for the existing database. It is required to update os_image settings in SolusVM 2 database using this article
Comments
0 commentsPlease sign in to leave a comment.