Linked my bare attempt. This sources /etc/default/lxc for a MIRROR setting and then sends that via cloud-init 'apt_mirror' setting, which is exactly what the ubuntu-cloud lxc template does.
If you install apt-cacher-ng in the host and then set
MIRROR="http://10.0.3.1:3142/archive.ubuntu.com/ubuntu"
Then it will just work.
Linked my bare attempt. This sources /etc/default/lxc for a MIRROR setting and then sends that via cloud-init 'apt_mirror' setting, which is exactly what the ubuntu-cloud lxc template does.
If you install apt-cacher-ng in the host and then set
MIRROR="http:// 10.0.3. 1:3142/ archive. ubuntu. com/ubuntu"
Then it will just work.