<div dir="ltr"><div>Package: libvirt<br>
Version: 8.0.0</div><div><br></div><div>Hot-unplugging a virtual network interface with "virito" model from a running VM, restarting the VM and trying to hot-plug the same virtual network interface fails.<br></div><div>
<br>
You can recreate problem by running these steps:<br><div class="gmail-adL"><br></div><div class="gmail-adL">0. (Have some VM, let's call it "vm1")</div><div class="gmail-adL"><br></div><div class="gmail-adL">1. echo "<interface type='network'><source network='default'/><model type='virtio'/></interface>" > /tmp/ifacexml<br></div><div class="gmail-adL"><br>2. virsh start vm1</div><div class="gmail-adL"><br></div><div class="gmail-adL">3. virsh attach-device --file /tmp/ifacexml --domain vm1 --live --config <br></div><div class="gmail-adL"><br>
</div>4. virsh detach-device --file /tmp/ifacexml --domain vm1 --live --config <br><br>5. virsh destroy vm1<br><br>6. virsh start vm1<br><br><div>7. virsh attach-device --file /tmp/ifacexml --domain vm1 --live --config <br></div><div><br></div><div>Actual result:</div><div>In step 7, command fails and outputs this error:<br></div><div>error: Failed to attach device from ifacexml<br>error: internal error: unable to execute QEMU command 'getfd': No file descriptor supplied via SCM_RIGHTS</div><div><br></div><div>Expected result:</div><div>In step 7, the interface should be attached successfully<br><div><br>
System information:<br></div><div>Distributor ID: Debian<br>Description:    Debian GNU/Linux bookworm/sid<br>Release:        testing<br>Codename:       bookworm
</div></div></div></div>