MAAS's default setting: Machine's default Network should be IP mode DHCP

Hello guys,
i have been using MAAS 3.4.4, and it is installed with SNAP. MAAS does not act as DHCP Server. therefore each time, when a machine is in state NEW, i must change the machine’s Network to DHCP (IP mode DHCP), as well as changing the Power configuration.

Is there anyway, that i change something somewhere in MAAS’s GUI or backend, that these two configurations should be done automatically?

Thanks for your ideas and support.

Please refer to: https://maas.io/docs/how-to-enable-dhcp

You need a subnet to use as PXE boot subnet, which will allow to commissioning and deploying machines ( baremetal )

Also, by experience, it could be a program or application already using the DHCP port
ss -ltpn | egrep ‘67/68’

From there, you are available to see the PID of the process using such port, and capable to determine further actions

from 3.6 (we don’t have an ETA for the release yet) you will be able to set the global config default_boot_interface_link_type.

For example you will be able to set default_boot_interface_link_type=DHCP and have all the interfaces configured to DHCP automatically after commissioning.

For the power configuration by heart I think you should be able to do this by creating a custom commissioning script that is executed AFTER the 30-maas-01-bmc-config and that

  • reads the env variable BMC_CONFIG_PATH
  • writes a yaml config like here.

If you are going to try this, please report here if it worked