Configure Network Interface
Information
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.
Example
The configuration will exclude all interfaces with the names matching the patterns[guestinfo] exclude-nics=docker*,veth*
docker*
and
veth*
from GuestInfo.
Set Primary and Low Priority
Interfaces
The options
primary-nics
and
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.
Example
The configuration ensures that the IP address for[guestinfo] primary-nics=eth1
eth1
will be sorted on top of the list of IP addresses.
Example
[guestinfo] primary-nics=eth*
This configuration ensures that any address in the interfaces matching
eth*
is sorted on top of the list of IP addresses.
Example
This configuration ensures that any address in the interfaces matching[guestinfo] low-priority-nics=eth*
eth*
is sorted at the bottom of the list of IP
addresses.
After the limit of
the number of interfaces to be reported is reached, low priority interfaces are
the first to be skipped.