Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionAlexander Todorov
2011-05-06 18:37:10 UTC
+++ This bug was initially created as a clone of Bug #702112 +++
Description of problem:
I'm using NAT networking for my virtual guests (KVM). In the XML file I have defined the example.com domain and a host which will be assigned static IP address and predefined hostname. The config looks like this:
<network>
<name>default</name>
<uuid>432d8cf4-16a3-4ff1-af5d-02f115fbc516</uuid>
<forward mode='nat'/>
<bridge name='virbr0' stp='on' delay='0' />
<domain name='example.com'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.200' end='192.168.122.254' />
<host mac='52:54:00:bf:ae:e2' name='tester1.example.com' ip='192.168.122.12' />
<bootp file='pxelinux.0' server='192.168.122.11' />
</dhcp>
</ip>
</network>
When I create new guest and run the anaconda installer by default it uses DHCP. The result is that IP address is assigned correctly but DNS is not.
Version-Release number of selected component (if applicable):
anaconda in RHEL 6.0 GA
libvirt-0.8.1-27.el6_0.5.x86_64
dnsmasq-2.48-4.el6.x86_64
How reproducible:
always
Steps to Reproduce:
1. Cofigure NAT networking using the domain and host tags
2. Assign FQDN for your guest system
3. Install the guest using anaconda with all the default options. Specify the correct MAC address for the network interface.
Actual results:
During stage2 IP address is assigned but /etc/resolv.conf looks like:
search example.com
no trace of nameserver configuration. All DNS requests fail.
Expected results:
DNS is working.
Additional info:
This happens when I boot the guest using PXE (the guest is part of local beaker lab setup)
If I select to provision RHEL 5.6 from beaker on the same host then /etc/resolv.conf looks like:
search example.com
nameserver 192.168.122.1
In the same environment if I create a new guest with RHEL 6 with a different MAC address it will get a dynamic IP and resolv.conf in stage2 looks like:
domain example.com
search example.com
nameserver 192.168.122.1
Comment 1Alexander Todorov
2011-05-06 18:48:43 UTC
(In reply to comment #0)
> In the same environment if I create a new guest with RHEL 6 with a different
> MAC address it will get a dynamic IP and resolv.conf in stage2 looks like:
>
> domain example.com
> search example.com
> nameserver 192.168.122.1
This is when the guest is created manually using virt-manager and http install source, not PXE boot.
Comment 2Alexander Todorov
2011-05-06 19:06:58 UTC
Can you please retest with current RHEL 6.1 (I think e.g. Snap 5 should be ok)? /etc/resolv.conf is now managed entirely by NM in anaconda (see bug #687953).
Comment 4Alexander Todorov
2011-05-10 17:42:30 UTC
Works for me with RC 4 and it looks like a dup of #687953.
*** This bug has been marked as a duplicate of bug 687953 ***