Hi Nate, Many thanks for the clarification and sorry for the my delayed response. Here’s the code snipplet I use in a postscript to enable and start various third – party software via system. The snipplet will be executed first:
# Set hostname myDomain=$(grep '^domain' /etc/resolv.conf | sed 's/^domain[[:space:]]\+\(.*\)/\1/') if [ "${myDomain}" = '' ] ; then echo "ERROR: Can't determine DNS domain from /etc/resolv.conf" else NODE="${NODE}.${myDomain}" fi hostnamectl set-hostname $NODE Prerequiste to set the FQHN is that /etc/resolv.conf contains a domain – config line and will be syncned before executing the script containing the code - snipplet. Otherwise only the short hostname will be used, which worked for my set-up, too. Cheers, -Frank From: Nathan A Besaw <bes...@us.ibm.com> Sent: Wednesday, 18 March 2020 16:12 To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> Subject: Re: [xcat-user] Can't boot from localdisk Hi Frank, After some investigation, we think this is still a problem in the most recent release (2.15.1). Using a postbootscript to set /etc/hostname is probably the best short term solution. Feel free to open an issue to https://github.com/xcat2/xcat-core if you would like us to try to investigate a better long term solution. Also, can you share the contents of your postbootscript with the mailing list for the benefit of others that might encounter this problem? Thanks, Nate [Inactive hide details for "Heckes, Frank" ---03/18/2020 05:56:01 AM---Hi all, The problem appeared, because xCAT didn’t replac]"Heckes, Frank" ---03/18/2020 05:56:01 AM---Hi all, The problem appeared, because xCAT didn’t replace the string ‘linux.localdomain’ in /etc/hos From: "Heckes, Frank" <hec...@mps.mpg.de<mailto:hec...@mps.mpg.de>> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net<mailto:xcat-user@lists.sourceforge.net>> Date: 03/18/2020 05:56 AM Subject: [EXTERNAL] Re: [xcat-user] Can't boot from localdisk ________________________________ Hi all, The problem appeared, because xCAT didn’t replace the string ‘linux.localdomain’ in /etc/hostname with the correct hostname of the node. This lead to the boot problems (/etc/nsswitch.conf is configured to use ldap). Once I set the hostname via a postboot – script the problem is gone. Is this a bug for the current version, (too)? Cheers, -Frank From: Heckes, Frank <hec...@mps.mpg.de<mailto:hec...@mps.mpg.de>> Sent: Thursday, 12 March 2020 00:24 To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net<mailto:xcat-user@lists.sourceforge.net>> Subject: [xcat-user] Can't boot from localdisk Hello, I’m using xCAT 2.15. After a successful installation with sles12.4 the node (dell R640) fails to boot from localdisk (see console log below). Does anyone has an idea about the error message from gPXE and how to workaround or solve it? Many thanks in advance. Cheers, -Frank Heckes http://134.76.239.244:80/tftpboot/xcat/xnba/nodes/atlas52... ok LOCALBOOT: command not found Could not boot image: Exec format error (http://ipxe.org/2e022001) No more network devices PXE-M0F: Exiting Intel Boot Agent. Booting from Hard drive C: GRUB loading. Welcome to GRUB! [ 4.679176] kvm: disabled by bios [FAILED] Failed to start Load kdump kernel early on startup. See 'systemctl status kdump-early.service' for details. [ OK ] Started Update cron periods from /etc/sysconfig/btrfsmaintenance. [FAILED] Failed to start Login Service. See 'systemctl status systemd-logind.service' for details. [FAILED] Failed to start System Logging Service. See 'systemctl status rsyslog.service' for details. [FAILED] Failed to start wicked AutoIPv4 supplicant service. See 'systemctl status wickedd-auto4.service' for details. [FAILED] Failed to start wicked DHCPv6 supplicant service. See 'systemctl status wickedd-dhcp6.service' for details. [FAILED] Failed to start wicked DHCPv4 supplicant service. See 'systemctl status wickedd-dhcp4.service' for details. _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net<mailto:xCAT-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/xcat-user
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user