mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-04-25 23:25:54 +03:00
[GH-ISSUE #1578] Passing manual network config to kernel #518
Labels
No labels
Hacktoberfest
Hacktoberfest
bootloader
bsd
bug
confirmed
documentation
duplicate
enhancement
enhancement
enhancement
eol
experimental-merged
freebsd
help wanted
invalid
investigate
ipxe
linux
live-os
memdisk
menu
no-issue-activity
no-issue-activity
pull-request
released
todo
upstream
windows
windows
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/netboot.xyz#518
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jsschmid on GitHub (Feb 24, 2025).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1578
Hey!
First of all: Thanks a lot for the project! It's a huge timesaver and it's really convenient.
I use it for installing distros and it worked really fine, untill ...
... there was no DHCP. It actually didn't cause a problem for netboot, as there is the manual network configuration.
However, the section live CDs mostly fails, because the distros assuming there should be a DHCP.
e.g. when trying to boot anything from the "Utilities" section it'll fail, as it doesn't get a IP / Gateway / DNS / Netmask
and there seems no way to set it manually.
No easy way at least.
But there is a way: I've looked at the menu on Github. There is for example the menu of OpenSUSE, which, if netboot.xyz was started with manual network configuration, takes this very configuration and passes it on to the kernel.
github.com/netbootxyz/netboot.xyz@8d25c1167d/roles/netbootxyz/templates/menu/opensuse.ipxe.j2Wouldn't it be really nice to have this option for all the options from the menue?
I'm not to keen on grub2 so it'd quite some time until I could submit a pull request which would work. It should be something like
linux /vmlinuz-... ip=192.168.1.100::192.168.1.1:255.255.255.0::eth0:offOr in case of the OpenSUSE example using the variables from the manual network configuration entered booting netboot.xyz. Something like
set netsetup netsetup=hostip,gateway,nameserver hostip=${ip}/${prefix} gateway=${gateway} nameserver=${dns}set netsetup ${netsetup} BOOTIF=${netX/mac}kernel ${opensuse_mirror}/${dir}/${kernel_url}/linux ${netsetup} ...It would be to helpful for example to change an root lvm in size witout having to make leaps to get a distro on a local non lvm partition. Or set up a boot iso, beacuse its really not convenient for some providers.
I could just add netboot.xyz in the grub2 boot menue and boot it up as needed without any hassle.