Install maas uses snap, dhcp / PXE problem

Uses the official document,
I installed maas uses snap ,and found a dhcp problem, Created a dhcp snippets and enabled it,as the screenshot below:

you can see the warrning of the dhcp service: " DHCP is not enabled on any VLAN. This will prevent machines from being able to PXE boot, unless an external DHCP server is being used." is stll exist.

To be notesd, I have skipped all the “first time use configure”.

And here is the search result of the dhcp-service model below :

root@autoinstall:~# ps -ef | grep dhcp
root        3545     891  0 09:06 pts/0    00:00:00 grep --color=auto dhcp
###################################################################
root@autoinstall:~# dpkg -l | grep dhcp
ii  isc-dhcp-client                        4.4.1-2.3ubuntu2.3                      amd64        DHCP client for automatically obtaining an IP address
ii  isc-dhcp-common                        4.4.1-2.3ubuntu2.3                      amd64        common manpages relevant to all of the isc-dhcp packages
###################################################################
root@autoinstall:~# maas status
Service          Startup   Current   Since
agent            disabled  active    today at 08:43 UTC
apiserver        enabled   active    today at 08:43 UTC
bind9            disabled  active    today at 08:43 UTC
dhcpd            disabled  inactive  -
dhcpd6           disabled  inactive  -
http             disabled  active    today at 08:43 UTC
ntp              disabled  active    today at 08:43 UTC
proxy            disabled  active    today at 08:43 UTC
rackd            enabled   active    today at 08:43 UTC
regiond          enabled   active    today at 08:43 UTC
syslog           disabled  active    today at 08:43 UTC
temporal         disabled  active    today at 08:43 UTC
temporal-worker  disabled  active    today at 08:43 UTC
root@autoinstall:~#
###################################################################

And the dhcp IP can not get by the PXE boat server.

Pls help, Many thx.

you have to enable dhcp on the vlan

1 Like

@lxl2024

machines provisioned by MAAS must have a DHCP server. DHCP snippets can be enabled, but without DHCP, there’s no place for a MAAS machine to get an IP address, so the snippet isn’t getting applied by anything.

you also need the address of a TFTP/HTTP boot server to deliver an NBP that will let the machine PXE boot. try following the instructions you skipped, it should work much better.

1 Like

Thank you for the answer.