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.
Description of problem:
Unable to stably view libvirt host lists via avahi with virt-manager
Version-Release number of selected component (if applicable):
libvirt-2.0.0-10.el7_3.2.x86_64
virt-manager-1.4.0-2.el7.noarch
How reproducible:
Above 90%
Steps to Reproduce:
1.Make sure firewall allows mDNS
# system-config-firewall (use #firewall-config instead if FirewallD is active)
Tick mDNS in pop-up firewall config windows
2.Config a remote server in the same subnet:
2.1 Edit /etc/libvirt/libvirtd.conf
mdns_adv = 1
mdns_name = "Virtualization Host first-Demo"
2.2 Edit /etc/nsswitch.conf
hosts: hostname
2.3 Restart service
# systemctl restart avahi-daemon
# systemctl restart libvirtd
3.Config another server, called "Virtualization Host second-Demo".
4.Check above virtual hostname on Client host
4.1 In virt-manager, click "File"-> "Add Connection",
Select hypervisor as "QEMU/KVM", Tick "Connect to remote host", Method as "SSH", Username as "root"
4.2 Check "hostname" dropdown list
5.Stop and start virt-manager again, check the "hostname" dropdown list to see different results.
6.Using avahi-discover instead:
#avahi-discover
In the popup window, both "Virtualization Host first-Demo" and "Virtualization Host second-Demo" are always shown under the item "Virtual Machine Manager", clearly and stably.
Actual results:
Step 4&5: In virt-manager, cannot show libvirt hosts stably:
Sometimes can show both, sometimes show none(the dropdown button disabled), also sometimes show only one.
Expected results:
In virt-manager, should show all libvirt hosts in "hostname" dropdown list every time. Just as step6 avahi-discover displayed.
Thanks for the report. I removed avahi support in upstream virt-manager in the 2.0.0 release. It's a minor convenience feature that in practice no one really seems to use. So I don't think it's worth devoting RHEL7 resources to fixing it when the code is gone upstream