-
Couldn't load subscription status.
- Fork 0
Description
Is your feature request related to a problem? Please describe.
Currently, Alpine Linux only successfully boots when ip=dhcp is defined in the iPXE boot script. This is not entirely acceptable, it needs to support static IP definitions.
Describe the solution you'd like
The ip kernel parameter must take and apply a static IP definition of the form described in the Alpine initramfs-init script defined here
Describe alternatives you've considered
We could continue to rely on DHCP, or perhaps offer it as an option if users would prefer to use that over static IPs.
Additional context
This has been a super annoying issue for a while, a qemu example using raw kernel/initramfs files is shown below, run from the root of this project directory after the alpine build script has run at least once.
#!/bin/sh
qemu_args=(
-enable-kvm
-cpu max
-smp 4
-m 4096
-kernel ./deploy/serve/www/iso/alpine-netboot/boot/vmlinuz-lts
-initrd ./deploy/serve/www/iso/alpine-netboot/boot/initramfs-lts
-serial mon:stdio
# Confirmed correct IP syntax example
-append "console=ttyS0 init=/sbin/init ip=10.0.2.15::10.0.2.2:255.255.255.0::eth0:off:10.0.2.3:: alpine_repo=http://dl-cdn.alpinelinux.org/alpine/v3.20/main"
-display none
-device virtio-net-pci,netdev=mynet0
-netdev user,id=mynet0
)
qemu-system-x86_64 "${qemu_args[@]}"I will update this issue should a successful iPXE-based boot occur.