OLVM: Cloud Init DNS Search Entry Missing in /etc/resolv.conf of Guest VMs
(Doc ID 2732792.1)
Last updated on OCTOBER 01, 2021
Applies to:
Linux OS - Version Oracle Linux 7.8 with Unbreakable Enterprise Kernel [4.14.35] and laterLinux x86-64
Symptoms
On : Oracle Linux 7.8 with Unbreakable Enterprise Kernel [4.14.35] version, Oracle Linux Virtualization Manager(OLVM)
When DNS search domain is configured using cloud init in Admin portal to create new VMs with initial configuration, the guest VM's search-entry is always missing in /etc/resolv.conf and it has to be added manually but no issue is seen with DNS entries in nic's network configuration:
# cat /etc/resolv.conf ; Created by cloud-init on instance boot automatically, do not edit. ; <<<<<<<<<<<<<<<<<<<<< no entry as "search in <DOMAIN>" mentioned in cloud-init # Generated by NetworkManager nameserver 10.XX.XX.19 nameserver 10.XX.XX.18
Example config for nic interface:
# cat /etc/sysconfig/network-scripts/ifcfg-eth0 # Created by cloud-init on instance boot automatically, do not edit. # BOOTPROTO=none DEFROUTE=yes DEVICE=eth0 DNS1=10.XX.XX.19 DNS2=10.XX.XX.18 DOMAIN=<DOMAIN> GATEWAY=<GATEWAY> IPADDR=xx.xx.xx.xx NETMASK=xxxxxx ONBOOT=yes TYPE=Ethernet USERCTL=no
This is not expected and search-entry must appear in /etc/resolv.conf
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |