Skip to content

/etc/hostname not properly set? #2446

@thiell

Description

@thiell

Hi,

I use xCAT 2.12.3 to deploy both physical nodes and VMs on a new cluster and I am currently using CentOS 7.3 as the Linux distro. Although hostname returns the proper node hostname after it is deployed, I noticed that all nodes deployed with xCAT have the default /etc/hostname content with localhost.localdomain. Also, there is an example of hostnamectl status on such deployed node:

# hostnamectl status
   Static hostname: localhost.localdomain
Transient hostname: oak-gw04.sunet
         Icon name: computer-vm
           Chassis: vm
...

Do you have an idea of how to fix this without writing a postscript? I am a bit surprised this is not done by anaconda, hm? Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions