<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi, All <div><br></div><div>There is following issue in latest libvirt-4.5.0-10.el7_6.12 package, which could prevent live VM migrations with web sockets enabled, when libvirtd were restarted prior to migration.</div><div><br></div><div>Environment:</div><div><div># uname -a</div><div>Linux inv-cp1-hv3-centos7 3.10.0-957.12.2.el7.x86_64 #1 SMP Tue May 14 21:24:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux</div></div><div><br></div><div><div># cat /etc/redhat-release </div><div>CentOS Linux release 7.6.1810 (Core) </div></div><div><br></div><div><div># rpm -qa | grep libvirt-4</div><div>libvirt-4.5.0-10.el7_6.12.x86_64</div></div><div><br></div><div><div># rpm -qa | grep qemu-kvm</div><div>qemu-kvm-common-ev-2.12.0-18.el7_6.5.1.x86_64</div><div>qemu-kvm-ev-2.12.0-18.el7_6.5.1.x86_64</div><div>qemu-kvm-tools-ev-2.12.0-18.el7_6.5.1.x86_64</div></div><div><br></div><div><br></div><div>Repro steps:</div><div>1. start VM with following screen configuration:</div><div><pre style="color:rgb(0,0,0)"><code><graphics type="vnc" listen="0.0.0.0" passwd="vnc_password" port="-1" auto-port="yes" websocket="-1"/></code></pre><pre style="color:rgb(0,0,0)"><code><br></code></pre><pre style="color:rgb(0,0,0)"><code>2. check VM XML (migratable):</code></pre><pre style="color:rgb(0,0,0)"><code>#virsh dumpxml 1 > | grep vnc</code></pre><pre style="color:rgb(0,0,0)"><code><graphics type="vnc" listen="0.0.0.0" passwd="vnc_password" port="-1" auto-port="yes" websocket="-1"/></code></pre><pre style="color:rgb(0,0,0)"><code><br></code></pre><pre style="color:rgb(0,0,0)"><code>3. restart libvirtd</code></pre><pre style="color:rgb(0,0,0)"># systemctl restart libvirtd.service</pre><pre style="color:rgb(0,0,0)"><br></pre><pre style="color:rgb(0,0,0)">4. check VM XML config again</pre><pre style="color:rgb(0,0,0)"><pre><code>#virsh dumpxml 1 > | grep vnc</code></pre><pre><code><graphics type="vnc" listen="0.0.0.0" passwd="vnc_password" port="-1" auto-port="yes" websocket="5700"/></code></pre><pre><br></pre><pre>5. try to migrate this VM to hypervisor with already running VM and you will get following error</pre><pre>error: internal error: Failed to reserve port 5700<br></pre><pre><br></pre><pre>It happens when on destination hypervisor there is VM running with web socket port 5700.</pre><pre><br></pre><pre>This issue was fixed since libvirt-4.6.0 release.</pre><pre>I've retested it with libvirt-4.9.0 and libvirt-5.0.0 from <a href="http://mirror.centos.org/centos/7/virt/x86_64/libvirt-latest/">http://mirror.centos.org/centos/7/virt/x86_64/libvirt-latest/</a> repo. And it actually fixed here.</pre><pre><br></pre><pre>Interesting to know when newer version of libvirt(at least 4.6.0 of 4.5.0 with fix) will be available in official centos updates repo?</pre><pre><br></pre><pre>Thanks a lot,</pre><pre><span style="font-family:Arial,Helvetica,sans-serif">Oleksandr</span></pre></pre></div></div></div></div></div></div></div></div></div></div></div></div></div>