Hi, I have been selected for GSoC'19 under qemu and was trying out migration of the pvrdma device. For my current task, I need to perform a "null" migration i.e. migrate the VM to the same host for testing purpose. I am using libvirt 5.1.0 on Fedora 30.>From what I know, libvirt does not allow this type ofmigration by default. Trying this: virsh migrate --unsafe --verbose fedora29 qemu+unix:///system results in the following error: error: internal error: Attempt to migrate guest to the same host dell Is there some way I can get this to work? If the solution requires changing the source code, then that is also fine. Using qemu-system-x86_64 to perform migration allows same-host migration. I need the same functionality using virsh as libvirt performs some additional servicing which is required for the device I am migrating. Thanks, Sukrit
чт, 6 июн. 2019 г. в 14:19, Sukrit Bhatnagar <skrtbhtngr@gmail.com>:> > Hi, > > I have been selected for GSoC'19 under qemu and was > trying out migration of the pvrdma device. > For my current task, I need to perform a "null" migration > i.e. migrate the VM to the same host for testing purpose. > I am using libvirt 5.1.0 on Fedora 30. > > >From what I know, libvirt does not allow this type of > migration by default. > Trying this: > virsh migrate --unsafe --verbose fedora29 qemu+unix:///system > results in the following error: > error: internal error: Attempt to migrate guest to the same host dell > > Is there some way I can get this to work? If the solution > requires changing the source code, then that is > also fine. Using qemu-system-x86_64 to perform > migration allows same-host migration. I need the same > functionality using virsh as libvirt performs some additional > servicing which is required for the device I am migrating. > > Thanks, > Sukrit >Yeah, this feature also will be useful to able to upgrade qemu on the file (install never package, do all vm same host migration, that starts never qemu process). -- Vasiliy Tolstov, e-mail: v.tolstov@selfip.ru
On Sat, Jun 08, 2019 at 23:03:50 +0300, Vasiliy Tolstov wrote:> чт, 6 июн. 2019 г. в 14:19, Sukrit Bhatnagar <skrtbhtngr@gmail.com>: > > > > Hi, > > > > I have been selected for GSoC'19 under qemu and was > > trying out migration of the pvrdma device. > > For my current task, I need to perform a "null" migration > > i.e. migrate the VM to the same host for testing purpose. > > I am using libvirt 5.1.0 on Fedora 30. > > > > >From what I know, libvirt does not allow this type of > > migration by default. > > Trying this: > > virsh migrate --unsafe --verbose fedora29 qemu+unix:///system > > results in the following error: > > error: internal error: Attempt to migrate guest to the same host dell > > > > Is there some way I can get this to work? If the solution > > requires changing the source code, then that is > > also fine. Using qemu-system-x86_64 to perform > > migration allows same-host migration. I need the same > > functionality using virsh as libvirt performs some additional > > servicing which is required for the device I am migrating. > > > > Thanks, > > Sukrit > > > > Yeah, this feature also will be useful to able to upgrade qemu on the > file (install never package, do all vm same host migration, that > starts never qemu process).Note that libvirt uses the machine name in many places which makes it almost impossible to run two VMs with the same name on the single host, so apart from removing the limitation mentioned above (which I'm not sure if we want to remove it) the migration MUST change name of the VM.