OpenVZ Forum


Home » General » Support » hostname inside VPS
hostname inside VPS [message #39123] Wed, 17 March 2010 10:50 Go to next message
antal is currently offline  antal
Messages: 5
Registered: March 2010
Location: Moscow
Junior Member
inside VPS (debian) hostname gives name of HN. Settings are ОК.
...
OSTEMPLATE="debian-6.0-standard_6.0-1_i386"
ORIGIN_SAMPLE="pve.auto"
IP_ADDRESS="192.168.132.2"
HOSTNAME="mail_ldap"
NAMESERVER="192.168.133.3 192.168.133.2"
...
inside VPS /etc/hostname:
mail_ldap

what can it be?

Possible is was happen after "apt-get upgrade" inside VPS (debian update) on the other VPS of the same HN - all correct.
Re: hostname inside VPS [message #39128 is a reply to message #39123] Wed, 17 March 2010 18:28 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

> HOSTNAME="mail_ldap"
> inside VPS /etc/hostname: mail_ldap

=> is allright, so the ct config value HOSTNAME, set the /etc/hostname in your running ct via the disto-scripts, so where's the prob.

Bye,
Thorsten
Re: hostname inside VPS [message #39133 is a reply to message #39128] Thu, 18 March 2010 05:45 Go to previous messageGo to next message
antal is currently offline  antal
Messages: 5
Registered: March 2010
Location: Moscow
Junior Member
but hostname command (also \h in bash prompt) in VPS gives me "vzhn" - the hostname of HN not "mail_ldap"
Re: hostname inside VPS [message #39134 is a reply to message #39133] Thu, 18 March 2010 07:39 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

please post: /etc/hosts of your ct:

# vzctl exec <CTID> 'cat /etc/hosts'

and how are update your ct, via vzctl enter <CTID>; then apt-get update ...

or via vzctl exec <CTID> ...

have you restart the ct, and this error occurs again ?
# vzctl --verbose restart <CTID>


Bye,
Thorsten
Re: hostname inside VPS [message #39138 is a reply to message #39134] Thu, 18 March 2010 11:51 Go to previous message
antal is currently offline  antal
Messages: 5
Registered: March 2010
Location: Moscow
Junior Member
thanx for "--verbose" Smile
it was invalid hostname error.

hostname can't consist "_" sign
Previous Topic: openvz node centos version
Next Topic: reboot from within container
Goto Forum:
  


Current Time: Thu Jul 25 21:17:59 GMT 2024

Total time taken to generate the page: 0.03356 seconds