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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content