mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-04-25 23:25:54 +03:00
[GH-ISSUE #1231] VyOS does not boot with manual IP configuration #1894
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#1894
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 @b- on GitHub (Apr 11, 2023).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1231
Describe the bug
If there isn’t a good DHCP server on the network, booting VyOS from netboot.xyz results in hanging in the initrd. The VyOS option in the iPXE menu doesn’t pass the manual IP configuration that was given to NetBoot.xyz into the kernel cmdline as required, so it always attempts DHCP.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
VyOS should boot up to the VyOS login prompt, rather than getting stuck in initrd and dropping to a shell.
Screenshots
Additional context
I was chatting in an IRC room about this with a couple of people who figured out how to get it to actually boot. An excerpt from the convo with censored nicks stating how to specify a static IP address:
02:01 AM bri: also according to usr/bin/boot/9990-netbase.sh
02:01 AM there is a way to specify static address
02:03 AM STATICIP=ifname,ifaddress,ifnetmask,ifgateway,nameserver
I’ll try to see if I can figure this out more myself tomorrow and maybe open a PR, but I thought that opening an issue now would help a lot, too, especially in case I forget.
@antonym commented on GitHub (Apr 19, 2023):
Good info, you should be able to add it to the kernel command line via the utiltiies menu and then start it if you want to test if STATICIP= works. It sets a ${cmdline} var that adds additional params to the booting line of the kernel.
@b- commented on GitHub (Apr 20, 2023):
Hm, it doesn't seem to be picking up the STATICIP= parameter -- I tried
STATICIP=e2,172.23.217.102,255.255.255.224,172.23.217.97,1.1.1.1but it still goes to DHCP configuration.The same thing happens if I use eth0 as the device name i.e.,


STATICIP=eth0,172.23.217.102,255.255.255.224,172.23.217.97,1.1.1.1I think something is hacked up in the vyos/live-boot init scripts that breaks the static IP functionality 🤷
@CionSiu commented on GitHub (Aug 8, 2024):
Has this issue been updated?
my vps(no dhcp server) had the same problem when I tried to install vyos via netboot yesterday.