Bug 2364285 - libvirt-nss stops working after network restarts
Summary: libvirt-nss stops working after network restarts
Keywords:
Status: ON_QA
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 42
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-06 03:56 UTC by Renich Bon Ciric
Modified: 2025-08-09 04:08 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
dnsmasq files for a failing libvirt installation (1002 bytes, application/gzip)
2025-06-18 17:57 UTC, Renich Bon Ciric
no flags Details

Description Renich Bon Ciric 2025-05-06 03:56:36 UTC
I've installed libvirt-nss and used authselect to set it upt. It's not working.

Reproducible: Always

Steps to Reproduce:
1. dnf -y install libvirt-nss
2. authselect enable-feature with-libvirt
3. ssh root@some-guest
Actual Results:
It never resolves.

Expected Results:
ssh should work provided your ssh key is in the root user.

Additional Information:
It used to work. I used it a lot.

Comment 1 Cole Robinson 2025-06-03 14:32:12 UTC
I haven't confirmed the issue, but mprivozn I see there were some nss changes in libvirt 11.4.0, were they unrbeaking anything or just cleanups?

Comment 2 Michal Privoznik 2025-06-04 12:26:48 UTC
(In reply to Renich Bon Ciric from comment #0)
> I've installed libvirt-nss and used authselect to set it upt. It's not
> working.
> 

> 3. ssh root@some-guest

Firstly, are you sure that 'some-guest' uses a libvirt controlled network (i.e. such that it's libvirt spawned dnsmasq that's acting as DHCP server)? What does 'virsh domifaddr --source lease some-guest' print?

Secondly, can you confirm that libvirt nss plugin is loaded? E.g. by running 'strace -yy getent hosts some-guest'.

Maybe this is an ordering problem? I have the following and it works for me:

# grep libvirt /etc/nsswitch.conf
hosts:      files myhostname libvirt libvirt_guest resolve [!UNAVAIL=return] dns

Comment 3 Renich Bon Ciric 2025-06-13 18:24:19 UTC
OK, here's a bit of output:

root@desktop ~# virsh domifaddr --source lease cs10
 Name       MAC address          Protocol     Address
-------------------------------------------------------------------------------
 vnet0      52:54:00:10:f9:43    ipv4         192.168.122.240/24

root@desktop ~# pgrep -fa dnsmasq
95626 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
95627 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
95663 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/mk-minikube.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
95664 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/mk-minikube.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
95688 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/private.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
95689 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/private.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper

root@desktop ~# strings /usr/libexec/libvirt_leaseshelper
AVAUATSH
D$ H
per.pid
8ASL
AYAZ
[A\A]A^A_]
PTE1
u+UH
/lib64/ld-linux-x86-64.so.2
_ITM_deregisterTMCloneTable
__gmon_start__
_ITM_registerTMCloneTable
__libc_start_main
__cxa_finalize
getenv
strcmp
g_strdup
g_strdup_printf
g_malloc
getpid
__errno_location
dcgettext
stderr
g_fprintf
g_free
g_printf
exit
__stack_chk_fail
virJSONValueNewArray
virPidFileAcquirePathFull
virSetErrorLogPriorityFunc
virJSONValueArrayAppend
virReportErrorHelper
virGettextInitialize
virLeasePrintLeases
virPidFileReleasePath
virFileRewriteStr
virJSONValueFree
virEnumFromString
virFileTouch
virLeaseNew
virEnumToString
virErrorInitialize
virDispatchError
virLeaseReadCustomLeaseFile
virJSONValueToString
virSetErrorFunc
__gcc_personality_v0
_Unwind_Resume
libvirt.so.0
libglib-2.0.so.0
libgcc_s.so.1
libc.so.6
virLeaseActionTypeToString
__data_start
__bss_start
_end
_edata
virLeaseActionTypeFromString
_IO_stdin_used
GCC_3.3.1
GCC_3.0
GLIBC_ABI_DT_RELR
GLIBC_2.34
GLIBC_2.4
GLIBC_2.2.5
LIBVIRT_0.1.0
LIBVIRT_PRIVATE_11.0.0
$ORIGIN/
a_&	
DNSMASQ_IAID
DNSMASQ_CLIENT_ID
DNSMASQ_INTERFACE
DNSMASQ_SUPPLIED_HOSTNAME
%1$s: initialization failed
libvirt
--help
--version
11.0.0
%s (%s) %s
VIR_BRIDGE_NAME
interface not set
Unsupported action: %1$s
DNSMASQ_MAC
DNSMASQ_SERVER_DUID
failed to create json
../src/network/leaseshelper.c
empty json array
init
Usage: %1$s add|old|del|init mac|clientid ip [hostname]
Designed for use with 'dnsmasq --dhcp-script'
Refer to man page of dnsmasq for more details'
%1$s: try --help for more details
/var/lib/libvirt/dnsmasq/%s.status
Unable to acquire PID file: %1$s
 errno=%2$d
Unable to create: %1$s
 errno=%2$d
