<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
One thing I have since noticed, the core networks dhcp server is sending example.com as the dhcp domain and our sub domain is not included in the domain search it provides. I can see in the fai boot.log of the localhost machine that the domain is example.com
and in the boot.log of the machine with the correct dns name is oursubdomain.example.com, not sure if this is a problem, nslookup works fine on machines with the core networks dhcp server sent information.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Best Regards,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Stuart</div>
<hr style="display: inline-block; width: 98%;">
<div dir="ltr" id="divRplyFwdMsg" style="color: inherit;"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> Stuart Green <srg67@bath.ac.uk><br>
<b>Sent:</b> 30 January 2025 12:49<br>
<b>To:</b> fully automatic installation for Linux <linux-fai@uni-koeln.de><br>
<b>Subject:</b> Re: New to FAI, having some issues building</span>
<div> </div>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Thanks Thomas and Matthew for the pointers. I've been testing for a few days but I think I'm quite confused though what the workflow should be with autodiscover. </div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
In the guide it says about autodiscover "This lifts the necessity of having to collect every client’s MAC address and configuring the DHCP daemon."</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
In my environment I have a vlan which is assigned to us. Within a management system I can register dhcp reservations with mac address, create static IP entries, or set an IP as reserved.</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
I don't have any access to the dhcp servers backend settings. Usually we register machines as dhcp reservations with mac address.</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
I was having zero success getting the hostname to set - I tried Matthews trick with fai-chboot - it didn't help me.</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<i>As a side note, I'm slightly confused about how the file created by fai-chboot is involved in the autodiscover workflow, I see its interacted with at the end of the autodiscover process where it sets the file .disable</i></div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
I then decided to configure the dhcp daemon on the fai server, I also added the new host to /etc/hosts and dhcp-edit and after running another build of a VM the hostname became set!</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
I'm now able to get it consistently building a machine with the hostname set correct in my Proxmox Environment where the FAI server is also hosted, however when I tried to run the same build on baremetal yesterday the hostname was set to locahost each time.</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
If dhcp is supposed to be setting the hostname is the issue likely to be that the core networks dhcp server is not setup with use-host-decl-names on and because the baremetal server is not sharing a backplane with the fai server(whereas my test vms do) it always
gets a broadcast response quicker from the core networks dhcp server?</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Best Regards,</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Stuart</div>
<div style="direction: ltr; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div style="color: inherit;" dir="ltr" id="x_divRplyFwdMsg"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> linux-fai <linux-fai-bounces@uni-koeln.de> on behalf of Thomas Lange <lange@cs.uni-koeln.de><br>
<b>Sent:</b> 27 January 2025 08:46<br>
<b>To:</b> fully automatic installation for Linux <linux-fai@uni-koeln.de><br>
<b>Subject:</b> Re: New to FAI, having some issues building</span>
<div> </div>
</div>
<div style="direction: ltr; font-size: 11pt;">[You don't often get email from lange@cs.uni-koeln.de. Learn why this is important at
<a href="https://aka.ms/LearnAboutSenderIdentification" id="OWA53f34858-3106-77f4-9f25-3dbcec23b021" class="x_OWAAutoLink" data-auth="NotApplicable">
https://aka.ms/LearnAboutSenderIdentification</a> ]<br>
<br>
CAUTION: This email came from outside of the University. To keep your account safe, only click on links and open attachments if you know the person who sent the email, or you expected to receive this communication.<br>
<br>
<br>
<br>
>>>>> On Thu, 23 Jan 2025 19:15:14 +0000, Stuart Green via linux-fai <linux-fai@uni-koeln.de> said:<br>
<br>
> How are hostnames controlled/set when using autodiscover?<br>
Usually the hostname is provided by the DHCP server (via the option use-host-decl-names on).<br>
This also work when using the autodiscover ISO.<br>
<br>
--<br>
regards Thomas</div>
</body>
</html>