You can configure Network Interface information using the tools.conf configuration option.
Exclude Specific Interfaces from GuestInfo
To exclude specific interfaces from GuestInfo, set the option
exclude-nics to a comma separated list of network interfaces.
[guestinfo] exclude-nics=docker*,veth*The configuration will exclude all interfaces with the names matching the patterns
Set Primary and Low Priority Interfaces
low-priority-nics accept a list of comma separated patterns for interface names which are considered as primary or low priority network interfaces. This will cause the interface information to be put on top of the list for primary interfaces, and to the bottom for low priority interfaces.
[guestinfo] primary-nics=eth1The configuration ensures that the IP address for
eth1will be sorted on top of the list of IP addresses.
This configuration ensures that any address in the interfaces matching
eth* is sorted on top of the list of IP addresses.
[guestinfo] low-priority-nics=eth*This configuration ensures that any address in the interfaces matching
eth*is sorted at the bottom of the list of IP addresses.