在 SLES12.1 上确定哪个 VIF 接口属于哪个 Xen 域

在 SLES12.1 上确定哪个 VIF 接口属于哪个 Xen 域

Xen Domain如上所述,我有以下列表:

Vm01<br>Vm02<br>Vm03<br>Vm04

并且使用明亮的网络与外界进行通信,在我启动4台VM后,它自动创建了4个vif接口,但现在我无法确定哪个接口属于哪台机器。

我在 Sles12.1 上安装 Xen hyper,内核是:3.12.62-60.62-xen

有人可以帮我解决这个问题吗,因为我是 Xen 的新手 :(。

预先感谢...

答案1

非常简单,vif 接口名称基于域 id:

# virsh list --all
 Id    Name                        State
 0     Domain-0                    running
 12    xen_vm127                   running
 13    xen_vm126                   running
 14    xen_vm125                   running
 16    xen_vm123                   running
 17    xen_vm124                   running

:~ # ip a
23: vif12.0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br1 state UNKNOWN group default qlen 512
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
24: vif13.0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br1 state UNKNOWN group default qlen 512
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
25: vif14.0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br1 state UNKNOWN group default qlen 512
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
27: vif16.0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br1 state UNKNOWN group default qlen 512
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
28: vif17.0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br1 state UNKNOWN group default qlen 512
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ffenter code here

相关内容