CentOS 7.x lxc container creation fails due to host resolution
It is possible that CentOS 7.x container creation fails with errors similar to
[Errno 14] curl#6 - "Could not resolve host: centos.mirror.snu.edu.in; Unknown error" Trying other mirror.
even though DNS is working fine. This is possible because lxc (unfortunately) uses DNS configuration from cache and not from host. That is lxc-create uses DNS configuration from
for centos-7 containers. To solve the issue edit above file and add appropriate nameserver. If 18.104.22.168 and 22.214.171.124 are used then the settings should work at multiple locations without any problem.