Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Should I change the hostnames?? Scientific Linux VirtualBoxes?.

I have a number of Scientific Linux VirtualBoxes all running on my computer.. Some of them are Scientific Linux some are CentOS... The issue is that I keep all of them running and I ssh into to do work... I don't use the GUI to much. the issue is the from the term it looks like:

[jjoes@localhost ~]$

in all my windows and sometimes I can't tell which VM I am working in.. Can someone please tell me the best way to work around this? should I change the hostnames?? if so are the services going to break?? whats the best and fasters why to do this so I can tell from the command line which VM I am in?

share|improve this question

closed as off topic by Zoredache, MadHatter, Michael Hampton, mdpc, Ward Dec 9 '12 at 4:17

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

If you want to change the name, then change the name. If the name change would break something simply change your PS1 prompt if you are using bash. Since they are VMs you could just make a snapshot, and test. We have no idea what will break since you have told us nothing about your systems. But there are lots of things that could break. – Zoredache Dec 7 '12 at 18:05
up vote 2 down vote accepted

Yes, you should change the host names if these are persistent virtual machines...

Here are the steps needed to change a hostname cleanly on a RHEL/CentOS/SL server.

  • Run hostname
  • Modify /etc/hosts according to these guidelines.
  • Modify /etc/sysconfig/network to made the change permanent and survive reboots.
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.