安装了xen虚拟机,使用virsh create XXX.xml 启动虚拟机,然后ifconfig 发现多了,tap1.0 和vif1.0 网卡,为什么会出现两个?
安装了xen虚拟机,使用virsh create XXX.xml 启动虚拟机,然后ifconfig 发现多了,tap1.0 和vif1.0 网卡,为什么会出现两个?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
guest os只用了vif1.0,那么tap1.0是干嘛用的呢?
4.3 PV虚机只有一个vifX.N,而HVM虚机不安装PV Driver的时候会有两个网络接口vifX.N和tapX.N,而且实际上使用的是tapX.N。HVM虚机安装PV Driver并重启后,tapX.N会消失,使用vifX.N(若不重启还是使用tapX.N)
tap interfaces -> qemu-emulated NICs (realtek model by default), used
when no PV drivers installed (using OS' own driver for that model)
vif interfaces (the one that you can rename) -> xen network frontend
NICs, used when you have PV drivers installed (like GPLPV,
http://meadowcourt.org/downloads/)
the vif is a virtual interface that works with pv drivers in domU. The tap is a Qemu interface that is used with HVMs that don't have pv drivers. So, if you start a HVM domU, you'll
have the vif that Xen creates and the tap that Qemu creates, if pv drivers are available, then once they are loaded Domu uses them and the tap goes away, but if not then both remain, but only the tap interface is being used. Obviously, if you need more detailed explaination, then I'm of no further use.:)