<div dir="ltr">Yes, it made libvirt unusable and had to install apparmor it again.<div><br></div><div>Tried again on a linux VM got the same error : </div><div><br></div><div><span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Successfully execute network driver operation: pre.</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-30' '02:00:c0:a8:7a:13' 'virbr0' 'virtio' 'dummy' 30 kvm-node</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span class="" style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: attach_nic: Command "virsh --connect qemu:///system attach-device one-30 <(</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: cat <<EOT</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: <interface type='bridge'></span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: <source bridge='virbr0'/></span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: <mac address='02:00:c0:a8:7a:13'/></span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: <model type='virtio'/></span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: </span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: </interface></span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: EOT</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: )" failed: error: Failed to attach device from /dev/fd/63</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: error: internal error: unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span class="" style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: Could not attach () to one-30</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: ExitCode: 1</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px;background-color:rgb(111,111,111)">Wed Aug 27 18:20:33 2014 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic.</span><br style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">
<span class="" style="color:rgb(242,242,242);font-family:'Open Sans',sans-serif;font-size:14px;line-height:14px">Wed Aug 27 18:20:33 2014 [Z0][VMM][E]: Error attaching new VM NIC: Could not attach () to one-30</span><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 27, 2014 at 6:12 PM, Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can try but I think disabling apparmor will make libvirt unusable.<br>
I'm not sure about it.<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Aug 27, 2014 at 2:20 PM, kiran ranjane <<a href="mailto:kiran.ranjane@gmail.com">kiran.ranjane@gmail.com</a>> wrote:<br>
> Hi Javier,<br>
><br>
> I am using Ubuntu 14.04 as host OS, Do you want me to disable apparmor?<br>
><br>
> Regards<br>
> Kiran Ranjane<br>
><br>
><br>
> On Wed, Aug 27, 2014 at 5:44 PM, Javier Fontan <<a href="mailto:jfontan@opennebula.org">jfontan@opennebula.org</a>><br>
> wrote:<br>
>><br>
>> There seems to be a problem related with libvirt and selinux. Can you<br>
>> try disabling SElinux and doing the attach again? Virtio nic attach is<br>
>> supported.<br>
>><br>
>> On Fri, Aug 22, 2014 at 2:01 PM, kiran ranjane <<a href="mailto:kiran.ranjane@gmail.com">kiran.ranjane@gmail.com</a>><br>
>> wrote:<br>
>> > Hello Everyone,<br>
>> ><br>
>> > I am getting error while hot plugging virtio nic model to VM<br>
>> > One 4.8<br>
>> > Host - Ubuntu 14.04<br>
>> > VM - Windows 2008 R2 (Virtio Drivers already install in the VM)<br>
>> ><br>
>> ><br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Command execution fail:<br>
>> > /var/tmp/one/vmm/kvm/attach_nic 'one-15' '02:00:c0:a8:7a:08' 'virbr0'<br>
>> > 'virtio' 'dummy' 15 kvm-node<br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: attach_nic: Command "virsh<br>
>> > --connect<br>
>> > qemu:///system attach-device one-15 <(<br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: cat <<EOT<br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: <interface type='bridge'><br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: <source bridge='virbr0'/><br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: <mac<br>
>> > address='02:00:c0:a8:7a:08'/><br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: <model type='virtio'/><br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][I]:<br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: </interface><br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: EOT<br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: )" failed: error: Failed to<br>
>> > attach<br>
>> > device from /dev/fd/63<br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: error: internal error: unable to<br>
>> > execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS<br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Could not attach () to one-15<br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: ExitCode: 1<br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][I]: Failed to execute virtualization<br>
>> > driver operation: attach_nic.<br>
>> > Fri Aug 22 17:22:41 2014 [Z0][VMM][E]: Error attaching new VM NIC: Could<br>
>> > not<br>
>> > attach () to one-15<br>
>> ><br>
>> > Regards<br>
>> > Kiran Ranjane<br>
>> ><br>
>> > _______________________________________________<br>
>> > Users mailing list<br>
>> > <a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
>> > <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Javier Fontán Muiños<br>
>> Developer<br>
>> OpenNebula - Flexible Enterprise Cloud Made Simple<br>
>> <a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Javier Fontán Muiños<br>
Developer<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a><br>
</div></div></blockquote></div><br></div>