1

In this scenario, I have a machine that boots its root volume off of iSCSI, and it only has a single network interface. If network configuration is done the normal way, then taking the interface down to add it to the bridge would kill the connection, and the machine would hang since it would lose access to its root device.

Setting up the bridge in the initramfs pre-boot environment would seem like the right approach here....

Recent versions of CentOS/Redhat support this in dracut with the "bridge" kernel parameter, but I am unable to find the equivalent way to do this for Ubuntu Server.

Ubuntu's default busybox-initramfs package does not include brctl, so it looks like everything would need to be set up manually....

2 Answers2

0

Looks like you get to do everything yourself; Ubuntu doesn't seem to have any support for this scenario. I suggest opening a feature request on Launchpad.

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
  • A small boot script doing the bridge creation and configuration, running in the **init-premount** stage solved my need. Having it create the bridge and run __configure_networking__ then allows for it to be configured using the **ip** kernel parameter. – Herby Gillot Feb 22 '13 at 05:01
0

The connection need not be killed. Have a look at this question (and my answer):

Bridge to a used eth1 card without losing connection via that card

In your case you need to copy the needed commands (including libs) to tmpfs before, of course, and probably have to execute them in a chroot environment.

Hauke Laging
  • 5,285
  • 2
  • 24
  • 40
  • Thank you for your suggestion. I tried it, and it did work, but I still think that doing the configuration pre-boot, rather than hot-swapping the address post-boot is the better way to go. – Herby Gillot Feb 22 '13 at 04:33