Description of problem: start the virtual machine with SRIOV VF macvtap devices, detach the first macvtap device, then live migrate the vm to another host. After migration has been finished, detach one of the macvtap devices again. You will found detach operation is faild, there is an error like this one "2016-02-25 03:39:28.082+0000: 17161: error : virDomainNetFindIdx:13439 : operation failed: no device matching mac address 00:d0:d0:02:01:02 found on 0000:00:07.0". Version-Release number of selected component (if applicable): 1.2.21 How reproducible: Steps to Reproduce: 1. start vm with SRIOV VF macvtap devices 2. detach the first macvtap device 3. live migrate the vm to anoter host 4. detach macvtap device again Actual results: detaching is failed with error " error : virDomainNetFindIdx:13439 : operation failed: no device matching mac address 00:d0:d0:02:01:02 found on 0000:00:07.0" Expected results: detaching is successful after vm migrationg. Additional info: after migration newDef has been changed! struct _virDomainObj { ...... virDomainDefPtr def; /* The current definition */ virDomainDefPtr newDef; /* New definition to activate at shutdown */ ..... }
Can you give the full VM XML and device XML you are trying to detach? Since it appears you've poked into the code, can you try and debug a bit more what you think is going wrong?
(In reply to Cole Robinson from comment #1) > Can you give the full VM XML and device XML you are trying to detach? > Since it appears you've poked into the code, can you try and debug a bit > more what you think is going wrong? Late, I will chech and show the xml. After the migration, VM config definition is diferent from live definition. When detaching the device according VM live defintion, there will be an error in detaching VM config definition. Thanks.
(In reply to Cole Robinson from comment #1) > Can you give the full VM XML and device XML you are trying to detach? > Since it appears you've poked into the code, can you try and debug a bit > more what you think is going wrong? The device xml is similar to : <interface type='direct'> <mac address='00:d6:d1:00:05:03'/> <source dev='enp132s31f5' mode='passthrough'/> <target dev='macvtap0'/> <model type='virtio'/> <driver name='vhost'/> <link state='up'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03'function='0x0'/> </interface> <interface type='direct'> <mac address='00:d6:d1:00:05:03'/> <source dev='enp132s25f6' mode='passthrough'/> <target dev='macvtap1'/> <model type='virtio'/> <driver name='vhost'/> <link state='up'/> <alias name='net1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04'function='0x0'/> </interface> a pair of bond network interfaces