Public bug reported:

Hi,

I am on Ubuntu 16.04.2 LTS with libvirt-bin v1.3.1-1ubuntu10.15

When trying to hot add a NIC using virsh normally, it works.

However, if I try to add a --model virtio, I get the following error:

error: Failed to attach interface
error: internal error: unable to execute QEMU command 'getfd': No file 
descriptor supplied via SCM_RIGHTS

So this works:

virsh attach-interface --domain mydomain --type network --source
mytestnetwork --mac "02:20:c5:8b:22:12" --config --live

but this fails:

virsh attach-interface --domain mydomain --type network --source
mytestnetwork --model virtio --mac "02:20:c5:8b:22:13" --config --live

This is the exact same bug that was reported here -
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1322568

It was fixed in 14.04 but it looks like the bug fix never made it to
Xenial

I tested the bug fix mentioned in the link above (updating the AppArmor
profile) and it works to resolve it here as well but I thought I'd open
this bug report so others can benefit and the the bug can be fixed at
the package level.

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1739674

Title:
  virsh Fails at Hot Plugging Network Device with model virtio

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1739674/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to