<div dir="ltr">Hi,<div><br></div><div>I faced a couple of issues with libvirt update-device function:</div><div><br></div><div> 1. <a href="http://libvirt.org/hvsupport.html">http://libvirt.org/hvsupport.html</a> says that virDomainUpdateDeviceFlags is supported since 0.8.0 API version in qemu driver.</div>
<div>However when trying to update network device (changing source bridge of the interface) on Ubuntu with 0.9.8 libvirt version I get the following error:</div><div> "<i>this function is not supported by the connection driver: cannot modify network device configuration"</i></div>
<div>What may be the reason for such error?</div><div><i><br></i></div><div> 2. Not able to rename target device name of an interface. For example if have running instance with interface:</div><div><br></div><div><div><i>    <interface type='bridge'></i></div>
<div><i>      <mac address='fa:16:3e:80:f4:49'/></i></div><div><i>      <source bridge='qbre1894135-13'/></i></div><div><i>      <target dev='vnet0'/></i></div><div><i>      <model type='virtio'/></i></div>
<div><i>      <alias name='net0'/></i></div><div><i>      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/></i></div><div><i>    </interface></i></div>
</div><div><br></div><div>and then try to update:</div><div><br></div><div><div>  <i>$ sudo virsh update-device --persistent --config --live 1 dev.xml</i></div></div><div><i><br></i></div><div>where dev.xml:</div><div><div>
<br></div><div><i>    <interface type='bridge'></i></div><div><i>      <mac address='fa:16:3e:80:f4:49'/></i></div><div><i>      <source bridge='qbre1894135-13'/></i></div><div><i>      <target dev='tap123'/></i></div>
<div><i>      <model type='virtio'/></i></div><div><i>    </interface></i></div></div><div><i><br></i></div><div>I get:</div><div><i><br></i></div><div><div><div><i>  error: Failed to update device from dev.xml</i></div>
<div><i>  error: Operation not supported: cannot modify network device tap name</i></div></div></div><div><i><br></i></div><div>This happens even if rename vnet0 to tap123 manually with <i>ip link set vnet0 name tap123</i> before interface update.</div>
<div>And after instance reboot tap123 is renamed back to vnet0.</div><div>Is there a strong reason to not allow modifying network device tap name?</div><div><br></div><div>Will appreciate any assistance with  the described issues.</div>
<div><br></div><div>Thanks,</div><div>Oleg</div></div>