Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No space left on device (http://ipxe.org/34182006)
2018-07-05, 10:13
Post: #6
RE: No space left on device (http://ipxe.org/34182006)
So, just a short update:

I managed to build and deploy a UEFI version. This works from the ipxe perspective!

But sadly, it does not work for me. We are running a Centos 7 which provides a 3.10 Kernel. This kernel version seems to have a bug on UEFI Ramdisk booting:
https://forum.ipxe.org/printthread.php?tid=8195
So I still need to figure out what is wrong with my IPXE - node combination in bios mode.

But for everyone running into the same problem and using a newer kernel (>3.16) here is a solution which should work:

This is my IPXE script:
Code:
#!ipxe

:retry_dhcp
echo Configuring network with DHCP...
dhcp || goto retry_dhcp
kernel nfs://10.131.33.101/srv/exports/boot-images/image-deployed/vmlinuz  initrd=initram ramdisk_size=8388608 root=/dev/ram0 edd=off HOSTNAME=${hostname} intel_pstate=disable intel_iommu=on user_namespace.enable=1 namespace.unpriv_enable=1

initrd --name initram nfs://10.131.33.101/srv/exports/boot-images/image-deployed/initramfs.img

boot || echo Booting via NFS failed!
echo In case of iPXE error 0x2a818006: Make sure the initramfs ramdisk_size is large enough to fit the boot image.

Note the initrd=<name> option in the kernel line. This is required for a UEFI boot system.

building this image works with:
Code:
make bin-x86_64-efi/ipxe.efi EMBED=../../boot-datev-node-centos-from-datev01-via-nfs-efi.ipxe

I additionally configured my dnsmasq to send the uefi file only to uefi nodes:
Code:
# Test for the architecture of a netboot client. PXE clients are
# supposed to send their architecture as option 93. (See RFC 4578)
dhcp-match=x86PC, option:client-arch, 0 #BIOS x86
dhcp-match=BC_EFI, option:client-arch, 7 #EFI x86-64

# Load different PXE boot image depending on client architecture
pxe-service=tag:x86PC,X86PC, "Install Linux on x86 legacy BIOS", undionly.kpxe
pxe-service=tag:BC_EFI,BC_EFI, "Install Linux on x86-64 UEFI", ipxe.efi


# Set boot file name only when tag is "bios" or "uefi"
dhcp-boot=tag:x86PC,undionly.kpxe  # for Legacy BIOS detected by dhcp-match above
dhcp-boot=tag:BC_EFI,ipxe.efi # for UEFI arch detected by dhcp-match above
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: No space left on device (http://ipxe.org/34182006) - oehlrich9 - 2018-07-05 10:13



User(s) browsing this thread: 1 Guest(s)