I deployed VMA 5.0 and despite it asking me for Host name during deployment, it still shows as localhost. What's the proper way to change it's name?
Edit /etc/HOSTNAME, enter:
vi /etc/HOSTNAME
Delete old name and add new one:
server2.nixcraft.com
Save and close the file. Type the following command:
hostname server2.nixcraft.com
Cheers,
Denis
I figured this out. For anyone else who happens to see this. I just had to run the network config again.
sudo system-config-network-tui
vmproteau wrote:
I deployed VMA 5.0 and despite it asking me for Host name during deployment, it still shows as localhost. What's the proper way to change it's name?
what platfor you are using ?
Yours,
Satya
If it fails you can log in with root and edit the etc/HOSTNAME and etc/hosts files.
If root isn´t enabled..
sudo vi /etc/passwd
When prompted for a password I entered the vi-admin password.
Change the entry for
root:x:0:0:root:/root:/sbin/nologin
to look like
root:x:0:0:root:/root:/bin/bash
If you don´t know the pasword for root
sudo passwd root
And define a password for the root account.
Login as root and edit the files above and reboot the appliance.
Edit /etc/HOSTNAME, enter:
vi /etc/HOSTNAME
Delete old name and add new one:
server2.nixcraft.com
Save and close the file. Type the following command:
hostname server2.nixcraft.com
Cheers,
Denis
You can also change the hostname through the web interface. Login at https://<ip address of vma>/ and change it on the Network tab -> Address button.
When I changed it in the web management interface, it committed the change. You may need to logout and login again to the command line to see the change, though.
Here is the management address:
https://<vMA IP>:5480/
thanks
sudo vi /etc/HOSTNAME
worked for me
As I discovered in another thread all the above will work BUT you MUST create the DNS entry for the vma first. Otherwise it kepps on reverting to localhost.
