Skip to content

Classify 'vnet' network devices#656

Merged
nokyan merged 1 commit intonokyan:mainfrom
aleasto:vnet
Apr 1, 2026
Merged

Classify 'vnet' network devices#656
nokyan merged 1 commit intonokyan:mainfrom
aleasto:vnet

Conversation

@aleasto
Copy link
Copy Markdown
Contributor

@aleasto aleasto commented Mar 30, 2026

One of these devices is created for every libvirt VM that is running:

<interface type="network">
  <mac address="52:54:00:a7:a2:6a"/>
  <source network="default" portid="7c98f5a6-53a4-4d70-8fa9-1fb8d2f313a3" bridge="virbr0"/>
  <target dev="vnet3"/>
  <model type="virtio"/>
  <alias name="net0"/>
  <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
</interface>
$ ip -d link show vnet3
7: vnet3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr0 state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:54:00:a7:a2:6a brd ff:ff:ff:ff:ff:ff promiscuity 1 allmulti 1 minmtu 68 maxmtu 65521
    tun type tap pi off vnet_hdr on persist off

@aleasto
Copy link
Copy Markdown
Contributor Author

aleasto commented Mar 30, 2026

In my libvirt configuration is see a single global bridge device and one tap device per VM.

While "Virtual Network Tap" is the more accurate description of the interface, perhaps it would be more useful to the user if we showed this as "Virtual Machine Network" or something like that?

One of these devices is created for every libvirt VM that is running:

<interface type="network">
  <mac address="52:54:00:a7:a2:6a"/>
  <source network="default" portid="7c98f5a6-53a4-4d70-8fa9-1fb8d2f313a3" bridge="virbr0"/>
  <target dev="vnet3"/>
  <model type="virtio"/>
  <alias name="net0"/>
  <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
</interface>

$ ip -d link show vnet3
7: vnet3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr0 state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:54:00:a7:a2:6a brd ff:ff:ff:ff:ff:ff promiscuity 1 allmulti 1 minmtu 68 maxmtu 65521
    tun type tap pi off vnet_hdr on persist off
@aleasto
Copy link
Copy Markdown
Contributor Author

aleasto commented Apr 1, 2026

In my libvirt configuration is see a single global bridge device and one tap device per VM.

While "Virtual Network Tap" is the more accurate description of the interface, perhaps it would be more useful to the user if we showed this as "Virtual Machine Network" or something like that?

I've decided to go for the more user-friendly name.

@nokyan
Copy link
Copy Markdown
Owner

nokyan commented Apr 1, 2026

Thank you! :)

@nokyan nokyan merged commit 3e6d8a4 into nokyan:main Apr 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants