Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 02-24-2016 11:55 AM
Hi all,
I've 4 VMs on a vps with internet access through a rebond but not visible from the internet. My problem is that i couldn't set the FQDN for each VM. I added this line to /etc/hosts for every VM: "10.10.10.x VMx.local VMx" where x is the number of the VM
Any one have an idea about how to set the FQDN ? and if not is it possible to use IP instead of FQDN ?
i've this config:
Public repond: IP : 151.xx.xx.xx
from the rebond with ssh:
VM | eth0 | | eth1 | VM1 : 192.168.1.10 10.10.10.1 VM2 : 192.168.1.11 10.10.10.2 VM3 : 192.168.1.12 10.10.10.3 VM4 : 192.168.1.13 10.10.10.4
Thanks.
Created 02-24-2016 12:02 PM
Your best shot is to manage the setup through /etc/hosts
Have entries in /etc/hosts in each clutser node and also, have the same setup in /etc/hosts of your local machine.
Created 02-24-2016 12:02 PM
Your best shot is to manage the setup through /etc/hosts
Have entries in /etc/hosts in each clutser node and also, have the same setup in /etc/hosts of your local machine.
Created 02-24-2016 12:03 PM
Created 02-24-2016 12:06 PM
Created 02-24-2016 12:24 PM
I added this lines to /etc/hosts in every VM 10.10.10.1 VM1.local VM1 10.10.10.2 VM2.local VM2 10.10.10.3 VM3.local VM3 10.10.10.4 VM4.local VM4 Now i'm able to use "ping VMx" from every VM and ssh user@VMx works too.
hostname -f returns VMx.local
is this fine ?
Created 02-27-2016 01:48 AM
@Zaher Mahdhi Yes, that works
Created 02-29-2016 08:26 AM
Thanks all, I used this method to setup the hostname and it worked ! My cluster is running now 🙂
Created 02-29-2016 09:49 AM
@Zaher Mahdhi Please accept the answer to close the thread 🙂
Created 02-24-2016 12:03 PM
You need to set hostbame in /etc/sysconfig/network i dont remember exact path but check with your OS documentation. Then run
hostname hostname -f
Created 02-24-2016 01:38 PM