banger/internal/guestnet
Thales Maciel 14d8563f3c
Stop using kernel IP autoconfig for runtime VMs
Avoid the Alpine boot stall caused by kernel ip= autoconfig running before
virtio_net is available.

Split runtime and image-build boot args so managed VMs boot without kernel
network autoconfig, inject a static guest network config plus bootstrap
script into the runtime overlay, and keep image builds on the old path for
compatibility with existing base images.

Preserve executable bits when patching guest files into ext4 images and add
coverage for the new boot-arg split and guest network config generation.

Validated with go test ./..., a rebuilt Alpine image, and a fresh alp-fast
create/ssh check that brought vm.start down to about 2.7s.
2026-03-21 21:54:18 -03:00
..
assets Stop using kernel IP autoconfig for runtime VMs 2026-03-21 21:54:18 -03:00
guestnet.go Stop using kernel IP autoconfig for runtime VMs 2026-03-21 21:54:18 -03:00
guestnet_test.go Stop using kernel IP autoconfig for runtime VMs 2026-03-21 21:54:18 -03:00