Score:0

netplan + libvirt - Should I set up virbr0 virtual bridge?

us flag

As far as I understand, the interfaces virbr0 and virbr0-nic are created and managed by libvirt.


● 4: virbr0
       Link File: /lib/systemd/network/99-default.link
    Network File: n/a
            Type: ether
           State: no-carrier (unmanaged)
          Driver: bridge
      HW Address: 52:54:00:0f:26:e6
         Address: 192.168.122.1

● 5: virbr0-nic
       Link File: /lib/systemd/network/99-default.link
    Network File: n/a
            Type: ether
           State: off (unmanaged)
          Driver: tun
      HW Address: 52:54:00:0f:26:e6

However libvirt did not add anything in my netplan folder (also doesn't show up in nmcli or in /etc/network/interfaces). I assume that those interfaces are created and brought up by libvirt upon the starting of the daemon.

So is it good practice not to specify them in netplan or should I add them in my configuration ?

Also, how would, theoretically, the configuration for a natted virtual bridge look like according to netplan ?

Score:0
cz flag

You should not set up anything in netplan for interfaces that it does not manage. That includes things like libvirt, docker, ovs, or whatever.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.