** Description changed: + [Impact] + + * Despite libvirt having been compiled with libnss_libvirt_guest + support, it only includes libnss_libvirt.so.2 shared library. With that, + one that would like to use "libvirt_guest" as an entry in + /etc/nsswitch.conf, to resolve hostnames (being the same as the virtual + machine names) won't be able to. + + [Test Case] + + * Create a virtual machine called "test" with hostname "untested" + * Make sure this virtual machine is attached to "default" network + * Make sure the "default" network offers DHCP addresses + * Edit /etc/nsswitch.conf: + ... + hosts: files libvirt dns + ... + * Confirm you're able to resolve "untested": ping untested + * Edit /etc/nsswitch.conf and change to: + ... + hosts: files libvirt_guest dns + ... + * You won't be able to resolve "test" (virtual machine name) + + [Regression Potential] + + * This change only includes a missing shared library in package libnss- + libvirt package. No code change: regressions could happen during package + building most likely. + + [Other Info] + 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.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853074 Title: libnss-libvirt does not include libnss_libvirt_guest.so for nsswitch To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1853074/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
