getent blocks indefinitely when the nameserver is unreachable (QEMU 10.0.2.3, or any network where DNS responds slowly). Replace with curl --connect-timeout 3 which has a hard 3s per-attempt timeout and is independent of the NSS stack.
getent blocks indefinitely when the nameserver is unreachable (QEMU 10.0.2.3, or any network where DNS responds slowly). Replace with curl --connect-timeout 3 which has a hard 3s per-attempt timeout and is independent of the NSS stack.