NetworkManager has removed the configuration of nameservers created by cloud-init

Solution In Progress - Updated -


  • We are experiencing a problem with resolv.conf configuration on RHEL 7.7.

  • During the first boot, the nameservers have been configured well from OpenStack subnet metadata:

$ cat etc/resolv.conf 
; Created by cloud-init on instance boot automatically, do not edit.
# Generated by NetworkManager
  • After a reboot, resolv.conf has been cleared by NetworkManager.:
$ cat etc/resolv.conf 
# Generated by NetworkManager
  • The cloud-init service created a special configuration for NetworkManager and NetworkManager should not change resolv.conf but it still changed it.


  • Red Hat Enterprise Linux 7.7 (RHEL)

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