I've verified that this is reproducible within lxc, and then filed a bug i saw (bug 1734939) as a result.
Heres a trivial reproduce: ## just showing content of the url. $ curl --silent https://hastebin.com/raw/coladicuva #!/bin/sh cat /proc/uptime | tee /run/user-script-uptime $ name=btest $ lxc launch ubuntu-daily:bionic $name \ "--config=user.user-data=#include https://hastebin.com/raw/coladicuva" $ sleep 20 $ lxc exec b4 grep WARN /var/log/cloud-init.log 2017-11-28 16:49:12,251 - user_data.py[WARNING]: HTTPSConnectionPool(host='hastebin.com', port=443): Max retries exceeded with url: /raw/coladicuva (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f20736a4e80>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)) for url: https://hastebin.com/raw/coladicuva ** Changed in: cloud-init (Ubuntu Bionic) Importance: High => Critical ** Changed in: cloud-init (Ubuntu Artful) Importance: High => Critical ** Changed in: systemd (Ubuntu Bionic) Importance: High => Critical -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1734167 Title: DNS doesn't work in no-cloud as launched by ubuntu To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1734167/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs