!urJNcENrTEPSclgyyQ:matrix.org

iPXE

189 Members
iPXE - Open Source Network Boot Firmware - https://ipxe.org20 Servers

Load older messages


SenderMessageTime
13 May 2024
@stappers:fosdem.orgstapperswww.catb.org/~esr/faqs/smart-questions.html 19:09:15
18 May 2024
@nam3l33ss:matrix.org@nam3l33ss:matrix.org left the room.18:58:32
23 May 2024
@rrbk:matrix.orgrrbk joined the room.04:10:56
@alexrelis:matrix.orgalexrelis joined the room.17:28:23
@alexrelis:matrix.orgalexrelis

Hello everyone!

I'm currently putting iPXE on a flash drive as a way to PXE boot from a device without an internal network card, but it looks like iPXE is not detecting my USB NIC, an ASIX Electronics Corp. AX88179 Gigabit Ethernet card. It says something along the lines of "no network cards found".

Does iPXE support USB NICs? Or would I have to recompile to include support for USB network cards?

I found this forum post and I was able to compile successfully, but the compiled file, when flashed to my flash drive, will not boot on the laptop or any other device.

Anyone have guidance on this? Thanks.

17:35:03
@alexrelis:matrix.orgalexrelis I also have an ASIX Electronics Corp. AX88772B USB NIC that is also not detected in my testing. 17:36:27
@stappers:fosdem.orgstappers

Anyone have guidance on this?

See the IRC response (where the same question was asked)

18:45:23
@alexrelis:matrix.orgalexrelisThank you!18:47:26
@stappers:fosdem.orgstappers
In reply to @alexrelis:matrix.org
Thank you!
A much better "Thank you!" is sharing the solution.
21:34:34
@alexrelis:matrix.orgalexrelisI was able to compile it, but I did not solve it just yet. But I'll let you know once I figure it out.21:46:36
26 May 2024
@alexrelis:matrix.orgalexrelis stappers: Alright, so while I didn't explicitly "solve" the problem, I was able to find a workaround that accomplished what I needed to do. 19:29:49
@alexrelis:matrix.orgalexrelis

The issue was that I had two regulated computer systems made by a niche vendor at work that I was tasked to re-image with SCCM, and while they supported PXE boot, they refused to boot UEFI images. We got in contact with the vendor, and as it turns out, the models we had were "prototypes" that never got support for booting UEFI over PXE, according to them.

That is when I found iPXE, and I figured I could just put iPXE on a flash drive to bypass the PXE ROM included with the system. That actually worked for one of them, but no matter what I tried, I couldn't get the other machine to get an IP from the DHCP server. Any time I ran the commands it would say this:

