Unable to Enable PXE Boot on Secondary Interface in MAAS

Environment

  • MAAS installation method: Snap
  • Interface with PXE enabled: ens160 (fabric-0)
  • Interface with DHCP running but no PXE: ens192 (fabric-2)

Problem Description

I’m managing a MAAS deployment where I have two network interfaces:

  • ens160 (on fabric-0) with PXE enabled but DHCP disabled (“No DHCP”)
  • ens192 (on fabric-2) with DHCP enabled (“MAAS-provided”) but no PXE boot option

I need to enable PXE booting on the ens192 interface (fabric-2) which already has DHCP running, but I can’t find where to enable this setting. When I look at the subnet configuration for 172.31.64.0/29, I don’t see any PXE options.

What I’ve Tried

1. Checking Services Status

Initially had an issue with the temporal service, but that’s now resolved:

arvani@arvani:~$ sudo snap services maas
Service      Startup  Current  Notes
maas.pebble  enabled  active   -

2. Using MAAS CLI

Attempted to use the CLI to enable PXE on fabric-2:

arvani@arvani:~$ maas sasan vlan update fabric-2 0 boot_mode=pxe
usage: maas [-h] COMMAND ...
argument COMMAND: invalid choice: 'sasan'

I’m stuck at creating a proper MAAS profile to use the CLI commands:

maas login sasan http://localhost:5240/MAAS/api/2.0

(I’m still working through the API key generation process)

Configuration Details

Network Interfaces

NAME PXE LINK/INTERFACE SPEED TYPE FABRIC SUBNET IP ADDRESS DHCP
ens160 10 Gbps/10 Gbps Physical fabric-0 172.31.60.112/29 172.31.60.119 No DHCP
ens192 10 Gbps/10 Gbps Physical fabric-2 172.31.64.0/29 172.31.64.2 MAAS-provided

Subnet Configuration for 172.31.64.0/29

  • Managed allocation: Enabled
  • Active discovery: Enabled
  • Proxy access: Enabled
  • Allow DNS resolution: Enabled
  • Gateway IP: 1.1.1.1
  • DNS: 1.1.1.1 2.2.2.2

Questions

  1. How can I enable PXE boot on my ens192 interface (fabric-2)?
  2. Is this configured at the VLAN level, and if so, where exactly in the web interface?
  3. What’s the proper way to use the MAAS CLI to enable this (correct syntax for creating profile and enabling PXE)?
  4. Is there a configuration file I can edit directly to enable this setting?

Any help would be greatly appreciated. I need both interfaces to support PXE booting for my deployment scenario.

Screenshots

I’ve attached screenshots showing:

  1. Services status (all running)
  2. Network interfaces configuration showing PXE enabled only on ens160
  3. Subnet configuration for 172.31.64.0/29

Thank you in advance for your assistance!

MAAS can’t magically enable PXE on your machine. MAAS provides DHCP, and if you are using IPMI or redfish and you manage the machine through MAAS, your machine will be instructed to PXE boot. Still, it depends on your BIOS/UEFI settings as it will use the first NIC if you already have DHCP with MAAS running on that VLAN. You might be able to disable PXE from the first interface on your BIOS/UEFI settings still

According to my settings, I set up DHCP on the second interface and there is a VLAN between this MAAS and my client, which is fully connected. You are saying that it is not possible to receive DHCP requests through the second port?! Did I understand correctly? And this cannot be changed?!

You have to change the BIOS settings in your machine and move up the second nic in the boot priority

I do this, but they cannot communicate with my MAAS machine! However, when I set a static IP on the client machine, they can talk to each other!

When you power on the machine, what do you see on the screen/console? Does it try to PXE boot from the second nic?

yes i do try pxe with the second nic,i compare the mac address that show on boot page and it is same with my target machine that connected with mass on second nic!


here is my topology for clear everything

What’s the error you get on the screen?

there is no error!it takes a time and then continue to my old machine for example!

it sounds like a misconfiguration of your network. You said you are using VLANS, but from the screenshots you sent all your VLANS are untagged.

Also, I don’t quite get the diagram of your topology. Could you draw all the links you have and all the VLANS you are using?

Topology is exact like this!
also it doesnt need define vlan because the all ports access on a vlan!

What MAAS version did you install?

i installed MAAS: 3.6.0

I’d suggest to take a tcpdump on the MAAS node to ensure that the DHCP discovery packets are received on the interface where you enabled DHCP