0

I recently created a bridge for my VMs inside cockpit ( Ubuntu LTS Server -20.x) and used it in my VMs. They work fine.

My understanding of cockpit was that it will use system configuration files for its tasks but however opening up my netplan configuration at /etc/netplan/00-installer-config.yaml I can see no definition for the bridge ( br0 ).

So any idea where the bridge configuration is kept when its created via cockpit ?

Thanks.

UPDATE 2 :

Solved. See answer

UPDATE 1:

As advised by @user535733 I have also looked at locations:

/usr/lib/systemd/network/
/usr/local/lib/systemd/network/
/run/systemd/network/
/etc/systemd/network/

but no br0 related settings there.

5
  • @user535733 - Checking now ... did not know of these locations ...
    – MarcoZen
    Apr 23 at 20:31
  • @user535733 - Nothing related there. Updated my post to reflect this.
    – MarcoZen
    Apr 23 at 20:38
  • @user535733 - the renderer in /etc/netplan/ is -> renderer: NetworkManager
    – MarcoZen
    Apr 23 at 21:25
  • @user535733 - the renderer line was non-existent in the initial setup, but i had to add renderer: NetworkManager to overcome failure to update software via Cockpit ( It gave error "Cannot refresh cache whilst offline ".
    – MarcoZen
    Apr 23 at 21:44
  • @user535733 - the location you gave was correct. Kindly add it as an answer and i will accept it. Thanks.
    – MarcoZen
    Apr 23 at 22:12
1

Check your netplan configuration.

If your renderer is networkd (common for servers), then check the following locations for the config files:

/usr/lib/systemd/network/
/usr/local/lib/systemd/network/
/run/systemd/network/
/etc/systemd/network/

If your renderer is NetworkManager (common for desktops), then check the following location for config files:

/etc/NetworkManager/system-connections 
  • You can also interact with NetworkManager using nmcli instead of browsing or editing NM config files manually.
3
  • Thanks ..... Much appreciated.
    – MarcoZen
    Apr 24 at 7:46
  • One more thing ... shouldnt /etc/netplan/the_yaml_file hold the bridge configuration if the renderer is networkd ?
    – MarcoZen
    Apr 24 at 9:24
  • Yes, that's correct.
    – user535733
    Apr 24 at 12:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.