main
/run/leaseshelpe
9*3$"
zPLR
{"type":"rpm","name":"libvirt","version":"11.0.0-2.fc42","architecture":"x86_64","osCpe":"cpe:/o:fedoraproject:fedora:42"}
libvirt_leaseshelper-11.0.0-2.fc42.x86_64.debug
7zXZ
1G`z
-g	[f9
s-!%
~{;%
fd6V.
	dWB-
`*#Y,V
*7v$ 
d`_O
x[=J^
;)D!
.shstrtab
.note.gnu.build-id
.init
.plt.sec
.text
.fini
.interp
.gnu.hash
.dynsym
.dynstr
.gnu.version
.gnu.version_r
.rela.dyn
.rela.plt
.relr.dyn
.rodata
.eh_frame_hdr
.eh_frame
.gcc_except_table
.note.gnu.property
.note.ABI-tag
.note.package
.init_array
.fini_array
.data.rel.ro
.dynamic
.got
.data
.bss
.gnu.build.attributes
.gnu_debuglink
.gnu_debugdata


root@desktop ~# strace -yy getent hosts cs10
execve("/usr/sbin/getent", ["getent", "hosts", "cs10"], 0x7ffe133174a8 /* 49 vars */) = 0
brk(NULL)                               = 0x5566e8019000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff87e559000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD</root>, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3</etc/ld.so.cache>
fstat(3</etc/ld.so.cache>, {st_mode=S_IFREG|0644, st_size=126855, ...}) = 0
mmap(NULL, 126855, PROT_READ, MAP_PRIVATE, 3</etc/ld.so.cache>, 0) = 0x7ff87e53a000
close(3</etc/ld.so.cache>)              = 0
openat(AT_FDCWD</root>, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3</usr/lib64/libc.so.6>
read(3</usr/lib64/libc.so.6>, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2607\0\0\0\0\0\0"..., 832) = 832
pread64(3</usr/lib64/libc.so.6>, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
fstat(3</usr/lib64/libc.so.6>, {st_mode=S_IFREG|0755, st_size=2448320, ...}) = 0
pread64(3</usr/lib64/libc.so.6>, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 2038872, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3</usr/lib64/libc.so.6>, 0) = 0x7ff87e348000
mmap(0x7ff87e4b7000, 479232, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libc.so.6>, 0x16f000) = 0x7ff87e4b7000
mmap(0x7ff87e52c000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libc.so.6>, 0x1e3000) = 0x7ff87e52c000
mmap(0x7ff87e532000, 31832, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff87e532000
close(3</usr/lib64/libc.so.6>)          = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff87e345000
arch_prctl(ARCH_SET_FS, 0x7ff87e345740) = 0
set_tid_address(0x7ff87e345a10)         = 96262
set_robust_list(0x7ff87e345a20, 24)     = 0
rseq(0x7ff87e345680, 0x20, 0, 0x53053053) = 0
mprotect(0x7ff87e52c000, 16384, PROT_READ) = 0
mprotect(0x5566bfa3a000, 4096, PROT_READ) = 0
mprotect(0x7ff87e595000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7ff87e53a000, 126855)          = 0
getrandom("\xe3\xc3\x00\x7f\x45\x05\xfd\xd2", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x5566e8019000
brk(0x5566e803a000)                     = 0x5566e803a000
openat(AT_FDCWD</root>, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3</usr/lib/locale/locale-archive>
fstat(3</usr/lib/locale/locale-archive>, {st_mode=S_IFREG|0644, st_size=233242544, ...}) = 0
mmap(NULL, 233242544, PROT_READ, MAP_PRIVATE, 3</usr/lib/locale/locale-archive>, 0) = 0x7ff870400000
close(3</usr/lib/locale/locale-archive>) = 0
newfstatat(AT_FDCWD</root>, "/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=931, ...}, 0) = 0
openat(AT_FDCWD</root>, "/etc/host.conf", O_RDONLY|O_CLOEXEC) = 3</etc/host.conf>
fstat(3</etc/host.conf>, {st_mode=S_IFREG|0644, st_size=9, ...}) = 0
read(3</etc/host.conf>, "multi on\n", 4096) = 9
read(3</etc/host.conf>, "", 4096)       = 0
close(3</etc/host.conf>)                = 0
futex(0x7ff87e53872c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
openat(AT_FDCWD</root>, "/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 3</run/systemd/resolve/stub-resolv.conf>
fstat(3</run/systemd/resolve/stub-resolv.conf>, {st_mode=S_IFREG|0644, st_size=931, ...}) = 0
read(3</run/systemd/resolve/stub-resolv.conf>, "# This is /run/systemd/resolve/s"..., 4096) = 931
read(3</run/systemd/resolve/stub-resolv.conf>, "", 4096) = 0
fstat(3</run/systemd/resolve/stub-resolv.conf>, {st_mode=S_IFREG|0644, st_size=931, ...}) = 0
close(3</run/systemd/resolve/stub-resolv.conf>) = 0
newfstatat(AT_FDCWD</root>, "/etc/nsswitch.conf", {st_mode=S_IFREG|0644, st_size=677, ...}, 0) = 0
newfstatat(AT_FDCWD</root>, "/", {st_mode=S_IFDIR|0555, st_size=206, ...}, 0) = 0
openat(AT_FDCWD</root>, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3</etc/authselect/nsswitch.conf>
fstat(3</etc/authselect/nsswitch.conf>, {st_mode=S_IFREG|0644, st_size=677, ...}) = 0
read(3</etc/authselect/nsswitch.conf>, "# Generated by authselect\n# Do n"..., 4096) = 677
read(3</etc/authselect/nsswitch.conf>, "", 4096) = 0
fstat(3</etc/authselect/nsswitch.conf>, {st_mode=S_IFREG|0644, st_size=677, ...}) = 0
close(3</etc/authselect/nsswitch.conf>) = 0
openat(AT_FDCWD</root>, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 3</etc/hosts>
fstat(3</etc/hosts>, {st_mode=S_IFREG|0644, st_size=518, ...}) = 0
lseek(3</etc/hosts>, 0, SEEK_SET)       = 0
read(3</etc/hosts>, "# Loopback entries; do not chang"..., 4096) = 518
read(3</etc/hosts>, "", 4096)           = 0
close(3</etc/hosts>)                    = 0
openat(AT_FDCWD</root>, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3</etc/ld.so.cache>
fstat(3</etc/ld.so.cache>, {st_mode=S_IFREG|0644, st_size=126855, ...}) = 0
mmap(NULL, 126855, PROT_READ, MAP_PRIVATE, 3</etc/ld.so.cache>, 0) = 0x7ff87e53a000
close(3</etc/ld.so.cache>)              = 0
openat(AT_FDCWD</root>, "/lib64/libnss_myhostname.so.2", O_RDONLY|O_CLOEXEC) = 3</usr/lib64/libnss_myhostname.so.2>
read(3</usr/lib64/libnss_myhostname.so.2>, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3</usr/lib64/libnss_myhostname.so.2>, {st_mode=S_IFREG|0755, st_size=174024, ...}) = 0
mmap(NULL, 174384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3</usr/lib64/libnss_myhostname.so.2>, 0) = 0x7ff87e31a000
mmap(0x7ff87e330000, 61440, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libnss_myhostname.so.2>, 0x16000) = 0x7ff87e330000
mmap(0x7ff87e33f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libnss_myhostname.so.2>, 0x24000) = 0x7ff87e33f000
close(3</usr/lib64/libnss_myhostname.so.2>) = 0
openat(AT_FDCWD</root>, "/lib64/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3</usr/lib64/libcap.so.2.73>
read(3</usr/lib64/libcap.so.2.73>, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20V\0\0\0\0\0\0"..., 832) = 832
fstat(3</usr/lib64/libcap.so.2.73>, {st_mode=S_IFREG|0755, st_size=44992, ...}) = 0
mmap(NULL, 45128, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3</usr/lib64/libcap.so.2.73>, 0) = 0x7ff87e30e000
mmap(0x7ff87e314000, 16384, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libcap.so.2.73>, 0x6000) = 0x7ff87e314000
mmap(0x7ff87e318000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libcap.so.2.73>, 0x9000) = 0x7ff87e318000
close(3</usr/lib64/libcap.so.2.73>)     = 0
openat(AT_FDCWD</root>, "/lib64/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3</usr/lib64/libgcc_s-15-20250521.so.1>
read(3</usr/lib64/libgcc_s-15-20250521.so.1>, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3</usr/lib64/libgcc_s-15-20250521.so.1>, {st_mode=S_IFREG|0755, st_size=182368, ...}) = 0
mmap(NULL, 176584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3</usr/lib64/libgcc_s-15-20250521.so.1>, 0) = 0x7ff87e2e2000
mmap(0x7ff87e305000, 28672, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libgcc_s-15-20250521.so.1>, 0x23000) = 0x7ff87e305000
mmap(0x7ff87e30c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libgcc_s-15-20250521.so.1>, 0x2a000) = 0x7ff87e30c000
mmap(0x7ff87e30d000, 456, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff87e30d000
close(3</usr/lib64/libgcc_s-15-20250521.so.1>) = 0
mprotect(0x7ff87e30c000, 4096, PROT_READ) = 0
mprotect(0x7ff87e318000, 4096, PROT_READ) = 0
mprotect(0x7ff87e33f000, 20480, PROT_READ) = 0
prctl(PR_CAPBSET_READ, CAP_MAC_OVERRIDE) = 1
prctl(PR_CAPBSET_READ, 0x30 /* CAP_??? */) = -1 EINVAL (Invalid argument)
prctl(PR_CAPBSET_READ, CAP_CHECKPOINT_RESTORE) = 1
prctl(PR_CAPBSET_READ, 0x2c /* CAP_??? */) = -1 EINVAL (Invalid argument)
prctl(PR_CAPBSET_READ, 0x2a /* CAP_??? */) = -1 EINVAL (Invalid argument)
prctl(PR_CAPBSET_READ, 0x29 /* CAP_??? */) = -1 EINVAL (Invalid argument)
munmap(0x7ff87e53a000, 126855)          = 0
rt_sigprocmask(SIG_BLOCK, [HUP USR1 USR2 PIPE ALRM CHLD TSTP URG VTALRM PROF WINCH IO], [], 8) = 0
access("/proc/net/if_inet6", F_OK)      = 0
openat(AT_FDCWD</root>, "/proc/sys/net/ipv6/conf/all/disable_ipv6", O_RDONLY|O_NOCTTY|O_CLOEXEC) = 3</proc/sys/net/ipv6/conf/all/disable_ipv6>
fstat(3</proc/sys/net/ipv6/conf/all/disable_ipv6>, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
read(3</proc/sys/net/ipv6/conf/all/disable_ipv6>, "0\n", 4104) = 2
close(3</proc/sys/net/ipv6/conf/all/disable_ipv6>) = 0
uname({sysname="Linux", nodename="desktop.casa.g02.org", ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
openat(AT_FDCWD</root>, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3</etc/ld.so.cache>
fstat(3</etc/ld.so.cache>, {st_mode=S_IFREG|0644, st_size=126855, ...}) = 0
mmap(NULL, 126855, PROT_READ, MAP_PRIVATE, 3</etc/ld.so.cache>, 0) = 0x7ff87e53a000
close(3</etc/ld.so.cache>)              = 0
openat(AT_FDCWD</root>, "/lib64/libnss_libvirt.so.2", O_RDONLY|O_CLOEXEC) = 3</usr/lib64/libnss_libvirt.so.2>
read(3</usr/lib64/libnss_libvirt.so.2>, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3</usr/lib64/libnss_libvirt.so.2>, {st_mode=S_IFREG|0755, st_size=19648, ...}) = 0
mmap(NULL, 16392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3</usr/lib64/libnss_libvirt.so.2>, 0) = 0x7ff87e2dd000
mmap(0x7ff87e2df000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libnss_libvirt.so.2>, 0x2000) = 0x7ff87e2df000
mmap(0x7ff87e2e0000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libnss_libvirt.so.2>, 0x3000) = 0x7ff87e2e0000
mmap(0x7ff87e2e1000, 8, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff87e2e1000
close(3</usr/lib64/libnss_libvirt.so.2>) = 0
openat(AT_FDCWD</root>, "/lib64/libjson-c.so.5", O_RDONLY|O_CLOEXEC) = 3</usr/lib64/libjson-c.so.5.4.0>
read(3</usr/lib64/libjson-c.so.5.4.0>, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3</usr/lib64/libjson-c.so.5.4.0>, {st_mode=S_IFREG|0755, st_size=83496, ...}) = 0
mmap(NULL, 82416, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3</usr/lib64/libjson-c.so.5.4.0>, 0) = 0x7ff87e2c8000
mmap(0x7ff87e2d4000, 28672, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libjson-c.so.5.4.0>, 0xc000) = 0x7ff87e2d4000
mmap(0x7ff87e2db000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libjson-c.so.5.4.0>, 0x12000) = 0x7ff87e2db000
close(3</usr/lib64/libjson-c.so.5.4.0>) = 0
mprotect(0x7ff87e2db000, 4096, PROT_READ) = 0
mprotect(0x7ff87e2e0000, 4096, PROT_READ) = 0
munmap(0x7ff87e53a000, 126855)          = 0
openat(AT_FDCWD</root>, "/var/lib/libvirt/dnsmasq/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3</var/lib/libvirt/dnsmasq>
fstat(3</var/lib/libvirt/dnsmasq>, {st_mode=S_IFDIR|0755, st_size=422, ...}) = 0
getdents64(3</var/lib/libvirt/dnsmasq>, 0x5566e801f990 /* 16 entries */, 32768) = 592
getdents64(3</var/lib/libvirt/dnsmasq>, 0x5566e801f990 /* 0 entries */, 32768) = 0
close(3</var/lib/libvirt/dnsmasq>)      = 0
openat(AT_FDCWD</root>, "/var/lib/libvirt/dnsmasq//virbr1.status", O_RDONLY) = 3</var/lib/libvirt/dnsmasq/virbr1.status>
read(3</var/lib/libvirt/dnsmasq/virbr1.status>, "", 1024) = 0
close(3</var/lib/libvirt/dnsmasq/virbr1.status>) = 0
openat(AT_FDCWD</root>, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3</etc/ld.so.cache>
fstat(3</etc/ld.so.cache>, {st_mode=S_IFREG|0644, st_size=126855, ...}) = 0
mmap(NULL, 126855, PROT_READ, MAP_PRIVATE, 3</etc/ld.so.cache>, 0) = 0x7ff87e53a000
close(3</etc/ld.so.cache>)              = 0
openat(AT_FDCWD</root>, "/lib64/libnss_libvirt_guest.so.2", O_RDONLY|O_CLOEXEC) = 3</usr/lib64/libnss_libvirt_guest.so.2>
read(3</usr/lib64/libnss_libvirt_guest.so.2>, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3</usr/lib64/libnss_libvirt_guest.so.2>, {st_mode=S_IFREG|0755, st_size=19656, ...}) = 0
mmap(NULL, 16392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3</usr/lib64/libnss_libvirt_guest.so.2>, 0) = 0x7ff87e2c3000
mmap(0x7ff87e2c5000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libnss_libvirt_guest.so.2>, 0x2000) = 0x7ff87e2c5000
mmap(0x7ff87e2c6000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libnss_libvirt_guest.so.2>, 0x3000) = 0x7ff87e2c6000
mmap(0x7ff87e2c7000, 8, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff87e2c7000
close(3</usr/lib64/libnss_libvirt_guest.so.2>) = 0
mprotect(0x7ff87e2c6000, 4096, PROT_READ) = 0
munmap(0x7ff87e53a000, 126855)          = 0
openat(AT_FDCWD</root>, "/var/lib/libvirt/dnsmasq/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3</var/lib/libvirt/dnsmasq>
fstat(3</var/lib/libvirt/dnsmasq>, {st_mode=S_IFDIR|0755, st_size=422, ...}) = 0
getdents64(3</var/lib/libvirt/dnsmasq>, 0x5566e8027a30 /* 16 entries */, 32768) = 592
openat(AT_FDCWD</root>, "/var/lib/libvirt/dnsmasq//virbr2.macs", O_RDONLY) = 4</var/lib/libvirt/dnsmasq/virbr2.macs>
read(4</var/lib/libvirt/dnsmasq/virbr2.macs>, "[]\n", 1024) = 3
close(4</var/lib/libvirt/dnsmasq/virbr2.macs>) = 0
openat(AT_FDCWD</root>, "/var/lib/libvirt/dnsmasq//virbr0.macs", O_RDONLY) = 4</var/lib/libvirt/dnsmasq/virbr0.macs>
read(4</var/lib/libvirt/dnsmasq/virbr0.macs>, "[\n  {\n    \"domain\": \"cs10\",\n    "..., 1024) = 80
close(4</var/lib/libvirt/dnsmasq/virbr0.macs>) = 0
getdents64(3</var/lib/libvirt/dnsmasq>, 0x5566e8027a30 /* 0 entries */, 32768) = 0
close(3</var/lib/libvirt/dnsmasq>)      = 0
openat(AT_FDCWD</root>, "/var/lib/libvirt/dnsmasq//virbr1.status", O_RDONLY) = 3</var/lib/libvirt/dnsmasq/virbr1.status>
read(3</var/lib/libvirt/dnsmasq/virbr1.status>, "", 1024) = 0
close(3</var/lib/libvirt/dnsmasq/virbr1.status>) = 0
openat(AT_FDCWD</root>, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3</etc/ld.so.cache>
fstat(3</etc/ld.so.cache>, {st_mode=S_IFREG|0644, st_size=126855, ...}) = 0
mmap(NULL, 126855, PROT_READ, MAP_PRIVATE, 3</etc/ld.so.cache>, 0) = 0x7ff87e53a000
close(3</etc/ld.so.cache>)              = 0
openat(AT_FDCWD</root>, "/lib64/libnss_resolve.so.2", O_RDONLY|O_CLOEXEC) = 3</usr/lib64/libnss_resolve.so.2>
read(3</usr/lib64/libnss_resolve.so.2>, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3</usr/lib64/libnss_resolve.so.2>, {st_mode=S_IFREG|0755, st_size=207576, ...}) = 0
mmap(NULL, 207176, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3</usr/lib64/libnss_resolve.so.2>, 0) = 0x7ff87e290000
mmap(0x7ff87e2b4000, 49152, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libnss_resolve.so.2>, 0x24000) = 0x7ff87e2b4000
mmap(0x7ff87e2c0000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libnss_resolve.so.2>, 0x2f000) = 0x7ff87e2c0000
close(3</usr/lib64/libnss_resolve.so.2>) = 0
openat(AT_FDCWD</root>, "/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3</usr/lib64/libm.so.6>
read(3</usr/lib64/libm.so.6>, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3</usr/lib64/libm.so.6>, {st_mode=S_IFREG|0755, st_size=984352, ...}) = 0
mmap(NULL, 970768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3</usr/lib64/libm.so.6>, 0) = 0x7ff870312000
mmap(0x7ff87038e000, 458752, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libm.so.6>, 0x7c000) = 0x7ff87038e000
mmap(0x7ff8703fe000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3</usr/lib64/libm.so.6>, 0xeb000) = 0x7ff8703fe000
close(3</usr/lib64/libm.so.6>)          = 0
mprotect(0x7ff8703fe000, 4096, PROT_READ) = 0
mprotect(0x7ff87e2c0000, 8192, PROT_READ) = 0
munmap(0x7ff87e53a000, 126855)          = 0
rt_sigprocmask(SIG_BLOCK, [HUP USR1 USR2 PIPE ALRM CHLD TSTP URG VTALRM PROF WINCH IO], [], 8) = 0
futex(0x7ff87e2c20cc, FUTEX_WAKE_PRIVATE, 2147483647) = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3<UNIX-STREAM:[1211886]>
connect(3<UNIX-STREAM:[1211886]>, {sa_family=AF_UNIX, sun_path="/run/systemd/resolve/io.systemd.Resolve"}, 42) = 0
sendto(3<UNIX-STREAM:[1211886->1206656]>, "{\"method\":\"io.systemd.Resolve.Re"..., 99, MSG_DONTWAIT|MSG_NOSIGNAL, NULL, 0) = 99
mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff8702f1000
recvfrom(3<UNIX-STREAM:[1211886->1206656]>, 0x7ff8702f1010, 135152, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
ppoll([{fd=3<UNIX-STREAM:[1211886->1206656]>, events=POLLIN}], 1, {tv_sec=119, tv_nsec=999928000}, NULL, 8) = 1 ([{fd=3, revents=POLLIN}], left {tv_sec=116, tv_nsec=730739961})
recvfrom(3<UNIX-STREAM:[1211886->1206656]>, "{\"error\":\"io.systemd.Resolve.NoN"..., 135152, MSG_DONTWAIT, NULL, NULL) = 61
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
close(3<UNIX-STREAM:[1211886->1206656]>) = 0
munmap(0x7ff8702f1000, 135168)          = 0
newfstatat(AT_FDCWD</root>, "/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=931, ...}, 0) = 0
newfstatat(AT_FDCWD</root>, "/etc/nsswitch.conf", {st_mode=S_IFREG|0644, st_size=677, ...}, 0) = 0
openat(AT_FDCWD</root>, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 3</etc/hosts>
fstat(3</etc/hosts>, {st_mode=S_IFREG|0644, st_size=518, ...}) = 0
lseek(3</etc/hosts>, 0, SEEK_SET)       = 0
read(3</etc/hosts>, "# Loopback entries; do not chang"..., 4096) = 518
read(3</etc/hosts>, "", 4096)           = 0
close(3</etc/hosts>)                    = 0
rt_sigprocmask(SIG_BLOCK, [HUP USR1 USR2 PIPE ALRM CHLD TSTP URG VTALRM PROF WINCH IO], [], 8) = 0
uname({sysname="Linux", nodename="desktop.casa.g02.org", ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
openat(AT_FDCWD</root>, "/var/lib/libvirt/dnsmasq/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3</var/lib/libvirt/dnsmasq>
fstat(3</var/lib/libvirt/dnsmasq>, {st_mode=S_IFDIR|0755, st_size=422, ...}) = 0
getdents64(3</var/lib/libvirt/dnsmasq>, 0x5566e8027a30 /* 16 entries */, 32768) = 592
getdents64(3</var/lib/libvirt/dnsmasq>, 0x5566e8027a30 /* 0 entries */, 32768) = 0
close(3</var/lib/libvirt/dnsmasq>)      = 0
openat(AT_FDCWD</root>, "/var/lib/libvirt/dnsmasq//virbr1.status", O_RDONLY) = 3</var/lib/libvirt/dnsmasq/virbr1.status>
read(3</var/lib/libvirt/dnsmasq/virbr1.status>, "", 1024) = 0
close(3</var/lib/libvirt/dnsmasq/virbr1.status>) = 0
openat(AT_FDCWD</root>, "/var/lib/libvirt/dnsmasq/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3</var/lib/libvirt/dnsmasq>
fstat(3</var/lib/libvirt/dnsmasq>, {st_mode=S_IFDIR|0755, st_size=422, ...}) = 0
getdents64(3</var/lib/libvirt/dnsmasq>, 0x5566e8027a30 /* 16 entries */, 32768) = 592
openat(AT_FDCWD</root>, "/var/lib/libvirt/dnsmasq//virbr2.macs", O_RDONLY) = 4</var/lib/libvirt/dnsmasq/virbr2.macs>
read(4</var/lib/libvirt/dnsmasq/virbr2.macs>, "[]\n", 1024) = 3
close(4</var/lib/libvirt/dnsmasq/virbr2.macs>) = 0
openat(AT_FDCWD</root>, "/var/lib/libvirt/dnsmasq//virbr0.macs", O_RDONLY) = 4</var/lib/libvirt/dnsmasq/virbr0.macs>
read(4</var/lib/libvirt/dnsmasq/virbr0.macs>, "[\n  {\n    \"domain\": \"cs10\",\n    "..., 1024) = 80
close(4</var/lib/libvirt/dnsmasq/virbr0.macs>) = 0
getdents64(3</var/lib/libvirt/dnsmasq>, 0x5566e8027a30 /* 0 entries */, 32768) = 0
close(3</var/lib/libvirt/dnsmasq>)      = 0
openat(AT_FDCWD</root>, "/var/lib/libvirt/dnsmasq//virbr1.status", O_RDONLY) = 3</var/lib/libvirt/dnsmasq/virbr1.status>
read(3</var/lib/libvirt/dnsmasq/virbr1.status>, "", 1024) = 0
close(3</var/lib/libvirt/dnsmasq/virbr1.status>) = 0
rt_sigprocmask(SIG_BLOCK, [HUP USR1 USR2 PIPE ALRM CHLD TSTP URG VTALRM PROF WINCH IO], [], 8) = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3<UNIX-STREAM:[1211888]>
connect(3<UNIX-STREAM:[1211888]>, {sa_family=AF_UNIX, sun_path="/run/systemd/resolve/io.systemd.Resolve"}, 42) = 0
sendto(3<UNIX-STREAM:[1211888]>, "{\"method\":\"io.systemd.Resolve.Re"..., 98, MSG_DONTWAIT|MSG_NOSIGNAL, NULL, 0) = 98
brk(0x5566e8068000)                     = 0x5566e8068000
recvfrom(3<UNIX-STREAM:[1211888->1204982]>, 0x5566e8027a00, 131080, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
ppoll([{fd=3<UNIX-STREAM:[1211888->1204982]>, events=POLLIN}], 1, {tv_sec=119, tv_nsec=999892000}, NULL, 8) = 1 ([{fd=3, revents=POLLIN}], left {tv_sec=116, tv_nsec=251793116})
recvfrom(3<UNIX-STREAM:[1211888->1204982]>, "{\"error\":\"io.systemd.Resolve.DNS"..., 131080, MSG_DONTWAIT, NULL, NULL) = 65
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
close(3<UNIX-STREAM:[1211888->1204982]>) = 0
exit_group(2)                           = ?
+++ exited with 2 +++


root@desktop ~# grep libvirt /etc/nsswitch.conf
hosts:      files myhostname libvirt libvirt_guest resolve [!UNAVAIL=return] dns

Comment 4 Renich Bon Ciric 2025-06-14 18:21:23 UTC
OK. I managed to fix it. 

First, I took a look at the strace and saw it was accesing files at /var/lib/libvirt/dnsmasq so I took a look:

root@desktop ~# ll /var/lib/libvirt/dnsmasq
total 28
-rw-r--r--. 1 root root   0 Jun 14 12:08 default.addnhosts
-rw-------. 1 root root 598 Jun 13 12:19 default.conf
-rw-r--r--. 1 root root   0 Jun 14 12:08 default.hostsfile
-rw-r--r--. 1 root root   0 Jun 14 12:08 mk-minikube.addnhosts
-rw-------. 1 root root 600 Jun 13 12:19 mk-minikube.conf
-rw-r--r--. 1 root root   0 Jun 14 12:08 mk-minikube.hostsfile
-rw-r--r--. 1 root root   0 Jun 14 12:08 private.addnhosts
-rw-------. 1 root root 665 Jun 13 12:19 private.conf
-rw-r--r--. 1 root root   0 Jun 14 12:08 private.hostsfile
-rw-r--r--. 1 root root  80 Jun 14 12:09 virbr0.macs
-rw-r--r--. 1 root root 184 Jun 14 12:09 virbr0.status
-rw-r--r--. 1 root root   0 Apr 16 19:44 virbr1.status
-rw-r--r--. 1 root root   3 Apr 22 02:19 virbr2.macs
-rw-r--r--. 1 root root   3 Apr 29 04:49 virbr2.status

There were some files that had an older acccess time. I decided to delete them since they might've been corrupt and restarted libvirt:

root@desktop ~# rm -f /var/lib/libvirt/dnsmasq/*
root@desktop ~# systemctl restart libvirtd

After that, I checked if the files were regenerated and then tried ping. It worked:

root@desktop ~# ll /var/lib/libvirt/dnsmasq/
total 4
-rw-r--r--. 1 root root   0 Jun 14 12:18 default.addnhosts
-rw-r--r--. 1 root root   0 Jun 14 12:18 default.hostsfile
-rw-r--r--. 1 root root   0 Jun 14 12:18 mk-minikube.addnhosts
-rw-r--r--. 1 root root   0 Jun 14 12:18 mk-minikube.hostsfile
-rw-r--r--. 1 root root   0 Jun 14 12:18 private.addnhosts
-rw-r--r--. 1 root root   0 Jun 14 12:18 private.hostsfile
-rw-r--r--. 1 root root 184 Jun 14 12:18 virbr0.status
root@desktop ~# ping cs10
PING cs10 (192.168.122.240) 56(84) bytes of data.
64 bytes from 192.168.122.240: icmp_seq=1 ttl=64 time=0.164 ms
64 bytes from 192.168.122.240: icmp_seq=2 ttl=64 time=0.112 ms
^C
--- cs10 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.112/0.138/0.164/0.026 ms


You may close this one now. Still, it's odd that this happened. I didn't learn how I got to that. One of the files might've been corrupt.

Comment 5 Michal Privoznik 2025-06-16 13:43:58 UTC
Yeah, if there's a corrupt json file somewhere, then whole NSS plugin stops working. I wonder if it makes sense to turn it into best effort mode where corrupted JSONs would be glanced over.

Comment 6 Renich Bon Ciric 2025-06-18 17:56:44 UTC
Gotta reopen this one. It keeps happening. Here's a debugging session:

renich@desktop ~$ virsh -c qemu:///system list --all
 Id   Name       State
---------------------------
 3    cs10       running
 -    id0        shut off
 -    minikube   shut off
 -    win11      shut off

renich@desktop ~$ getent hosts cs10

renich@desktop ~$ ls /var/lib/libvirt/dnsmasq/
default.addnhosts  default.hostsfile      mk-minikube.conf       private.addnhosts  private.hostsfile  virbr0.status  virbr2.status
default.conf       mk-minikube.addnhosts  mk-minikube.hostsfile  private.conf       virbr0.macs        virbr1.status

renich@desktop ~$ ls -l /var/lib/libvirt/dnsmasq/
total 20
-rw-r--r--. 1 root root   0 Jun 18 11:41 default.addnhosts
-rw-------. 1 root root 598 Jun 18 11:41 default.conf
-rw-r--r--. 1 root root   0 Jun 18 11:41 default.hostsfile
-rw-r--r--. 1 root root   0 Jun 18 11:41 mk-minikube.addnhosts
-rw-------. 1 root root 600 Jun 18 11:41 mk-minikube.conf
-rw-r--r--. 1 root root   0 Jun 18 11:41 mk-minikube.hostsfile
-rw-r--r--. 1 root root   0 Jun 18 11:41 private.addnhosts
-rw-------. 1 root root 665 Jun 18 11:41 private.conf
-rw-r--r--. 1 root root   0 Jun 18 11:41 private.hostsfile
-rw-r--r--. 1 root root  80 Jun 18 11:51 virbr0.macs
-rw-r--r--. 1 root root 184 Jun 18 11:52 virbr0.status
-rw-r--r--. 1 root root   0 Jun 18 11:41 virbr1.status
-rw-r--r--. 1 root root   0 Jun 18 11:41 virbr2.status

renich@desktop ~$ tar -caf $( date +%Y%m%d )-libvirt-dnsmasq.tar.gz /var/lib/libvirt/dnsmasq/*
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
tar: /var/lib/libvirt/dnsmasq/default.conf: Cannot open: Permission denied
tar: /var/lib/libvirt/dnsmasq/mk-minikube.conf: Cannot open: Permission denied
tar: /var/lib/libvirt/dnsmasq/private.conf: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors

renich@desktop ~$ sudo tar -caf $( date +%Y%m%d )-libvirt-dnsmasq.tar.gz /var/lib/libvirt/dnsmasq/*
[sudo] password for renich: 
Sorry, try again.
[sudo] password for renich: 
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets

renich@desktop ~$ tar -taf 20250618-libvirt-dnsmasq.tar.gz 
var/lib/libvirt/dnsmasq/default.addnhosts
var/lib/libvirt/dnsmasq/default.conf
var/lib/libvirt/dnsmasq/default.hostsfile
var/lib/libvirt/dnsmasq/mk-minikube.addnhosts
var/lib/libvirt/dnsmasq/mk-minikube.conf
var/lib/libvirt/dnsmasq/mk-minikube.hostsfile
var/lib/libvirt/dnsmasq/private.addnhosts
var/lib/libvirt/dnsmasq/private.conf
var/lib/libvirt/dnsmasq/private.hostsfile
var/lib/libvirt/dnsmasq/virbr0.macs
var/lib/libvirt/dnsmasq/virbr0.status
var/lib/libvirt/dnsmasq/virbr1.status
var/lib/libvirt/dnsmasq/virbr2.status

renich@desktop ~$ sudo rm -f /var/lib/libvirt/dnsmasq/*

renich@desktop ~$ sudo systemctl restart libvirtd

renich@desktop ~$ ls /var/lib/libvirt/dnsmasq/
default.addnhosts  default.hostsfile  mk-minikube.addnhosts  mk-minikube.hostsfile  private.addnhosts  private.hostsfile  virbr0.status

renich@desktop ~$ getent hosts cs10
192.168.124.240 cs10


I will attach the .tar.gz so that you can check it. This is odd.

Comment 7 Renich Bon Ciric 2025-06-18 17:57:18 UTC
Created attachment 2094255 [details]
dnsmasq files for a failing libvirt installation

Comment 8 Michal Privoznik 2025-06-19 13:20:10 UTC
I am unable to reproduce the failure with attached .tar.gz. Sorry. There are some empty .status files, but those are ignored (or at least should be).

BUT, I've written some additional patches on top, to enable debugging and built a scratch build:

  https://koji.fedoraproject.org/koji/taskinfo?taskID=134140588

I've also copied RPM over to:

  https://mprivozn.fedorapeople.org/rpms/nss/

can you please give it a try? What I'm interested in is logs of failed resolve. My patches introduce new environment variable:

  $ LIBVIRT_NSS_DEBUG=1 getent hosts mydomain

it'll print couple of lines onto stderr. Can you please attach them here when you reproduce this again? Thanks!

Comment 9 Renich Bon Ciric 2025-06-20 05:18:25 UTC
OK, here's what I did, for lack of a better technique:

# mirror your fedora user site (bad idea, it downloaded everything)
wget -m https://mprivozn.fedorapeople.org/rpms/nss/

# went to that directory and created a repo
cd mprivozn.fedorapeople.org/rpms/nss
createrepo .

# upgraded libvirt
dnf --repofrompath=local,. --repo=local --nogpgcheck upgrade libvirt-nss

# restarted libvirt
systemctl restart libvirtd

# started my guest
virsh start cs10

# verified
virsh list
 Id   Name   State
----------------------
 4    cs10   running



That, right there, was the setup. 

Now, to reproduce the bug. First cleanup and restart libvirt:

root@desktop ~# rm -f /var/lib/libvirt/dnsmasq/*
root@desktop ~# systemctl restart libvirtd

Now, I will test and it will work:

renich@desktop fedora$ LIBVIRT_NSS_DEBUG=1 getent hosts cs10
DEBUG libvirt_nss.c:findLease():127 : NSS module: libvirt
DEBUG libvirt_nss.c:findLease():141 : Dir: /var/lib/libvirt/dnsmasq/
DEBUG libvirt_nss_leases.c:findLeaseInJSON():236 : Found record for cs10
DEBUG libvirt_nss_leases.c:appendAddr():59 : IP address: 192.168.124.240
DEBUG libvirt_nss_leases.c:appendAddr():88 : Skipping address which family is 2, 10 requested
DEBUG libvirt_nss.c:findLease():196 : Found 0 addresses
DEBUG libvirt_nss.c:findLease():125 : NSS module: libvirt_guest
DEBUG libvirt_nss.c:findLease():141 : Dir: /var/lib/libvirt/dnsmasq/
DEBUG libvirt_nss.c:findLease():175 : Finding with 0 macs
DEBUG libvirt_nss.c:findLease():127 : NSS module: libvirt
DEBUG libvirt_nss.c:findLease():141 : Dir: /var/lib/libvirt/dnsmasq/
DEBUG libvirt_nss_leases.c:findLeaseInJSON():236 : Found record for cs10
DEBUG libvirt_nss_leases.c:appendAddr():59 : IP address: 192.168.124.240
DEBUG libvirt_nss.c:findLease():196 : Found 1 addresses
DEBUG libvirt_nss.c:_nss_libvirt_gethostbyname3_r():342 : Done idx:40 need:40
192.168.124.240 cs10

renich@desktop fedora$ ls -l /var/lib/libvirt/dnsmasq
total 4
-rw-r--r--. 1 root root   0 Jun 19 23:15 default.addnhosts
-rw-r--r--. 1 root root   0 Jun 19 23:15 default.hostsfile
-rw-r--r--. 1 root root   0 Jun 19 23:15 mk-minikube.addnhosts
-rw-r--r--. 1 root root   0 Jun 19 23:15 mk-minikube.hostsfile
-rw-r--r--. 1 root root   0 Jun 19 23:15 private.addnhosts
-rw-r--r--. 1 root root   0 Jun 19 23:15 private.hostsfile
-rw-r--r--. 1 root root 369 Jun 19 23:15 virbr0.status

Now, to trigger the bug, I will restart all my networks. This will create some conf files and, probably, corrupt the status files:

root@desktop ~# for net in default mk-minikube private; do virsh net-destroy $net; virsh net-start --network=$net; done
Network default destroyed

Network default started

Network mk-minikube destroyed

Network mk-minikube started

Network private destroyed

Network private started

renich@desktop fedora$ LIBVIRT_NSS_DEBUG=1 getent hosts cs10
DEBUG libvirt_nss.c:findLease():127 : NSS module: libvirt
DEBUG libvirt_nss.c:findLease():141 : Dir: /var/lib/libvirt/dnsmasq/
DEBUG libvirt_nss_leases.c:findLeaseInJSON():236 : Found record for cs10
DEBUG libvirt_nss_leases.c:appendAddr():59 : IP address: 192.168.124.240
DEBUG libvirt_nss_leases.c:appendAddr():88 : Skipping address which family is 2, 10 requested
ERROR libvirt_nss_leases.c:findLeases():297 : Cannot parse /var/lib/libvirt/dnsmasq//virbr2.status: incomplete json found : 
DEBUG libvirt_nss.c:findLease():125 : NSS module: libvirt_guest
DEBUG libvirt_nss.c:findLease():141 : Dir: /var/lib/libvirt/dnsmasq/
DEBUG libvirt_nss.c:findLease():175 : Finding with 0 macs
DEBUG libvirt_nss.c:findLease():127 : NSS module: libvirt
DEBUG libvirt_nss.c:findLease():141 : Dir: /var/lib/libvirt/dnsmasq/
DEBUG libvirt_nss_leases.c:findLeaseInJSON():236 : Found record for cs10
DEBUG libvirt_nss_leases.c:appendAddr():59 : IP address: 192.168.124.240
ERROR libvirt_nss_leases.c:findLeases():297 : Cannot parse /var/lib/libvirt/dnsmasq//virbr2.status: incomplete json found : 
DEBUG libvirt_nss.c:findLease():125 : NSS module: libvirt_guest
DEBUG libvirt_nss.c:findLease():141 : Dir: /var/lib/libvirt/dnsmasq/
DEBUG libvirt_nss.c:findLease():175 : Finding with 0 macs


And, finally, to make it work again, I just repeat step one; cleanup and restart libvirt:

root@desktop ~# rm -f /var/lib/libvirt/dnsmasq/*
root@desktop ~# systemctl restart libvirtd

renich@desktop fedora$ LIBVIRT_NSS_DEBUG=1 getent hosts cs10
DEBUG libvirt_nss.c:findLease():127 : NSS module: libvirt
DEBUG libvirt_nss.c:findLease():141 : Dir: /var/lib/libvirt/dnsmasq/
DEBUG libvirt_nss_leases.c:findLeaseInJSON():236 : Found record for cs10
DEBUG libvirt_nss_leases.c:appendAddr():59 : IP address: 192.168.124.240
DEBUG libvirt_nss_leases.c:appendAddr():88 : Skipping address which family is 2, 10 requested
DEBUG libvirt_nss.c:findLease():196 : Found 0 addresses
DEBUG libvirt_nss.c:findLease():125 : NSS module: libvirt_guest
DEBUG libvirt_nss.c:findLease():141 : Dir: /var/lib/libvirt/dnsmasq/
DEBUG libvirt_nss.c:findLease():175 : Finding with 0 macs
DEBUG libvirt_nss.c:findLease():127 : NSS module: libvirt
DEBUG libvirt_nss.c:findLease():141 : Dir: /var/lib/libvirt/dnsmasq/
DEBUG libvirt_nss_leases.c:findLeaseInJSON():236 : Found record for cs10
DEBUG libvirt_nss_leases.c:appendAddr():59 : IP address: 192.168.124.240
DEBUG libvirt_nss.c:findLease():196 : Found 1 addresses
DEBUG libvirt_nss.c:_nss_libvirt_gethostbyname3_r():342 : Done idx:40 need:40
192.168.124.240 cs10

I hope that helps. Let me know if I can provide anything else.

Comment 10 Renich Bon Ciric 2025-06-20 05:20:14 UTC
It seems that something corrupts virbr2. Here's the content of it:

<network>
  <name>mk-minikube</name>
  <uuid>a0810d19-b82d-43f2-b468-0a5e034815c9</uuid>
  <bridge name="virbr2" stp="on" delay="0"/>
  <mac address="52:54:00:c4:7c:17"/>
  <dns enable="no"/>
  <ip address="192.168.39.1" netmask="255.255.255.0">
    <dhcp>
      <range start="192.168.39.2" end="192.168.39.253"/>
    </dhcp>
  </ip>
</network>

Comment 11 Renich Bon Ciric 2025-06-20 05:21:28 UTC
err.. I meant something corrupts virbr2's status file: 

root@desktop ~# cat /var/lib/libvirt/dnsmasq/virbr2.status
root@desktop ~# 

It's empty.

Comment 12 Michal Privoznik 2025-06-24 10:13:46 UTC
AAgrh. I was looking at current master not realizing the following commit wasn't backported into F42:

https://gitlab.com/libvirt/libvirt/-/commit/63a3d70697dc44ef2f8b40f7c8e9aa869227a7da

that explains why an empty file makes NSS module fail. I've done another scratch build for you with the fix backported and even more debug messages:

https://koji.fedoraproject.org/koji/taskinfo?taskID=134350546

I've copied RPMs here:

https://mprivozn.fedorapeople.org/rpms/nss2/

Comment 13 Renich Bon Ciric 2025-07-01 00:19:34 UTC
I couldn't update using that repo because of the current release, which is -3. 

renich@desktop fedora$ dnf list --installed "libvirt*"
Installed packages
libvirt-client.x86_64                             11.0.0-3.fc42 updates
libvirt-daemon.x86_64                             11.0.0-3.fc42 updates
libvirt-daemon-common.x86_64                      11.0.0-3.fc42 updates
libvirt-daemon-config-network.x86_64              11.0.0-3.fc42 updates
libvirt-daemon-driver-interface.x86_64            11.0.0-3.fc42 updates
libvirt-daemon-driver-network.x86_64              11.0.0-3.fc42 updates
libvirt-daemon-driver-nodedev.x86_64              11.0.0-3.fc42 updates
libvirt-daemon-driver-nwfilter.x86_64             11.0.0-3.fc42 updates
libvirt-daemon-driver-qemu.x86_64                 11.0.0-3.fc42 updates
libvirt-daemon-driver-secret.x86_64               11.0.0-3.fc42 updates
libvirt-daemon-driver-storage.x86_64              11.0.0-3.fc42 updates
libvirt-daemon-driver-storage-core.x86_64         11.0.0-3.fc42 updates
libvirt-daemon-driver-storage-disk.x86_64         11.0.0-3.fc42 updates
libvirt-daemon-driver-storage-gluster.x86_64      11.0.0-3.fc42 updates
libvirt-daemon-driver-storage-iscsi.x86_64        11.0.0-3.fc42 updates
libvirt-daemon-driver-storage-iscsi-direct.x86_64 11.0.0-3.fc42 updates
libvirt-daemon-driver-storage-logical.x86_64      11.0.0-3.fc42 updates
libvirt-daemon-driver-storage-mpath.x86_64        11.0.0-3.fc42 updates
libvirt-daemon-driver-storage-rbd.x86_64          11.0.0-3.fc42 updates
libvirt-daemon-driver-storage-scsi.x86_64         11.0.0-3.fc42 updates
libvirt-daemon-driver-storage-zfs.x86_64          11.0.0-3.fc42 updates
libvirt-daemon-kvm.x86_64                         11.0.0-3.fc42 updates
libvirt-daemon-lock.x86_64                        11.0.0-3.fc42 updates
libvirt-daemon-log.x86_64                         11.0.0-3.fc42 updates
libvirt-daemon-plugin-lockd.x86_64                11.0.0-3.fc42 updates
libvirt-daemon-proxy.x86_64                       11.0.0-3.fc42 updates
libvirt-glib.x86_64                               5.0.0-6.fc42  fedora
libvirt-libs.x86_64                               11.0.0-3.fc42 updates
libvirt-nss.x86_64                                11.0.0-3.fc42 updates
libvirt-ssh-proxy.x86_64                          11.0.0-3.fc42 updates

I tried removing everything and installing, but it didn't let me. 



renich@desktop fedora$ su -
Password: 
Last login: Fri Jun 27 01:37:32 CST 2025 on pts/0

root@desktop ~# dnf remove "*libvirt*"
No packages to remove for argument: *libvirt*

Nothing to do.

root@desktop ~# 
logout

renich@desktop fedora$ sudo dnf --repofrompath=local,. --repo=local --nogpgcheck install libvirt libvirt-nss libvirt-libs
Updating and loading repositories:
Repositories loaded.
Failed to resolve the transaction:
Problem 1: conflicting requests
  - nothing provides libwsman.so.1()(64bit) needed by libvirt-libs-11.0.0-3.fc42.x86_64 from local
  - nothing provides libwsman_client.so.5()(64bit) needed by libvirt-libs-11.0.0-3.fc42.x86_64 from local
  - nothing provides libwsman_curl_client_transport.so.1()(64bit) needed by libvirt-libs-11.0.0-3.fc42.x86_64 from local
 Problem 2: package libvirt-11.0.0-3.fc42.x86_64 from local requires libvirt-libs = 11.0.0-3.fc42, but none of the providers can be installed
  - conflicting requests
  - nothing provides libwsman.so.1()(64bit) needed by libvirt-libs-11.0.0-3.fc42.x86_64 from local
  - nothing provides libwsman_client.so.5()(64bit) needed by libvirt-libs-11.0.0-3.fc42.x86_64 from local
  - nothing provides libwsman_curl_client_transport.so.1()(64bit) needed by libvirt-libs-11.0.0-3.fc42.x86_64 from local
 Problem 3: package libvirt-nss-11.0.0-3.fc42.x86_64 from local requires libvirt-daemon-driver-network = 11.0.0-3.fc42, but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0()(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_PRIVATE_11.0.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.1.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.0.3)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.0.6)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.1.1)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.6.1)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.0.2)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt-lxc.so.0()(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.7.3)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.9.3)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt-lxc.so.0(LIBVIRT_LXC_1.0.2)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt-qemu.so.0()(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.4.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.9.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_4.5.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt-qemu.so.0(LIBVIRT_QEMU_0.10.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt-qemu.so.0(LIBVIRT_QEMU_0.8.3)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt-qemu.so.0(LIBVIRT_QEMU_0.9.4)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt-qemu.so.0(LIBVIRT_QEMU_1.2.3)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt-qemu.so.0(LIBVIRT_QEMU_8.2.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.1.4)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.1.5)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.1.9)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.10.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.10.2)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.2.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.2.1)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.2.3)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.3.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.3.2)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.3.3)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.4.1)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.4.5)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.5.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.6.3)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.6.4)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.7.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.7.1)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.7.2)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.7.5)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.7.7)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.8.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.8.1)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.8.2)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.8.5)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.8.6)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.8.8)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.9.10)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.9.11)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.9.13)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.9.2)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.9.4)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.9.5)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.9.7)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.9.8)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.9.9)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.0.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.0.1)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.0.3)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.0.5)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.1.1)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.1.3)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.2.1)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.2.11)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.2.12)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.2.14)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.2.15)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.2.16)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.2.19)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.2.3)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.2.5)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.2.6)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.2.7)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.2.8)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.2.9)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_1.3.3)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_10.1.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_10.2.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_2.0.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_2.2.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_3.0.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_3.1.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_3.4.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_3.7.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_3.9.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_4.10.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_4.4.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_5.10.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_5.2.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_5.5.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_5.6.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_5.7.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_6.0.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_6.10.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_7.1.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_7.2.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_7.3.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_7.7.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_7.8.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_8.0.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_8.5.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_9.0.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_9.7.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.0.5)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_0.4.2)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_4.1.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_5.8.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt.so.0(LIBVIRT_8.4.0)(64bit), but none of the providers can be installed
  - package libvirt-daemon-driver-network-11.0.0-3.fc42.x86_64 from local requires libvirt-libs = 11.0.0-3.fc42, but none of the providers can be installed
  - conflicting requests
  - nothing provides libwsman.so.1()(64bit) needed by libvirt-libs-11.0.0-3.fc42.x86_64 from local
  - nothing provides libwsman_client.so.5()(64bit) needed by libvirt-libs-11.0.0-3.fc42.x86_64 from local
  - nothing provides libwsman_curl_client_transport.so.1()(64bit) needed by libvirt-libs-11.0.0-3.fc42.x86_64 from local
You can try to add to command line:
  --skip-broken to skip uninstallable packages


renich@desktop fedora$ sudo dnf install @virtualization libvirt-nss virt-manager
Updating and loading repositories:
Repositories loaded.
Package "qemu-kvm-2:9.2.4-1.fc42.x86_64" is already installed.

Package                                                         Arch           Version                                                          Repository                               Size
Installing:
 libvirt-nss                                                    x86_64         11.0.0-3.fc42                                                    updates                              38.5 KiB
 virt-manager                                                   noarch         5.0.0-2.fc42                                                     fedora                                3.5 MiB
Installing group/module packages:
 libvirt-daemon-config-network                                  x86_64         11.0.0-3.fc42                                                    updates                             470.0   B
 libvirt-daemon-kvm                                             x86_64         11.0.0-3.fc42                                                    updates                               0.0   B
 virt-install                                                   noarch         5.0.0-2.fc42                                                     fedora                               34.7 KiB
 virt-viewer                                                    x86_64         11.0-15.fc42                                                     fedora                                1.2 MiB
Installing dependencies:
 fuse-libs                                                      x86_64         2.9.9-23.fc42                                                    fedora                              305.1 KiB
 glusterfs                                                      x86_64         11.1-8.fc42                                                      fedora                                2.6 MiB
 glusterfs-cli                                                  x86_64         11.1-8.fc42                                                      fedora                              462.3 KiB
 glusterfs-fuse                                                 x86_64         11.1-8.fc42                                                      fedora                              528.8 KiB
 gnutls-utils                                                   x86_64         3.8.9-3.fc42                                                     fedora                                1.3 MiB
 iproute-tc                                                     x86_64         6.12.0-3.fc42                                                    fedora                              903.0 KiB
 kf5-filesystem                                                 x86_64         5.116.0-4.fc42                                                   fedora                                1.4 KiB
 libburn                                                        x86_64         1.5.6-6.fc42                                                     fedora                              357.5 KiB
 libisoburn                                                     x86_64         1.5.6-7.fc42                                                     fedora                                1.1 MiB
 libisofs                                                       x86_64         1.5.6-6.fc42                                                     fedora                              508.3 KiB
 libnbd                                                         x86_64         1.22.2-1.fc42                                                    updates                             446.3 KiB
 libphodav                                                      x86_64         3.0-11.fc42                                                      fedora                              140.8 KiB
 libtpms                                                        x86_64         0.10.1-1.fc42                                                    updates                               1.0 MiB
 libvirt-client                                                 x86_64         11.0.0-3.fc42                                                    updates                             965.1 KiB
 libvirt-daemon-common                                          x86_64         11.0.0-3.fc42                                                    updates                             327.3 KiB
 libvirt-daemon-driver-interface                                x86_64         11.0.0-3.fc42                                                    updates                             750.3 KiB
 libvirt-daemon-driver-network                                  x86_64         11.0.0-3.fc42                                                    updates                             880.2 KiB
 libvirt-daemon-driver-nodedev                                  x86_64         11.0.0-3.fc42                                                    updates                             815.0 KiB
 libvirt-daemon-driver-nwfilter                                 x86_64         11.0.0-3.fc42                                                    updates                             840.0 KiB
 libvirt-daemon-driver-qemu                                     x86_64         11.0.0-3.fc42                                                    updates                               2.8 MiB
 libvirt-daemon-driver-secret                                   x86_64         11.0.0-3.fc42                                                    updates                             742.1 KiB
 libvirt-daemon-driver-storage                                  x86_64         11.0.0-3.fc42                                                    updates                               0.0   B
 libvirt-daemon-driver-storage-core                             x86_64         11.0.0-3.fc42                                                    updates                             907.2 KiB
 libvirt-daemon-driver-storage-disk                             x86_64         11.0.0-3.fc42                                                    updates                              27.8 KiB
 libvirt-daemon-driver-storage-gluster                          x86_64         11.0.0-3.fc42                                                    updates                              35.2 KiB
 libvirt-daemon-driver-storage-iscsi                            x86_64         11.0.0-3.fc42                                                    updates                              19.7 KiB
 libvirt-daemon-driver-storage-iscsi-direct                     x86_64         11.0.0-3.fc42                                                    updates                              27.8 KiB
 libvirt-daemon-driver-storage-logical                          x86_64         11.0.0-3.fc42                                                    updates                              27.9 KiB
 libvirt-daemon-driver-storage-mpath                            x86_64         11.0.0-3.fc42                                                    updates                              15.6 KiB
 libvirt-daemon-driver-storage-rbd                              x86_64         11.0.0-3.fc42                                                    updates                              40.0 KiB
 libvirt-daemon-driver-storage-scsi                             x86_64         11.0.0-3.fc42                                                    updates                              19.7 KiB
 libvirt-daemon-driver-storage-zfs                              x86_64         11.0.0-3.fc42                                                    updates                              19.7 KiB
 libvirt-daemon-lock                                            x86_64         11.0.0-3.fc42                                                    updates                              99.6 KiB
 libvirt-daemon-log                                             x86_64         11.0.0-3.fc42                                                    updates                             106.4 KiB
 libvirt-daemon-plugin-lockd                                    x86_64         11.0.0-3.fc42                                                    updates                              27.7 KiB
 libvirt-daemon-proxy                                           x86_64         11.0.0-3.fc42                                                    updates                             724.2 KiB
 libvirt-glib                                                   x86_64         5.0.0-6.fc42                                                     fedora                              132.6 KiB
 libvirt-libs                                                   x86_64         11.0.0-3.fc42                                                    updates                              27.2 MiB
 libvirt-ssh-proxy                                              x86_64         11.0.0-3.fc42                                                    updates                              19.9 KiB
 libwsman1                                                      x86_64         2.7.2-12.fc42                                                    fedora                              355.0 KiB
 mdevctl                                                        x86_64         1.4.0-1.fc42                                                     fedora                                2.5 MiB
 nbdkit-basic-filters                                           x86_64         1.42.4-1.fc42                                                    updates                             852.2 KiB
 nbdkit-basic-plugins                                           x86_64         1.42.4-1.fc42                                                    updates                             455.2 KiB
 nbdkit-selinux                                                 noarch         1.42.4-1.fc42                                                    updates                              16.5 KiB
 nbdkit-server                                                  x86_64         1.42.4-1.fc42                                                    updates                             232.4 KiB
 numad                                                          x86_64         0.5-46.20150602git.fc42                                          fedora                               55.8 KiB
 python3-libvirt                                                x86_64         11.0.0-1.fc42                                                    fedora                                2.0 MiB
 python3-libxml2                                                x86_64         2.12.10-1.fc42                                                   fedora                                1.2 MiB
 spice-glib                                                     x86_64         0.42-6.fc42                                                      fedora                                1.2 MiB
 spice-gtk3                                                     x86_64         0.42-6.fc42                                                      fedora                              281.9 KiB
 swtpm                                                          x86_64         0.10.1-1.fc42                                                    updates                              53.2 KiB
 swtpm-libs                                                     x86_64         0.10.1-1.fc42                                                    updates                             132.3 KiB
 swtpm-selinux                                                  noarch         0.10.1-1.fc42                                                    updates                             252.4 KiB
 swtpm-tools                                                    x86_64         0.10.1-1.fc42                                                    updates                             274.1 KiB
 virt-manager-common                                            noarch         5.0.0-2.fc42                                                     fedora                                6.2 MiB
 xorriso                                                        x86_64         1.5.6-7.fc42                                                     fedora                              341.6 KiB
 zfs-fuse                                                       x86_64         0.7.2.2-32.fc42                                                  fedora                                6.8 MiB
Installing weak dependencies:
 libvirt-daemon                                                 x86_64         11.0.0-3.fc42                                                    updates                             726.4 KiB
 nbdkit                                                         x86_64         1.42.4-1.fc42                                                    updates                               0.0   B
 nbdkit-curl-plugin                                             x86_64         1.42.4-1.fc42                                                    updates                              58.0 KiB
 nbdkit-ssh-plugin                                              x86_64         1.42.4-1.fc42                                                    updates                              41.5 KiB
Installing groups:
 Virtualization                                                                                                                                                                              

Transaction Summary:
 Installing:        67 packages

Total size of inbound packages is 19 MiB. Need to download 19 MiB.
After this operation, 76 MiB extra will be used (install 76 MiB, remove 0 B).
Is this ok [y/N]: y
[ 1/67] virt-install-0:5.0.0-2.fc42.noarch                                                                                                           100% |  73.0 KiB/s |  41.3 KiB |  00m01s
[ 2/67] libvirt-glib-0:5.0.0-6.fc42.x86_64                                                                                                           100% |  93.4 KiB/s |  53.4 KiB |  00m01s
[ 3/67] spice-glib-0:0.42-6.fc42.x86_64                                                                                                              100% | 512.1 KiB/s | 361.0 KiB |  00m01s
[ 4/67] spice-gtk3-0:0.42-6.fc42.x86_64                                                                                                              100% |  88.7 KiB/s |  65.6 KiB |  00m01s
[ 5/67] kf5-filesystem-0:5.116.0-4.fc42.x86_64                                                                                                       100% |  55.6 KiB/s |  11.1 KiB |  00m00s
[ 6/67] virt-viewer-0:11.0-15.fc42.x86_64                                                                                                            100% | 383.0 KiB/s | 302.1 KiB |  00m01s
[ 7/67] virt-manager-common-0:5.0.0-2.fc42.noarch                                                                                                    100% |   1.5 MiB/s |   1.2 MiB |  00m01s
[ 8/67] libisoburn-0:1.5.6-7.fc42.x86_64                                                                                                             100% |   1.8 MiB/s | 429.3 KiB |  00m00s
[ 9/67] libphodav-0:3.0-11.fc42.x86_64                                                                                                               100% | 148.9 KiB/s |  64.3 KiB |  00m00s
[10/67] python3-libxml2-0:2.12.10-1.fc42.x86_64                                                                                                      100% | 219.9 KiB/s | 224.7 KiB |  00m01s
[11/67] virt-manager-0:5.0.0-2.fc42.noarch                                                                                                           100% | 687.4 KiB/s | 709.4 KiB |  00m01s
[12/67] xorriso-0:1.5.6-7.fc42.x86_64                                                                                                                100% | 296.0 KiB/s | 321.7 KiB |  00m01s
[13/67] libvirt-nss-0:11.0.0-3.fc42.x86_64                                                                                                           100% |  62.1 KiB/s |  21.5 KiB |  00m00s
[14/67] libisofs-0:1.5.6-6.fc42.x86_64                                                                                                               100% | 631.4 KiB/s | 234.9 KiB |  00m00s
[15/67] libburn-0:1.5.6-6.fc42.x86_64                                                                                                                100% | 396.6 KiB/s | 170.6 KiB |  00m00s
[16/67] python3-libvirt-0:11.0.0-1.fc42.x86_64                                                                                                       100% | 309.4 KiB/s | 363.5 KiB |  00m01s
[17/67] libvirt-daemon-config-network-0:11.0.0-3.fc42.x86_64                                                                                         100% |  42.7 KiB/s |  13.1 KiB |  00m00s
[18/67] libvirt-daemon-kvm-0:11.0.0-3.fc42.x86_64                                                                                                    100% |  32.6 KiB/s |  10.6 KiB |  00m00s
[19/67] iproute-tc-0:6.12.0-3.fc42.x86_64                                                                                                            100% |   1.2 MiB/s | 450.4 KiB |  00m00s
[20/67] libvirt-daemon-driver-network-0:11.0.0-3.fc42.x86_64                                                                                         100% | 409.1 KiB/s | 247.1 KiB |  00m01s
[21/67] libvirt-daemon-driver-storage-0:11.0.0-3.fc42.x86_64                                                                                         100% |  88.7 KiB/s |  10.6 KiB |  00m00s
[22/67] libvirt-daemon-common-0:11.0.0-3.fc42.x86_64                                                                                                 100% | 231.2 KiB/s | 122.1 KiB |  00m01s
[23/67] libvirt-daemon-plugin-lockd-0:11.0.0-3.fc42.x86_64                                                                                           100% | 149.6 KiB/s |  21.8 KiB |  00m00s
[24/67] libvirt-ssh-proxy-0:11.0.0-3.fc42.x86_64                                                                                                     100% | 125.3 KiB/s |  18.0 KiB |  00m00s
[25/67] libvirt-daemon-lock-0:11.0.0-3.fc42.x86_64                                                                                                   100% | 169.2 KiB/s |  47.5 KiB |  00m00s
[26/67] libvirt-daemon-driver-nodedev-0:11.0.0-3.fc42.x86_64                                                                                         100% | 383.5 KiB/s | 220.9 KiB |  00m01s
[27/67] numad-0:0.5-46.20150602git.fc42.x86_64                                                                                                       100% | 164.5 KiB/s |  37.7 KiB |  00m00s
[28/67] libvirt-daemon-driver-storage-core-0:11.0.0-3.fc42.x86_64                                                                                    100% |   1.2 MiB/s | 252.1 KiB |  00m00s
[29/67] libvirt-daemon-driver-storage-disk-0:11.0.0-3.fc42.x86_64                                                                                    100% | 163.2 KiB/s |  21.7 KiB |  00m00s
[30/67] libvirt-daemon-proxy-0:11.0.0-3.fc42.x86_64                                                                                                  100% | 487.4 KiB/s | 190.6 KiB |  00m00s
[31/67] libvirt-daemon-driver-interface-0:11.0.0-3.fc42.x86_64                                                                                       100% | 256.9 KiB/s | 197.3 KiB |  00m01s
[32/67] libvirt-daemon-driver-storage-iscsi-0:11.0.0-3.fc42.x86_64                                                                                   100% | 213.5 KiB/s |  18.8 KiB |  00m00s
[33/67] libvirt-daemon-driver-storage-mpath-0:11.0.0-3.fc42.x86_64                                                                                   100% | 188.3 KiB/s |  16.4 KiB |  00m00s
[34/67] libvirt-daemon-driver-storage-gluster-0:11.0.0-3.fc42.x86_64                                                                                 100% | 218.1 KiB/s |  23.3 KiB |  00m00s
[35/67] libvirt-daemon-driver-storage-iscsi-direct-0:11.0.0-3.fc42.x86_64                                                                            100% | 205.6 KiB/s |  21.0 KiB |  00m00s
[36/67] libvirt-daemon-driver-storage-rbd-0:11.0.0-3.fc42.x86_64                                                                                     100% | 310.5 KiB/s |  27.0 KiB |  00m00s
[37/67] libvirt-daemon-driver-storage-scsi-0:11.0.0-3.fc42.x86_64                                                                                    100% | 203.3 KiB/s |  18.7 KiB |  00m00s
[38/67] libvirt-daemon-driver-storage-zfs-0:11.0.0-3.fc42.x86_64                                                                                     100% | 180.1 KiB/s |  18.7 KiB |  00m00s
[39/67] libvirt-daemon-driver-storage-logical-0:11.0.0-3.fc42.x86_64                                                                                 100% |  93.7 KiB/s |  22.6 KiB |  00m00s
[40/67] mdevctl-0:1.4.0-1.fc42.x86_64                                                                                                                100% |   1.9 MiB/s | 980.6 KiB |  00m01s
[41/67] libvirt-daemon-driver-secret-0:11.0.0-3.fc42.x86_64                                                                                          100% | 199.3 KiB/s | 195.0 KiB |  00m01s
[42/67] libvirt-daemon-log-0:11.0.0-3.fc42.x86_64                                                                                                    100% |  64.7 KiB/s |  51.3 KiB |  00m01s
[43/67] libvirt-daemon-driver-nwfilter-0:11.0.0-3.fc42.x86_64                                                                                        100% | 228.6 KiB/s | 233.6 KiB |  00m01s
[44/67] glusterfs-fuse-0:11.1-8.fc42.x86_64                                                                                                          100% | 532.2 KiB/s | 136.8 KiB |  00m00s
[45/67] glusterfs-cli-0:11.1-8.fc42.x86_64                                                                                                           100% | 459.4 KiB/s | 185.1 KiB |  00m00s
[46/67] libvirt-daemon-driver-qemu-0:11.0.0-3.fc42.x86_64                                                                                            100% | 790.3 KiB/s | 959.4 KiB |  00m01s
[47/67] libnbd-0:1.22.2-1.fc42.x86_64                                                                                                                100% | 706.4 KiB/s | 173.8 KiB |  00m00s
[48/67] libwsman1-0:2.7.2-12.fc42.x86_64                                                                                                             100% | 512.8 KiB/s | 129.2 KiB |  00m00s
[49/67] libvirt-client-0:11.0.0-3.fc42.x86_64                                                                                                        100% |   1.2 MiB/s | 419.1 KiB |  00m00s
[50/67] swtpm-0:0.10.1-1.fc42.x86_64                                                                                                                 100% | 378.8 KiB/s |  35.6 KiB |  00m00s
[51/67] swtpm-libs-0:0.10.1-1.fc42.x86_64                                                                                                            100% | 548.1 KiB/s |  63.6 KiB |  00m00s
[52/67] swtpm-tools-0:0.10.1-1.fc42.x86_64                                                                                                           100% | 429.2 KiB/s | 121.5 KiB |  00m00s
[53/67] swtpm-selinux-0:0.10.1-1.fc42.noarch                                                                                                         100% | 198.7 KiB/s |  23.8 KiB |  00m00s
[54/67] gnutls-utils-0:3.8.9-3.fc42.x86_64                                                                                            

I'm sorry I took so long to test. We can try again if you like.

Comment 14 Michal Privoznik 2025-07-01 13:54:42 UTC
(In reply to Renich Bon Ciric from comment #13)
> I couldn't update using that repo because of the current release, which is
> -3. 
> 

It should be as easy as:

mkdir rpms && cd rpms && wget --recursive --no-parent --no-directories https://mprivozn.fedorapeople.org/rpms/nss2/x86_64/ && createrepo . && sudo dnf update ./*.rpm

and if you want to rollback then just 'dnf distrosync'.

BTW: it's exactly because of this that I've named this -4 so that there's a difference between current version in the official repo and my test packages. Otherwise, dnf gets all confused.

Comment 15 Renich Bon Ciric 2025-07-03 00:57:23 UTC
So, I used your technique and it worked fine. I couldn't make it fail, though. Maybe it's fixed?

root@desktop ~# rpm -q libvirt-daemon libvirt-nss
libvirt-daemon-11.0.0-4.fc42.x86_64
libvirt-nss-11.0.0-4.fc42.x86_64

root@desktop ~# systemctl restart libvirtd

root@desktop ~# virsh start cs10
error: Domain is already active

root@desktop ~# virsh list
 Id   Name   State
----------------------
 1    cs10   running

root@desktop ~# LIBVIRT_NSS_DEBUG=1 getent hosts cs10
DEBUG libvirt_nss.c:findLease():127 : NSS module: libvirt
DEBUG libvirt_nss.c:findLease():141 : Dir: /var/lib/libvirt/dnsmasq/
DEBUG libvirt_nss_leases.c:findLeases():271 : Processing /var/lib/libvirt/dnsmasq//virbr2.status
DEBUG libvirt_nss_leases.c:findLeases():288 : read: rv=0 line=''
DEBUG libvirt_nss_leases.c:findLeases():299 : Done reading, nreadTotal=0, jerr=3 'unexpected end of data'
DEBUG libvirt_nss_leases.c:findLeases():331 : ret=0
DEBUG libvirt_nss_leases.c:findLeases():271 : Processing /var/lib/libvirt/dnsmasq//virbr1.status
DEBUG libvirt_nss_leases.c:findLeases():288 : read: rv=0 line=''
DEBUG libvirt_nss_leases.c:findLeases():299 : Done reading, nreadTotal=0, jerr=3 'unexpected end of data'
DEBUG libvirt_nss_leases.c:findLeases():331 : ret=0
DEBUG libvirt_nss_leases.c:findLeases():271 : Processing /var/lib/libvirt/dnsmasq//virbr0.status
DEBUG libvirt_nss_leases.c:findLeases():288 : read: rv=184 line='[
  {
    "ip-address": "192.168.122.240",
    "mac-address": "52:54:00:10:f9:43",
    "hostname": "cs10",
    "client-id": "01:52:54:00:10:f9:43",
    "expiry-time": 1751507585
  }
]
'
DEBUG libvirt_nss_leases.c:findLeases():299 : Done reading, nreadTotal=184, jerr=0 'success'
DEBUG libvirt_nss_leases.c:findLeaseInJSON():236 : Found record for cs10
DEBUG libvirt_nss_leases.c:appendAddr():59 : IP address: 192.168.122.240
DEBUG libvirt_nss_leases.c:appendAddr():88 : Skipping address which family is 2, 10 requested
DEBUG libvirt_nss_leases.c:findLeases():331 : ret=0
DEBUG libvirt_nss.c:findLease():196 : Found 0 addresses
DEBUG libvirt_nss.c:findLease():216 : ret=0
DEBUG libvirt_nss.c:findLease():125 : NSS module: libvirt_guest
DEBUG libvirt_nss.c:findLease():141 : Dir: /var/lib/libvirt/dnsmasq/
DEBUG libvirt_nss.c:findLease():175 : Finding with 0 macs
DEBUG libvirt_nss.c:findLease():216 : ret=-1
DEBUG libvirt_nss.c:findLease():127 : NSS module: libvirt
DEBUG libvirt_nss.c:findLease():141 : Dir: /var/lib/libvirt/dnsmasq/
DEBUG libvirt_nss_leases.c:findLeases():271 : Processing /var/lib/libvirt/dnsmasq//virbr2.status
DEBUG libvirt_nss_leases.c:findLeases():288 : read: rv=0 line=''
DEBUG libvirt_nss_leases.c:findLeases():299 : Done reading, nreadTotal=0, jerr=3 'unexpected end of data'
DEBUG libvirt_nss_leases.c:findLeases():331 : ret=0
DEBUG libvirt_nss_leases.c:findLeases():271 : Processing /var/lib/libvirt/dnsmasq//virbr1.status
DEBUG libvirt_nss_leases.c:findLeases():288 : read: rv=0 line=''
DEBUG libvirt_nss_leases.c:findLeases():299 : Done reading, nreadTotal=0, jerr=3 'unexpected end of data'
DEBUG libvirt_nss_leases.c:findLeases():331 : ret=0
DEBUG libvirt_nss_leases.c:findLeases():271 : Processing /var/lib/libvirt/dnsmasq//virbr0.status
DEBUG libvirt_nss_leases.c:findLeases():288 : read: rv=184 line='[
  {
    "ip-address": "192.168.122.240",
    "mac-address": "52:54:00:10:f9:43",
    "hostname": "cs10",
    "client-id": "01:52:54:00:10:f9:43",
    "expiry-time": 1751507585
  }
]
'
DEBUG libvirt_nss_leases.c:findLeases():299 : Done reading, nreadTotal=184, jerr=0 'success'
DEBUG libvirt_nss_leases.c:findLeaseInJSON():236 : Found record for cs10
DEBUG libvirt_nss_leases.c:appendAddr():59 : IP address: 192.168.122.240
DEBUG libvirt_nss_leases.c:findLeases():331 : ret=0
DEBUG libvirt_nss.c:findLease():196 : Found 1 addresses
DEBUG libvirt_nss.c:findLease():216 : ret=0
DEBUG libvirt_nss.c:_nss_libvirt_gethostbyname3_r():343 : Done idx:40 need:40
192.168.122.240 cs10

root@desktop ~# ls -l /var/lib/libvirt/dnsmasq
total 16
-rw-r--r--. 1 root root   0 Jul  2 18:55 default.addnhosts
-rw-------. 1 root root 598 Jul  2 18:54 default.conf
-rw-r--r--. 1 root root   0 Jul  2 18:55 default.hostsfile
-rw-r--r--. 1 root root   0 Jul  2 18:55 mk-minikube.addnhosts
-rw-------. 1 root root 600 Jul  2 18:54 mk-minikube.conf
-rw-r--r--. 1 root root   0 Jul  2 18:55 mk-minikube.hostsfile
-rw-r--r--. 1 root root   0 Jul  2 18:55 private.addnhosts
-rw-------. 1 root root 665 Jul  2 18:54 private.conf
-rw-r--r--. 1 root root   0 Jul  2 18:55 private.hostsfile
-rw-r--r--. 1 root root 184 Jul  2 18:55 virbr0.status
-rw-r--r--. 1 root root   0 Jul  2 18:53 virbr1.status
-rw-r--r--. 1 root root   0 Jul  2 18:53 virbr2.status

Comment 16 Michal Privoznik 2025-07-04 11:43:01 UTC
(In reply to Renich Bon Ciric from comment #15)
> So, I used your technique and it worked fine. I couldn't make it fail,
> though. Maybe it's fixed?

Indeed! Cole, can you please backport the following commit into F42 and F41?

https://gitlab.com/libvirt/libvirt/-/commit/63a3d70697dc44ef2f8b40f7c8e9aa869227a7da

It fixes the problem where empty files upset the NSS plugin. Meanwhile, I'll post debugging patches to upstream list.

Comment 17 Renich Bon Ciric 2025-07-04 12:41:45 UTC
Thank you, so much, for the work, patience and good disposition. :)

Comment 18 Fedora Update System 2025-08-08 20:17:13 UTC
FEDORA-2025-5128e52fb8 (libvirt-11.0.0-4.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-5128e52fb8

Comment 19 Fedora Update System 2025-08-09 04:08:46 UTC
FEDORA-2025-5128e52fb8 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-5128e52fb8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-5128e52fb8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.


Note You need to log in before you can comment on or make changes to this bug.