[GH-ISSUE #390] Using preseed with Ubuntu installer, DHCP fails, how to specify static IP without manual interaction? #151

Closed
opened 2026-02-27 14:50:35 +03:00 by kerem · 4 comments
Owner

Originally created by @orange888 on GitHub (Nov 16, 2019).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/390

Originally assigned to: @antonym on GitHub.

Hi,
I am using a preseed file, inside the ubuntu installer, how do I configure the ubuntu installer static IP? how do I get around the DHCP?

https://imgur.com/a/YRN1UIy

I would like this to be fully automated.

Thanks.

Originally created by @orange888 on GitHub (Nov 16, 2019). Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/390 Originally assigned to: @antonym on GitHub. Hi, I am using a preseed file, inside the ubuntu installer, how do I configure the ubuntu installer static IP? how do I get around the DHCP? [https://imgur.com/a/YRN1UIy](https://imgur.com/a/YRN1UIy) I would like this to be fully automated. Thanks.
kerem 2026-02-27 14:50:35 +03:00
Author
Owner

@orange888 commented on GitHub (Nov 16, 2019):

Because I had to configure the netboot IP in the beginning to get to the main menu, can the netboot pass the static ip information to the ubuntu installer?

Thanks.

<!-- gh-comment-id:554593265 --> @orange888 commented on GitHub (Nov 16, 2019): Because I had to configure the netboot IP in the beginning to get to the main menu, can the netboot pass the static ip information to the ubuntu installer? Thanks.
Author
Owner

@antonym commented on GitHub (Nov 17, 2019):

Probably will need to add static support to Ubuntu, Debian:

Either it'll need to be in preseed format like this or:

isset ${dhcp-server} || set netcfg netcfg/get_ipaddress=${netX/ip} netcfg/get_netmask=${netX/netmask} netcfg/get_gateway=${netX/gateway} netcfg/get_nameservers=${dns} netcfg/disable_autoconfig=true

or ip= format for casper:
http://manpages.ubuntu.com/manpages/bionic/man7/casper.7.html

Would also need to find out how you can have it select interface to use by the mac address iPXE booted into. i.e. BOOTIF=${netX/mac}

<!-- gh-comment-id:554781545 --> @antonym commented on GitHub (Nov 17, 2019): Probably will need to add static support to Ubuntu, Debian: Either it'll need to be in preseed format like this or: ``` isset ${dhcp-server} || set netcfg netcfg/get_ipaddress=${netX/ip} netcfg/get_netmask=${netX/netmask} netcfg/get_gateway=${netX/gateway} netcfg/get_nameservers=${dns} netcfg/disable_autoconfig=true ``` or ip= format for casper: http://manpages.ubuntu.com/manpages/bionic/man7/casper.7.html Would also need to find out how you can have it select interface to use by the mac address iPXE booted into. i.e. BOOTIF=${netX/mac}
Author
Owner

@github-actions[bot] commented on GitHub (Nov 24, 2020):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:732531578 --> @github-actions[bot] commented on GitHub (Nov 24, 2020): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Author
Owner

@antonym commented on GitHub (Nov 24, 2020):

Focal and Groovy now use the Subiquity installer. I've added support to leverage an interactive fallback if DHCP is not found. It does use the new auto install instead of typical Debian preseed though.

github.com/netbootxyz/netboot.xyz@40d124473d

<!-- gh-comment-id:733054604 --> @antonym commented on GitHub (Nov 24, 2020): Focal and Groovy now use the Subiquity installer. I've added support to leverage an interactive fallback if DHCP is not found. It does use the new auto install instead of typical Debian preseed though. https://github.com/netbootxyz/netboot.xyz/commit/40d124473d0fd08a39187dc965809c83e51ac141
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#151
No description provided.