Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 1.11 KB

File metadata and controls

29 lines (17 loc) · 1.11 KB

Assigning Hostnames Automatically in Sbnb Linux

During the boot process, Sbnb Linux reads the machine's serial number and assigns the hostname as:

sbnb-${SERIAL}

If no serial number can be read, then a randomly generated string is used instead.

Once the machine boots and connects to Tailscale (tailnet), it will be identified using the assigned hostname.

Example

Below are pictures from a test 1U rack-mount machine based on an ASRock motherboard:

Serial number on the top of the chassis case

Sbnb Linux: Serial number on the top of the chassis case

Serial number in the ASRock BMC Web User Interface (WebUI)

Sbnb Linux: Serial number in the ASRock BMC Web User Interface (WebUI)

Serial number retrieved using dmidecode on the Linux command line

Sbnb Linux: Serial number retrieved using dmidecode on the Linux command line

Machine registered in Tailscale (tailnet)

Sbnb Linux: Machine registered in Tailscale (tailnet)