Hostname resets on OVH server Print

  • 0

Symptoms

The hostname on an OVH server resets at reboot.

 

Description

The hostname reset is likely due to the cloud-init module being enabled.

 

Workaround

  1. Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
  2. Open the /etc/cloud/cloud.cfg file in your preferred text editor.
  3. Change the preserve_hostname value to true.
    preserve_hostname: true
  4. Change the manage_etc_hosts value to false.
    manage_etc_hosts: false
  5. Save the changes and exit the text editor.

Was this answer helpful?
Back

Send Message