How to set VM name as hostname automatically in RHV

Solution Verified - Updated -

Issue

  • Need to set VM name as hostname automatically using cloud-init so that users don't need to input this information manually.
  • Is it possible to set VM name as hostname automatically for Linux guests in RHV ?

Environment

  • Red Hat Enterprise Virtualization 3.x
  • Red Hat Virtualization 4.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.