Is not using systemd-resolved on the host, creating a Fedora 39 toolbox environment creates a bad symlink such that no DNS resolutions are possible. This is a regression from previous versions of Fedora+toolbox as this has worked going back to at least Fedora 36. This is observed in Fedora 39 Workstation that was upgraded from Fedora 38. The issue was only observed after upgrading to Fedora 39 and creating a new Fedora 39 toolbox environment. Reproducible: Always Steps to Reproduce: 1. Disable systemd-resolved on host (ie, use dns=default in NetworkManager conf's [main] and disable systemd-resolved service that unfortunately doesn't play well with my ISP) 2. Create fresh toolbos: `toolbox create` `toolbox enter` 3. Attempt to dnf install/search Actual Results: Errors during downloading metadata for repository 'fedora': - Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-39&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org] Error: Failed to download metadata for repo 'fedora': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-39&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org] Expected Results: Resolution in the container environment matches host's effective resolv.conf settings. $ ls -l /etc/resolv.conf lrwxrwxrwx. 1 root root 39 Nov 27 23:50 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf is a broken symlink. Workaround in toolbox: sudo unlink /etc/resolv.conf sudo vi /etc/resolv.conf (Add in nameservers manually)
FEDORA-2024-1505a8df50 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-1505a8df50
FEDORA-2024-f303015b75 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-f303015b75
This was reported earlier as: https://github.com/containers/toolbox/issues/1410 The root cause is a regression in the fedora-toolbox images for Fedora >= 39, but it can also be worked around by making toolbox(1) more robust when setting up /etc/resolv.conf in the container. The fedora-toolbox:40 image has already been fixed, and toolbox-0.0.99.5 has the workaround in place. We will soon backport the fix to fedora-toolbox:39.
FEDORA-2024-1505a8df50 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2024-f303015b75 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.