<div dir="ltr"><pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px;color:rgb(0,0,0)">Below command is failing for FC HBA passthrough from baremetal node(ubuntu 14.04.2 LTS 64 bit server) to nova virtual machines having ubuntu:
virsh attach-device $VIRSH_NAME $fcoe

where $VIRSH_NAME is 'nova instance property named  OS-EXT-SRV-ATTR:instance_name  having value say instance-0000000b'

and $fcoe is a xml file having contents
"<hostdev mode='subsystem' type='pci' managed='yes'><source><address domain='0x0000' bus='0x03' slot='0x00' function='0x1'/></source></hostdev>"

Below is error which we are getting:

23:16:42 2015-07-31 06:16:41.741 | error: Failed to attach device from /tmp/tmp.k66oiZC7eg_fcoe.xml
23:16:42 2015-07-31 06:16:41.744 | error: internal error: unable to execute QEMU command 'device_add': Device initialization failed.</pre><pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px;color:rgb(0,0,0)"><br></pre><pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px;color:rgb(0,0,0)">Same command is working in ubuntu 14.04.01.</pre><pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px;color:rgb(0,0,0)">below is difference in qemu packages in two versions of ubuntu:</pre><pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px"><font color="#000000" face="Bitstream Vera Sans Mono, monospace"><span style="font-size:13px"><a href="http://paste.openstack.org/show/406571/">http://paste.openstack.org/show/406571/</a><br></span></font></pre><pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px;color:rgb(0,0,0)"><br></pre><pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px;color:rgb(0,0,0)"><br></pre></div>