Question about local migration between containers

Daniel P. Berrangé berrange at redhat.com
Thu Mar 26 15:04:24 UTC 2020


On Thu, Mar 26, 2020 at 04:47:50PM +0200, Or Shoval wrote:
> Hello
> 
> On kubevirt project we are using IpV6 Kind cluster,
> and trying to support migration,
> 
> but since both of the containers are on the same host
> we get this error
> 
> {"component":"virt-launcher","level":"error","msg":"internal error: Attempt
> to migrate guest to the same host
> 32323136-3731-4247-3831-303946353338","pos":"virNetClientProgramDispatchError:172","subcomponent":"libvirt","thread":"44",
> "timestamp":"2020-03-25T10:41:12.123000Z"}
> 
> Is there a way to work around this please ?
> 
> it comes of course from
> https://github.com/libvirt/libvirt/blob/master/src/qemu/qemu_migration_cookie.c#L1254
> 
> (not sure what version of libvirt i have but it shows the uuid so i guess
> this is the one)

The link above points to git master, which only checks the UUID. This
was released in 6.2.0

All versions of libvirt before 6.2.0, will also check the hostname for
equality.


Since you're inside a container you should be able to set an arbitrary
hostname for each container.

For the UUID, we obtain the value from SMBIOS data tables. To override
this there is a parameter in /etc/libvirt/libvirtd.conf.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvirt-users mailing list