[GH-ISSUE #1231] VyOS does not boot with manual IP configuration #1894

Open
opened 2026-03-01 18:37:09 +03:00 by kerem · 3 comments
Owner

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:

  1. Disable your DHCP server (or go on, say, a VPS without one)
  2. Attempt to boot VyOS from the NetBoot.xyz install menu

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.

Originally created by @b- on GitHub (Apr 11, 2023). Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1231 **Describe the bug** <!-- A clear and concise description of what the bug is. --> 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: 1. Disable your DHCP server (or go on, say, a VPS without one) 2. Attempt to boot VyOS from the NetBoot.xyz install menu **Expected behavior** <!-- A clear and concise description of what the bug is. --> VyOS should boot up to the VyOS login prompt, rather than getting stuck in initrd and dropping to a shell. **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> **Additional context** <!-- Add any other context about the problem here. --> 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 <xxxx> bri: also according to usr/bin/boot/9990-netbase.sh 02:01 AM <xxxx> there is a way to specify static address 02:03 AM <xxxx> 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.
Author
Owner

@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.

<!-- gh-comment-id:1514147013 --> @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.
Author
Owner

@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.1 but it still goes to DHCP configuration.

image

image

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.1
image
image

I think something is hacked up in the vyos/live-boot init scripts that breaks the static IP functionality 🤷

<!-- gh-comment-id:1515629634 --> @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.1` but it still goes to DHCP configuration. ![image](https://user-images.githubusercontent.com/284789/233241117-6a0e91c4-38b0-482f-b9bd-dc350b3e2685.png) ![image](https://user-images.githubusercontent.com/284789/233241226-36bbc418-3b3d-4ff9-80c9-c3a20ca96cdd.png) 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.1` ![image](https://user-images.githubusercontent.com/284789/233241608-4e541564-c30a-472c-b121-dbe831d5ae50.png) ![image](https://user-images.githubusercontent.com/284789/233241744-c25da15a-296f-44ba-8ba7-e6d2acf2f56e.png) I think something is hacked up in the [vyos/live-boot](https://github.com/vyos/live-boot) init scripts that breaks the static IP functionality :shrug:
Author
Owner

@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.

<!-- gh-comment-id:2274691343 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/netboot.xyz#1894
No description provided.