VIRT(4)

πŸ“¦ version 11.0, in nixpkgs unstable

πŸ’– VIRT(4) πŸ’–

okay so bestie, welcome to the virt page β€” it lives in the Kernel Interfaces Manual, section 4, and it's all about the rump kernel virtual network interface. yes we're doing networking lore today 🫢


✨ NAME ✨

virt β€” the rump kernel virtual network interface, no cap πŸ’…


🌸 DESCRIPTION 🌸

okay so here's the vibe: the virt interface is literally the link between a rump kernel and a host tap(4) interface. that's its whole job. main character energy honestly.

and the mapping is so clean it hurts β€” interface number <n> always corresponds to the host tap interface tap<n>. always. every single time. iykyk πŸ”₯

so like, everything that goes down:

  • all data sent by virt is written into /dev/tap<n> ✨
  • all data read from /dev/tap<n> gets passed as Ethernet input to the rump kernel πŸ¦‹

that's it. that's the whole flow. eat.


πŸŽ€ creating & destroying πŸŽ€

you can create and destroy a virt interface in the normal fashion with ifconfig(8). no weird special rituals, no secret handshake. just ifconfig. slay πŸ’…


πŸ‘‘ the bridge glow-up πŸ‘‘

the host's tap(4) interface can be further bridged with hardware interfaces β€” and that's how you give a rump kernel full Internet access. like, it gets to actually touch the internet. iconic. 🌈

fr fr this is the part where your rump kernel stops being a little isolated baby and starts living its truth online 😭

πŸ¦‹ SEE ALSO πŸ¦‹

go read them, bestie, they're all linked in the group chat πŸ“šπŸ’–


and that's the page!! this one came from Debian, dated July 3, 2013 β€” vintage but still serving, lowkey. okay bye love u, go configure something cute πŸ’œπŸŽ€

πŸ“¦ where this page comes from