2021-10-22
Naming interfaces used by libvirt virtual machines
The homeserver conway has an ever growing list of network interfaces, also due to adding a DMZ network. This was starting to look a bit messy, with things like:koos@conway:~$ /sbin/brctl show brwireless bridge name bridge id STP enabled interfaces brwireless 8000.4ccc6a8efa4b no enp10s0.3 vnet2 vnet9Solution: name the interfaces in the VM definitions, like:<interface type='bridge'> <source bridge='brdmz'/> <target dev='dmz-minsky'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface>And now names are more logical:koos@conway:~$ /sbin/brctl show brdmz bridge name bridge id STP enabled interfaces brdmz 8000.4ccc6a8efa4b no dmz-minsky enp10s0.11