LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-08-2012, 09:59 AM   #1
Rory Glenn Pascua
Member
 
Registered: Jan 2012
Posts: 35

Rep: Reputation: Disabled
vSphere Client Hostname Issue


I can access some of my stacks via hostname and some via IP address like so:
1. ssh root@stack1.vm.org.net
2. ssh root@130.72.86.13

What config changes do I need to make so I can access all my stacks via Hostname? I get this error message when trying to access a stack using option 1 above. "Could not resolve hostname stack1.vm.org.net: Name or service not known"

Here's what I've done so far:

1. I looked at an old stack and compared network settings with a new stack
2. I checked firewall settings
 
Old 03-08-2012, 11:50 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The easiest way is to add each of the stacks to /etc/hosts on the system from which you're doing the ssh. More complicated would be to setup DNS or NIS to keep track of all the hosts in your domain then modify /etc/nsswitch.conf (to tell it to use DNS or NIS) and /etc/resolv.conf if you go the DNS route.

It depends on how many systems you have as to whether it makes sense to do DNS or NIS. In most commercial shops there are dozens or hundreds of systems so setting up DNS is what most folks do.
 
Old 03-08-2012, 12:35 PM   #3
Rory Glenn Pascua
Member
 
Registered: Jan 2012
Posts: 35

Original Poster
Rep: Reputation: Disabled
vSphere Client Hostname Issue

Quote:
Originally Posted by MensaWater View Post
The easiest way is to add each of the stacks to /etc/hosts on the system from which you're doing the ssh. More complicated would be to setup DNS or NIS to keep track of all the hosts in your domain then modify /etc/nsswitch.conf (to tell it to use DNS or NIS) and /etc/resolv.conf if you go the DNS route.

It depends on how many systems you have as to whether it makes sense to do DNS or NIS. In most commercial shops there are dozens or hundreds of systems so setting up DNS is what most folks do.
Thanks. I figured it out. I went the hard way on this one and modified the DNS. This issue has been resolved. Sadly I can't post my solution because it's way too long and complicated and would require more time to explain than the amount of time I spent solving the problem. I'd be more than happy to help anyone though.. do a walk through, gchat and so forth.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hostname issue - showing "localhost" instead of actual hostname. ryes31 Linux - Server 9 12-12-2012 08:19 PM
vSphere Client Question Rory Glenn Pascua Linux - Software 4 02-16-2012 03:50 PM
VMware vSphere client 4.1 on linux sampappachan_nyc Linux - Software 1 07-26-2011 06:02 PM
Issue during vSphere CLI installation smartgupta Linux - Virtualization and Cloud 5 11-09-2010 10:20 AM
ESX3.5i to vSphere Upgrade using Update Manager... issue ThunderCat Linux - Virtualization and Cloud 1 08-03-2010 04:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration