Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2012
    Posts
    43
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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




  2. #2
    Join Date
    Feb 2012
    Location
    Europe
    Posts
    138
    Thanks
    4
    Thanked 6 Times in 5 Posts
    Rep Power
    2
    Where do you think is this name set? The problem here is quite easy. Set a entry in your /etc/hosts that point to your VM.

    so far
    akendo
    Feel free to follow my blog.

  3. #3
    Join Date
    Jan 2012
    Posts
    43
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by Akendo View Post
    Where do you think is this name set? The problem here is quite easy. Set a entry in your /etc/hosts that point to your VM.

    so far
    akendo
    Thank you Akendo. I fixed the problem by manipulating DNS (forward and reverse). It's the hard way to fix this type of problem, but lucky me I have rockstar co-workers.

  4. #4
    Join Date
    Feb 2012
    Location
    Europe
    Posts
    138
    Thanks
    4
    Thanked 6 Times in 5 Posts
    Rep Power
    2
    That would my next point ;-). Glad you could solve it by yourself.

    so far
    akendo
    Feel free to follow my blog.

  5. #5
    Join Date
    Jan 2012
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    You should need to edit /etc/hostname although I'm not sure if that would work for you. Sometimes you need to edit the sysconfig network settings I believe.

  6. #6
    Join Date
    Apr 2012
    Posts
    90
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    2
    You could try with this:Run this command to set the IP address:[root@server root]# esxcfg-vswif -i a.b.c.d -n w.x.y.z vswif0
    where a.b.c.d is the IP address and w.x.y.z is the subnet mask.
    Note: In this example, vswif0 is the Service Console adapter that is the interface to which you are applying the IP address change.
    Open the /etc/hosts file with a text editor and modify it so that it reflects the correct IP address and hostname.Note: You may also need to verify and change the file /etc/vmware/esx.conf file for the hostname and IP address.
    To change the default gateway address and the hostname, edit the /etc/sysconfig/network file and change the GATEWAY and HOSTNAME parameters to the proper values.
    For the changes to take place, restart the network service with the command:[root@server root]# service network restart

  7. #7
    Join Date
    May 2012
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    1
    Connect to your host using vSphere client, go to the configuration and then select "DNS and Routing" option.

    You would see your host name and domain under "Host Identification" section.

    Press "Properties" and change your host name.

    Related screen shot has been attached.

 

 

Similar Threads

  1. vSphere
    By Rory Glenn Pascua in forum General Linux
    Replies: 0
    Last Post: 02-27-2012, 11:14 AM
  2. vSphere Client Question
    By Rory Glenn Pascua in forum General Linux
    Replies: 3
    Last Post: 02-16-2012, 03:45 PM
  3. Replies: 0
    Last Post: 11-27-2011, 08:28 PM
  4. Gwibber : A microblogging client for Linux
    By Fred in forum Linux News
    Replies: 1
    Last Post: 11-15-2011, 12:31 AM
  5. Desura client may be open sourced
    By Fred in forum Linux News
    Replies: 0
    Last Post: 11-11-2011, 04:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,573
Threads: 3,920
Posts: 9,442
Top Poster: Fred (1,486)
Welcome to our newest member, Ronald de Souza

» Links



Powered by vBadvanced CMPS