How to set the hostid on SUSE Linux Enterprise

This document (3643898) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Desktop 10


Need to set hostid for third party programs
/etc/hostid does not exist


You can set the hostid by running
hostid yourhostid
where yourhostid can be decimal, or in hex form 0xNNNNNNNN. This will create the /etc/hostid file.

For example, the following two statements are equivilant:
hostid 0x1a2b3c4d
hostid 439041101

Additional Information

The linux man page on hostid has more details. Type 'man hostid' from a command shell to view this. The 'q' key will exit out of the man page viewer.


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3643898
  • Creation Date: 03-Aug-2006
  • Modified Date:05-Mar-2021
    • SUSE Linux Enterprise Desktop
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center