-2

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?

Zoredache
  • 130,897
  • 41
  • 276
  • 420
techsjs2012
  • 545
  • 2
  • 6
  • 10
  • 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 07 '12 at 18:05

1 Answers1

2

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.
ewwhite
  • 197,159
  • 92
  • 443
  • 809