I am trying to get work offline migration using libvirt API in perl. I have 2 servers (on both is):
- debian squeeze
- xen-hypervisor-4.0-i386
- libvirt (1st server - 0.8.7 and 2nd server - 0.8.3)
In xend-config.sxp on both servers I set up:
- (xend-relocation-server yes)
- (xend-relocation-port 8002)
- (xend-relocation-address '')
I have also 3rd server from where I am running this script:
use Sys::Virt;
my $vmm1 = Sys::Virt->new( uri=> "xen://hostA/" );
my $vmm2 = Sys::Virt->new( uri=> "xen://hostB/" );
my $dom = $vmm1->get_domain_by_name("test1");
my $ddom = $dom->migrate($vmm2,0,undef,"xenmigr://hostB/",0);
When I run script I see on hostA after executing xm list:
migrating-test1 17 128 1 ---s-- 9.9
and on hostB I can see in 'xm list' output that migrating domain test1, but it disappear after while from that output because perl script will fail with following error:
libvirt error code: 42, message: Domain not found: xenUnifiedDomainLookupByName
I tried to look up for some solutions, but I wasn't successful. I also tried to run 'xm migrate' from hostA to migrate domain to hostB, but this operation also started but didn't complete (under complete I understand that domain will be migrated from hostA to hostB and stay running on hostB).
EDIT: Do I need shared storage also for offline migration?