<div dir="ltr">Hi All,<div><br></div><div>I'm currently working on a project which requires me to understand the live migration and cold migration process in Openstack.</div><div><br></div><div>I have the following questions:</div><div><br></div><div>1. In case of live migration with shared storage, how is the current downtime set through update_downtime used? Like when does it know that it needs to pause the VM on the source and perform the stop and copy phase?</div><div>It would be great if you could point me to the code base where this is happening. Is this handled by QEMU?</div><div><br></div><div>2. In case of cold migrate, how does it select the destination host? As per the code, I saw that it generates a sorted list of hosts based on filtering and weighing but then we also perform randomization. I'm confused as to how this works.</div><div><br></div><div>Thank you so much for your time.</div><div><br></div><div>Regards,</div><div>Priyanka</div></div>