It is nice, that systemd-nspawn updates /etc/localtime, but it will be nice, if /etc/resolv.conf also will be updated/copied from "host" if not exists/etc. Steps to reproduce: 1. ping google.com 2. PING google.com (173.194.71.102) 56(84) bytes of data. 3. systemd-nspawn -D /some/path (where /etc/resolv.conf not exists/old/etc) 4. ping google.com 5. ping: unknown host google.com P.S. there is nice workaround, if dnsmasq runned on "host", "guest" have working DNS resolving, even without /etc/resolv.conf
This should be fixed in v184. Can you confirm that it works for you?
(In reply to comment #1) > This should be fixed in v184. Can you confirm that it works for you? It still exists in systemd 195, I'm running systemd 195 on host and guest # systemctl --version systemd 195 systemd-nspawn -D /media/gsoho -b # stat /etc/resolv.conf stat: cannot stat ‘/etc/resolv.conf’: No such file or directory
for the bind mount to work we currently need a stub file in the container, that we can overmount. We could first create an empty stub file i guess, but not sure that would be a good idea...
Fixed in git.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.