[TXE: 1 x "Network unreachable]
[TXE: 1 x "Operation not supported]

Even trying it with a static IP resulted in the same error.

I tried to use USB NIC cards, but none of them were even being detected. There was one USB NIC card we had that was officially supported, but it was USB-C and the computer only had a USB-A port. I brought home a USB-C to A adapter, but unfortunately it still did not detect the NIC card on the computer, even though I was able to get it booting with iPXE on a laptop with the exact same setup.

I then attempted to re-compile with specific flags. The first thing I tried was editing src/config/dhcp.hso that it had more time and attempts to do a DHCP discover request thinking it just needed more time to request an IP from the DHCP server, but giving it more time didn't change the outcome. I then tried compiling with intel drivers with debugging turned on, but the debugger didn't output any messages that coincided with the issue I was having.

After that, I simply gave up on trying iPXE on baremetal. I instead spun up a virtual machine with KVM with the help of virt-manager. I plug in a USB to SATA enclosure with a SATA HDD plugged in and passed it to the VM. I then passed through my NIC card with macvtap, then I passed through iPXE. I ran iPXE through the VM and successfully reimaged a machine to the SATA hard drive, then I ran a GNU Linux live USB on the computer with the SATA to USB enclosure connected and cloned the drive.

Unfortunately, as I was doing that, the hard drive started giving me the dreaded "Input/Output" error and would not copy the partition due to bad sectors. The drive failed as I was doing it!

I then set up Ventoy with a GNU Linux live ISO and enabled persistence with the Ventoy persistence plugin, installed QEMU/KVM and virt-manager on the persistent live environment and booted it directly on the system. Then I passed through the NIC card, internal SSD, and iPXE. From there I was able to PXE boot successfully and re-image directly to the machine's internal SSD.

19:30:04
@alexrelis:matrix.orgalexrelis *

The issue was that I had two regulated computer systems made by a niche vendor at work that I was tasked to re-image with SCCM, and while they supported PXE boot, they refused to boot UEFI images. We got in contact with the vendor, and as it turns out, the models we had were "prototypes" that never got support for booting UEFI over PXE, according to them.

That is when I found iPXE, and I figured I could just put iPXE on a flash drive to bypass the PXE ROM included with the system. That actually worked for one of them, but no matter what I tried, I couldn't get the other machine to get an IP from the DHCP server. Any time I ran the commands it would say this:

[TXE: 1 x "Network unreachable]
[TXE: 1 x "Operation not supported]

Even trying it with a static IP resulted in the same error.

I tried to use USB NIC cards, but none of them were even being detected. There was one USB NIC card we had that was officially supported, but it was USB-C and the computer only had a USB-A port. I brought home a USB-C to A adapter, but unfortunately it still did not detect the NIC card on the computer, even though I was able to get it booting with iPXE on a laptop with the exact same setup.

I then attempted to re-compile with specific flags. The first thing I tried was editing src/config/dhcp.hso that it had more time and attempts to do a DHCP discover request thinking it just needed more time to request an IP from the DHCP server, but giving it more time didn't change the outcome. I then tried compiling with intel drivers with debugging turned on, but the debugger didn't output any messages that coincided with the issue I was having.

After that, I simply gave up on trying iPXE on baremetal. I instead spun up a virtual machine with KVM with the help of virt-manager. I plug in a USB to SATA enclosure with a SATA HDD plugged in and passed it to the VM. I then passed through my NIC card with macvtap, then I passed through iPXE. I ran iPXE through the VM and successfully reimaged a machine to the SATA hard drive, then I ran a GNU Linux live USB on the computer with the SATA to USB enclosure connected and cloned the drive.

Unfortunately, as I was doing that, the hard drive started giving me the dreaded "Input/Output" error and would not copy the partition due to bad sectors. The drive failed as I was doing it!

I then set up Ventoy with a GNU Linux live ISO and enabled persistence with the Ventoy persistence plugin (so that the packages I install don't delete themselves when I reboot), installed QEMU/KVM and virt-manager on the persistent live environment and booted it directly on the system. Then I passed through the NIC card, internal SSD, and iPXE. From there I was able to PXE boot successfully and re-image directly to the machine's internal SSD.

19:30:59
@stappers:fosdem.orgstappersAcknowledge20:14:37
@stappers:fosdem.orgstappers(night in my timezone)20:18:30
@alexrelis:matrix.orgalexrelis
In reply to @stappers:fosdem.org
(night in my timezone)
Goodnight, dude
20:20:13
27 May 2024
@stappers:fosdem.orgstappers Below is .iso and it means something like "image being handled by initial program loader" 16:15:30
@stappers:fosdem.orgstappers

If I understand alexrelis correct, is the workaround:

ventoy.iso {
	GNU_Linux_Live.iso {
		QEMU/KVM {
			hardware_pass_through {
				bootloader {
					linux_kernel {
						access to NIC
						access to storage device
					}
				}
		}
	}
}
16:17:18
@stappers:fosdem.orgstappers

What I usual do:

ipxe.iso {
	ipxe_the_bootloader {
		access to NIC
	}
}
16:19:02
@stappers:fosdem.orgstappers

What an intermediate step could be:

ventoy.iso {
	ipxe.iso {
		ipxe_the_bootloader {
			access to NIC
		}
	}
}

That will reveal information how usable the ipxe.iso is.

16:21:08
28 May 2024
@alexrelis:matrix.orgalexrelis
In reply to @stappers:fosdem.org

If I understand alexrelis correct, is the workaround:

ventoy.iso {
	GNU_Linux_Live.iso {
		QEMU/KVM {
			hardware_pass_through {
				bootloader {
					linux_kernel {
						access to NIC
						access to storage device
					}
				}
		}
	}
}
Yeah
14:43:28
30 May 2024
@micim987:matrix.orgmicim987 joined the room.03:48:04
@admgss:matrix.orgЖека Миронеко joined the room.12:13:26
@admgss:matrix.orgЖека МиронекоHello. Perhaps a boring question... Is a simple method of diskless booting over a network with security boot enabled on Windows even possible? If so, show me, I couldn’t figure it out myself :)))12:14:56
31 May 2024
@stappers:fosdem.orgstappers Most likely there will be more reports of "was able to compile successfully, but the compiled file, when flashed to my flash drive, will not boot on the laptop or any other device" and " way to PXE boot from a device without an internal network card, but it looks like iPXE is not detecting my USB NIC". Probably also in single request as recently seen here. Due new class of hardware. We will seen how much knowledge of such cases we can gain. 05:40:46
12 Jun 2024
@lennard:utwente.io@lennard:utwente.io left the room.11:23:13
1 Jul 2024
@guest-:matrix.orgguest- joined the room.19:27:01
@guest-:matrix.orgguest-HI I am experiencing issues with the PXE boot on one of my servers. The configuration appears to be correct, but the system fails to obtain an IP address and the DHCP connection times out. I have reviewed the boot card configuration and everything seems to be in order. However, I am unsure if I have made a mistake in the configuration or if the issue lies elsewhere. I would appreciate your help in identifying and resolving this problem.19:28:02
@stappers:fosdem.orgstappers Tell us what you see in the logging of the DHCP server. Tell us what you see with tools like tcpdump and/or wireshark. 19:33:16
19 Jul 2024
@ptempier:matrix.orgPascal Tempier joined the room.15:47:00

There are no newer messages yet.


Back to Room ListRoom Version: 6