In the past, I've used a postscript to reset the hostname based on either IP, xCAT node name, whatever. In RH, edit the HOSTNAME line in /etc/sysconfig/network, SLES uses /etc/HOSTNAME. Looks like CoreOS uses hostnamectl command.
Regards, Christian Caruthers Lenovo xESS IT Consultant Mobile: 757-289-9872 From: Devon Peters [mailto:[email protected]] Sent: Wednesday, August 19, 2015 4:42 PM To: xCAT Users Mailing list Subject: [xcat-user] Is there a better way to set the hostname with netboot? Background - we've got location-specific xcat node names for our servers, which are used with discovery. When we install an OS on the nodes, the hostname we configure in hosts.hostnames is set as the final hostname, and all is well. The issue we're seeing though, is when we netboot our diskless CoreOS systems the hostname is set to the xcat node name, rather than the first hosts.hostnames like we want. I've found that I can work around this by using: makedhcp node022 -s 'supersede host-name = \"therealhostname\";' Though, if someone runs 'makedhcp -a', these customizations get nuked... I'm curious if there's a better or recommended way to set the hostname for these sort of systems? -devon
------------------------------------------------------------------------------
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
