8000 Include local soft network bridge · Issue #90 · epics-training/training-vm · GitHub
[go: up one dir, main page]

Skip to content

Include local soft network bridge #90

Open

Description

@mdavidsaver

As part of #88 we encountered situations where the emulated network adapter connecting to the VM host did not come up on boot. This triggers known issues with CA and PVA peers not correctly handling startup with only a loopback. eg. AA will start, but be unable to connect to any PVs. The immediate resolution was to fix the emulated NIC configuration and reboot the VM.

A more reliable configuration would be to add an always on, broadcast capable, NIC for PVA/CA peers to find. I encounter this situation regularly when roaming with my laptop. My solution is to create a dummy software bridge. A linux soft bridge supports broadcasts.

The complication in the context of this repository will be in how to supply network configuration. I know how to configure with Debian /etc/network/interfaces, and with systemd-networkd. Neither are universally available. I do not know how to configure with NetworkManager.

@waynelewis fyi.

Activity

  1. mdavidsaver commented on Jun 10, 2026

    @mdavidsaver
    Author

    eg. with systemd-networkd

    Creates a bridge interface br0, with an associated tap0 attached to it. The tap is necessary as a bridge is only UP when at least one attached interface is UP. The KeepCarrier=yes forces the otherwise unused tap0 to be UP.

    $ grep . /etc/systemd/network/*
    /etc/systemd/network/1_br0_tap0.network:[Match]
    /etc/systemd/network/1_br0_tap0.network:Name=tap0
    /etc/systemd/network/1_br0_tap0.network:[Network]
    /etc/systemd/network/1_br0_tap0.network:Bridge=br0
    /etc/systemd/network/br0.netdev:[NetDev]
    /etc/systemd/network/br0.netdev:Name=br0
    /etc/systemd/network/br0.netdev:Kind=bridge
    /etc/systemd/network/br0.netdev:MACAddress=none
    /etc/systemd/network/br0.netdev:[Bridge]
    /etc/systemd/network/br0.netdev:STP=no
    /etc/systemd/network/br0.network:[Match]
    /etc/systemd/network/br0.network:Name=br0
    /etc/systemd/network/br0.network:[Network]
    /etc/systemd/network/br0.network:Address=10.20.30.1/24
    /etc/systemd/network/tap0.netdev:[NetDev]
    /etc/systemd/network/tap0.netdev:Name=tap0
    /etc/systemd/network/tap0.netdev:Kind=tap
    /etc/systemd/network/tap0.netdev:MACAddress=none
    /etc/systemd/network/tap0.netdev:[Tap]
    /etc/systemd/network/tap0.netdev:KeepCarrier=yes
    
  2. ralphlange commented on Jun 11, 2026

    @ralphlange
    Contributor

    As part of #88 we encountered situations where the emulated network adapter connecting to the VM host did not come up on boot.

    I have never seen that happening in the trainings where the VM was used.
    Which means I think this might be something related to the out-of-normal version of VBox or the out-of-usual way of creating the VM that you used.

    Anyway, this does not seem harmful or getting in the way, so I'm all for it, once we have it confirmedly working on all target systems and architectures.

  3. mdavidsaver commented on Jun 11, 2026

    @mdavidsaver
    Author

    ... something related to the out-of-normal version of VBox or the out-of-usual way of creating the VM that you used. ...

    A reasonable suspicion. The .ova file had accidentally been unzipped, and a new VM had been created using only the disk file. Apparently Windows file explorer is made to recognize .ova as an archive, so a double click shows the contents, and vbox binds to .vmdk files to begin the process of creating a new VM. So a couple of extra mouse clicks was all it took to start down this wrong path. Such convenience!

    ... working on all target systems and architectures.

    Is "all target systems" a closed set for training-vm? eg. just RH and Debian derivative distros? What about NetworkManager vs. networkd vs. ...? You set a really high threshold otherwise.

    Practically, I think I am looking for pointers for if/how to make this conditional in the Ansible world.

  4. ralphlange commented on Jun 11, 2026

    @ralphlange
    Contributor

    We are targeting four flavors, two of each family:

    • Rocky
    • Fedora
    • Debian stable
    • Ubuntu

    Only one version of each of those, updating as we go.
    Trying to do only one setup of how-to-do stuff that works on all of them.

    See https://github.com/epics-training/training-vm/tree/main/ansible/vars/os for the differences, plus a few when: is_debian and when: is_redhat in the roles/tasks.

  5. added
    cloud-init
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cloud-init

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0