OpenVZ Forum


Home » General » Support » No longer setting hostname in container ? (No longer setting hostname in container ?)
No longer setting hostname in container ? [message #40170] Sun, 25 July 2010 20:14 Go to next message
vali.dragnuta is currently offline  vali.dragnuta
Messages: 6
Registered: December 2005
Location: Romania
Junior Member
I have just updated a system (centos 5,
vzctl-lib-3.0.24-1
vzctl-3.0.24-1

And after update I noticed that the correct hostname is no longer (fully) passed to the guest.
If the configured hostname in CTID.conf is for example
myhost.mydomain.tld

In the container's /etc/sysconfig/network file the
we only get something like
HOSTNAME="myhost" while suffix (domainname) ".mydomain.tld" is lost. This despite the fact that vzctl.log pretends it sets the guest with the fully qualified name.
This sudden change interferes with guest applications that expect the hostname to return the fqdn.
Is this a reason for this change ?
Re: No longer setting hostname in container ? [message #40171 is a reply to message #40170] Sun, 25 July 2010 20:18 Go to previous messageGo to next message
onzehost is currently offline  onzehost
Messages: 4
Registered: July 2010
Junior Member
edit /etc/vz/dists/scripts/redhat-set_hostname.sh and comment the line "$(val=val%%.*}"
Re: No longer setting hostname in container ? [message #40172 is a reply to message #40171] Mon, 26 July 2010 06:53 Go to previous message
vali.dragnuta is currently offline  vali.dragnuta
Messages: 6
Registered: December 2005
Location: Romania
Junior Member
That did the trick. Why the change in behavior ?
Previous Topic: Folllowed Quick Install Guide... No External Networking
Next Topic: Strange behaviour in disk space. How to diagnose sudden rise in file space used?
Goto Forum:
  


Current Time: Sun Nov 03 21:13:12 GMT 2024

Total time taken to generate the page: 0.03668 seconds