OpenNebula / addon-xen

Xen hypervisor add-on
3 stars 13 forks source link

Remove mac check that fails with some recent Xen hypervisors #10

Open lgrawet opened 7 years ago

lgrawet commented 7 years ago

Hi,

"xl network-list" is now returning a null mac address with recent Ubuntu 14.04 updates. Therefore, I had to remove the mac address check from nic-xen.rb

Best regards,

Laurent

rsmontero commented 7 years ago

I'm not sure about this one, if a VM has two interfaces it will always set the last one, we need somehow to check the NIC we are referring to. In the case of KVM we are now setting the target (the name of the tap device), for Xen we only have the MAC address. I'll be glad to add any other attribute in the NIC stanza in the Xen dom file in OpenNebula core.

lgrawet commented 7 years ago

Ok, I see the point. I probably have to look first why xl network-list is returning this:

$ xl network-list 16
Idx BE Mac Addr.         handle state evt-ch   tx-/rx-ring-ref BE-path
0   0  00:00:00:00:00:00     0     4     18  1282/1281        /local/domain/0/backend/vif/16/0
0   0  00:00:00:00:00:00     0     4     18  1282/1281        /local/domain/0/backend/vif/16/0

instead of this:

$ xl network-list 142
Idx BE Mac Addr.         handle state evt-ch   tx-/rx-ring-ref BE-path
0   0  02:00:0a:21:0f:0d     0     4     48    66/1280        /local/domain/0/backend/vif/142/0
1   0  02:00:0a:13:00:6b     1     4     49   113/1792        /local/domain/0/backend/vif/142/1

with latest Ubuntu 14.04 updates.