network root bridge problem
In trying to get dom0 running diskless, i've come across the problem where for a short time there is no network connectivity and so iscsi is unreachable. What is the accepted workaround? I can think of the following:
. do it in initrd. I'd rather not put this sort of setup info in the initrd though.
. patch brctl to do it in one hit. Looks easy but is it safe? Someone mentioned that the whole exe may not be loaded at that point and so could fail to load the rest if it needs to.
. patch the kernel to support an 'add if to bridge + migrate address' ioctl. This is probably best and looks pretty easy via an extra parameter to the existing addif ioctl.
What is everyone else doing?
James
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 7 lines
In trying to get dom0 running diskless, i've come across the problem where for a short time there is no network connectivity and so iscsi is unreachable. What is the accepted workaround? I can think of the following:
. do it in initrd. I'd rather not put this sort of setup info in the initrd though.
You could allow your initrd to take configuration parameters from the kernel command line (they're available as environment variables in the linuxrc).
Quoted 3 lines
. patch brctl to do it in one hit. Looks easy but is it safe? Someone mentioned that the whole exe may not be loaded at that point and so could fail to load the rest if it needs to.
If you're hacking brctl you could mlock the pages.
Quoted 3 lines
. patch the kernel to support an 'add if to bridge + migrate address' ioctl. This is probably best and looks pretty easy via an extra parameter to the existing addif ioctl.
Rather than doing this, I'd be inclined to hack the bridge code such that packets to a local IP are received rather than bridged. The current situation is at best inconsistent, where if a bridged interface has an IP address the host can still send packets with that IP on the interface, but it just can't receive. I'm not convinced that's the intended behaviour...
Ian
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl