> + do you need to explicitly add the veth for the unikernel to the br0 bridge?
No, I believe Xen does it automatically for me when I do "xl create",
using one of the vif-* scripts. I don't know which one actually, is
there a way of asking Xen to print which script it is using?
> + what’s the rest of the output of `ip a` in dom0 — specifically, is there a
> veth device with the MAC address you expect listed? what ip4 address has that
> been assigned?
I attached the log (with a xl list to see the mapping vm<->id). The vif
interfaces do not seem to display any useful information in "ip a"; I'm
not sure if that's normal or not. Also, I don't know why, but the
unikernel seems to have two interfaces attached to it....
> + is the output of `brctl show` in dom0 useful?
> (http://www.microhowto.info/troubleshooting/troubleshooting_ethernet_bridging_on_linux.html)
aHA. The vif* interfaces are correctly connected to the bridge, but
"brctl showstp br0" shows that vif3.0 and vif3.1 are in "state
disabled". (while vif 1.0 and vif2.0 are in forwarding state)
# xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 1024 2 r----- 191.0
macaron 1 2048 2 r----- 5953.7
debtest 2 256 1 -b---- 17.0
network2 3 50 1 ---sc- 0.1
# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:08:a2:0b:3d:46 brd ff:ff:ff:ff:ff:ff
inet 51.15.171.237/24 brd 51.15.171.255 scope global enp1s0
valid_lft forever preferred_lft forever
inet6 fe80::208:a2ff:fe0b:3d46/64 scope link
valid_lft forever preferred_lft forever
3: br0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
inet 10.0.42.1/24 brd 10.0.42.255 scope global br0
valid_lft forever preferred_lft forever
inet6 fe80::fc2b:e2ff:feaf:b617/64 scope link
valid_lft forever preferred_lft forever
4: vif1.0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP group default qlen 32
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
inet6 fe80::fcff:ffff:feff:ffff/64 scope link
valid_lft forever preferred_lft forever
5: vif2.0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP group default qlen 32
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
inet6 fe80::fcff:ffff:feff:ffff/64 scope link
valid_lft forever preferred_lft forever
6: vif3.0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq master br0 state DOWN group default qlen 32
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
inet6 fe80::fcff:ffff:feff:ffff/64 scope link
valid_lft forever preferred_lft forever
7: vif3.1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq master br0 state DOWN group default qlen 32
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.feffffffffff no vif1.0
vif2.0
vif3.0
vif3.1
# ifconfig br0
br0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
inet 10.0.42.1 netmask 255.255.255.0 broadcast 10.0.42.255
inet6 fe80::fc2b:e2ff:feaf:b617 prefixlen 64 scopeid 0x20<link>
ether fe:ff:ff:ff:ff:ff txqueuelen 1000 (Ethernet)
RX packets 116644 bytes 124465343 (118.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 104947 bytes 14359978 (13.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# brctl showstp br0
br0
bridge id 8000.feffffffffff
designated root 8000.feffffffffff
root port 0 path cost 0
max age 20.00 bridge max age 20.00
hello time 2.00 bridge hello time 2.00
forward delay 15.00 bridge forward delay 15.00
ageing time 0.00
hello timer 0.00 tcn timer 0.00
topology change timer 0.00 gc timer 0.66
flags
vif1.0 (1)
port id 8001 state forwarding
designated root 8000.feffffffffff path cost 100
designated bridge 8000.feffffffffff message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
vif2.0 (2)
port id 8002 state forwarding
designated root 8000.feffffffffff path cost 100
designated bridge 8000.feffffffffff message age timer 0.00
designated port 8002 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
vif3.0 (3)
port id 8003 state disabled
designated root 8000.feffffffffff path cost 100
designated bridge 8000.feffffffffff message age timer 0.00
designated port 8003 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
vif3.1 (4)
port id 8004 state disabled
designated root 8000.feffffffffff path cost 100
designated bridge 8000.feffffffffff message age timer 0.00
designated port 8004 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
_______________________________________________
MirageOS-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/mirageos-devel