In my environment, I installed MAAS 2.0 on Ubuntu 16.04 (which is used to automatically deploy operating systems on other servers in my private network). To install MAAS, I used my local Ubuntu mirror.
The problem is, when I commission a server (which was previously enlisted using the MAAS GUI), the commissioning process will install some packages on the commissioning machine. When this happens, the commissioning machine contacts the Ubuntu archives on the internet, rather than my local mirror.
Two questions:
Since everything is ready on the MAAS server when the PXE boot happens, shouldn't the boot image contain all the necessary packages? (Why does it need to connect the internet?)
I used the default commissioning scripts, and did not upload any custom scripts to the "Commissioning scripts" using the MAAS GUI. If I need to commission a server without to connecting the internet, do I need to upload my own custom scripts to MAAS?