NIC attach failed

Hello,

i got a problem, my OpenNebula is runing on debian with XEN.
I only got one single host.
if i try to add a second virtual nic the following is in the log:

Sat Jun 27 18:11:42 2015 [Z0][VMM][I]: ExitCode: 0
Sat Jun 27 18:11:42 2015 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Sat Jun 27 18:11:42 2015 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/xen4/attach_nic ‘one-90’ ‘02:00:c0:a8:0b:68’ ‘xenbr0’ ‘-’ ‘dummy’ 90 s2
Sat Jun 27 18:11:42 2015 [Z0][VMM][E]: attach_nic: Command “sudo /usr/sbin/xl network-attach one-90 bridge=xenbr0 mac=02:00:c0:a8:0b:68” failed: libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-bridge add [-1] exited with error status 1
Sat Jun 27 18:11:42 2015 [Z0][VMM][I]: libxl: error: libxl.c:1724:device_addrm_aocomplete: unable to add vif with id 1
Sat Jun 27 18:11:42 2015 [Z0][VMM][I]: libxl_device_nic_add failed.
Sat Jun 27 18:11:42 2015 [Z0][VMM][E]: Could not attach NIC (02:00:c0:a8:0b:68) to one-90
Sat Jun 27 18:11:42 2015 [Z0][VMM][I]: ExitCode: 1
Sat Jun 27 18:11:42 2015 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic.
Sat Jun 27 18:11:42 2015 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach NIC (02:00:c0:a8:0b:68) to one-90

can anybody help me with this problem, please ?

thanks

Try googling for:

 libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-bridge add [-1] exited with error status 1

as there are a few results for it.

I’m not sure if an opennebula misconfiguration can cause this, but i’d say it is a Xen thing. You can also try running the commands locally to see if there is any more hints or the parameters used are correct : sudo /usr/sbin/xl network-attach one-90 bridge=xenbr0 mac=02:00:c0:a8:0b:68