So the above solution works for a specific network topology, but generally this issue happens when a deploying or commissioning machine cannot reach MAAS, this is often due to the DNS name for a given rack controller is unable to be resolved for the booting machine.
The boot interface should receive a lease from MAAS’ DHCP, a relay forwarding to MAAS, or a DHCP server with MAAS configured as the next-server
.’
DNS should be set to the rack controller’s IP within the desired subnet. MAAS’ DNS will forward queries externally when configured to do so. This would be the default when commissioning or deploying a machine.There are alternatives, such as using netplan config to configure specific servers for a given domain, but this will be the most straight forward option.
The default gateway should be whatever is responsible for nat’ing the network, i.e if it’s a bridge network and the machines are VMs, the physical host’s IP on that bridge, or the router in the case of a physical network.