[libvirt-users] Problem to migrate virtual machine between two hosts with same uuid

Daniel P. Berrange berrange at redhat.com
Tue Aug 23 11:18:33 UTC 2011


On Tue, Aug 23, 2011 at 01:08:29PM +0200, info at umbertocarrara.it wrote:
> hi at all,
> i'm trying to migrate a vm between two host but fails, this is what
> I did:
> 
> virsh # start win2008
> Domain win2008 started
> 
> virsh # list
>  Id Name                 State
> ----------------------------------
>   1 win2008              running
> 
> virsh # migrate --live win2008 qemu+ssh://host2/system
> error: internal error Attempt to migrate guest to the same host 
> 00010203-0405-0607-0809-0a0b0c0d0e0f
> 
> if I type on both hosts:
> 
> host1
> virsh # sysinfo
> 
> .......
>   <system>
>     <entry name='manufacturer'>Supermicro</entry>
>     <entry name='product'>X9SCL/X9SCM</entry>
>     <entry name='version'>0123456789</entry>
>     <entry name='serial'>0123456789</entry>
>     <entry name='uuid'>00010203-0405-0607-0809-0A0B0C0D0E0F</entry>
>     <entry name='sku'>To be filled by O.E.M.</entry>
>     <entry name='family'>To be filled by O.E.M.</entry>
>   </system>
> ........
>  
>  
> host2
> virsh # sysinfo
> 
> .......
>   <system>
>     <entry name='manufacturer'>Supermicro</entry>
>     <entry name='product'>X9SCL/X9SCM</entry>
>     <entry name='version'>0123456789</entry>
>     <entry name='serial'>0123456789</entry>
>     <entry name='uuid'>00010203-0405-0607-0809-0A0B0C0D0E0F</entry>
>     <entry name='sku'>To be filled by O.E.M.</entry>
>     <entry name='family'>To be filled by O.E.M.</entry>
>   </system>
> 
> ........
> 
> The problem seems to be the same uuid on both hosts, 
> 
> 1) is correct?

Yes, your hardware vendor is being very very bad :-(

> 2) if is correct, how I can resolve?

You could complain to the hardware vendor, but I rather doubt
that they would ever do anything about it.

So, libvirtd provides a way to override the default host UUID,
by setting 'host_uuid' in /etc/libvirt/libvirtd.conf, which
should make the migration sanity check pass.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvirt-users mailing list