How to change hostname of management-server in VMware Integrated OpenStack
book
Article ID: 342091
calendar_today
Updated On:
Products
VMware
VMware Integrated OpenStack
Show More
Show Less
Issue/Introduction
This article provides steps to change the hostname of a management-server in VMware Integrated OpenStack.
Environment
VMware Integrated OpenStack 2.0.x VMware Integrated OpenStack 2.5.x VMware Integrated OpenStack 3.0.x
Resolution
To change the hostname of VIO
management-server :
Create a snapshot of VMware Integrated OpenStack vApp. Create a DNS A and PTR record for management-server IP address. Shutdown and power on VMware Integrated OpenStack vApp. Connect to the management-server through SSH. Stop oms services by running these commands:service oms stop service osvmw stop Take a back up of the /opt/vmware/vio/etc file by running this command:cp -r /opt/vmware/vio/etc /root/etc_backup Take a snapshot of the management-server. Remove files that block certificate regeneration by running this command:rm /opt/vmware/vio/etc/oms.lock /opt/vmware/vio/etc/guard.key Clean up the old certificate values by running this command:sed -i '/cms.*/d' /opt/vmware/vio/etc/vio_system.properties Run this command to generate new certificate:/opt/vmware/vio/sysctl/scripts/generate-certs.sh `cat /opt/vmware/vio/etc/keystore.properties | grep keystorePass | awk -F"=" '{print $2}' | tr -d "\n"` oms oms_server /opt/vmware/vio/etc Modify the /opt/vmware/vio/etc/omjs.properties file and set the oms.extension.registered to false to allow oms to register with vCenter Server with new certificate. Restore original guard.key and password:cp /root/etc_backup/guard.key /opt/vmware/vio/etc/ Open the /opt/vmware/vio/etc/vio_system.properties file and locate the entry starting with:"cms.guard_keystore_pswd" Replace it with same entry from /root/etc_backup/vio_system.properties file. Stop and restart VIO vApp. Log out from the vSphere Web Client. Clear the browser cache and log in to the vSphere Web Clinet. Go to the VMware Integrated Openstack plugin and reconnect the OMS. Verify the hostname and certificate and delete the snapshot.
Feedback
thumb_up
Yes
thumb_down
No