-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support PXE booting in vmtest #121
Comments
There are two routes I see for how to implement this:
Using Line 194 in 962d503
AFAICT dnsmasq supports dhcpv6 address ranges / router-advertisements for SLAAC as well as setting DHCPv6 options including bootfile urls. It can also serve tftp directly, so it's really an all-in-one solution
Implementing from scratch might be more interesting, but requires more upfront investment before seeing results. I have left some notes about how that could be implemented below: https://github.com/facebookincubator/dhcplb/ is Facebook's DHCP server - internally it uses https://github.com/insomniacslk/dhcp some maybe-helfpul rfcs: |
This is the initrd that I mentioned, you can use the antlir/antlir/linux/initrd/vmtest/BUCK Line 114 in f5a42c2
|
Just to put some info here for the next person who will tackle this:
I found this network infrastructure quite hard to test on a local machine, but eventually figured out QEMU wasn't sending DHCPv6 requests, thus the item 1 on the list above. $ qemu-system-x86_64 \
-netdev user,id=net0,tftp=path/to/tftp,bootfile=pxelinux.0 \
-device virtio-net-pci,netdev=net0,mac=00:00:00:00:00:01 |
The text was updated successfully, but these errors were encountered: