I realized that we should be including libnss_libvirt.so.2 (as we are) and ALSO libnss_libvirt_guest.so.2 (not included) in the libnss-libvirt package.
With that file missing, we can't solve libvirt machine names when changing nsswitch.conf "hosts" entry to "libvirt_guest" and we rely only in solving the guest hostname with "libvirt" only.
Following the guidelines at:
https:/ /libvirt. org/nss. html
I realized that we should be including libnss_libvirt.so.2 (as we are) and ALSO libnss_ libvirt_ guest.so. 2 (not included) in the libnss-libvirt package.
With that file missing, we can't solve libvirt machine names when changing nsswitch.conf "hosts" entry to "libvirt_guest" and we rely only in solving the guest hostname with "libvirt" only.