Hello, I have the latest xen-unstable which I pulled from the mercurial repository today (changeset:7793:090e44133d40 from 14/11). I tried to use migration and it failed.(details are below). I want to know if this has to do to definitions in /etc/xen/xend-config.sxp on the side who initiates the migration (or maybe on the side to which we want to migrate to ???) I would appreciate if anybody will comment on this: How should relocation parameters in /etc/xen/xend-config.sxp on the "client" (the one who initiates the migration) be set (if at all)? Should any relocateion parameters be set on the "server" (the side we want to migrate to? ) The relocateion paramters I am talking about are: xend-relocation-server (I assume it should be "yes" xend-relocation-port xend-relocation-address '''' xend-relocation-address localhost should "xend-relocation-address localhost" be commented ? or should "xend-relocation-address set to some address ? Should "xend-address localhost" be commented ? (as I understand, specifying ''localhost'' for xend-address prevents remote connections.). What I tried is running the following commands: xm migrate myDomU 127.0.0.1 This hangs (does not return to prompt) and from a different terminal xm-list shows: Domain-0 0 59 1 r----- 101.8 migrating-myDomU 3 32 1 ---s-- 20.4 When I try: xm migrate myDomU 10.0.0.25 where 10.0.0.25 is a different machine on the same LAN (conencted through a hub) I get: Error: can''t connect: Connection refused (which is "ECONNREFUSED" errno). Any ideas ? IB _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Hello, > > I have the latest xen-unstable which > I pulled from the mercurial repository today > (changeset:7793:090e44133d40 from 14/11). > I tried to use migration and it failed.(details are below).What is in /var/log/xend.log on the [source] host? Can you perform a localhost migration with the default xend-config.sxp? What arch are you working with (32, PAE, 64)? cheers, S. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello, Thanks. 1) I am working on 32 bit x86. 2) I triled with the default, unchnaged xend-config.sxp (taken from /dist/install/etc/xebn) I ran: tail -f /var/log/xend.log xm migrate myDomU 127.0.0.1 I want to add something: I think my memory division for domo and domU is OK, but I am not sure: This was done on a machine with RAM 128 MB. in grub.conf I have this allocation: kernel /boot/xen.gz dom0_mem=60000 and in myDomU config file I have mempry set to 32 MB thus: kernel ="/boot/vmlinuz-2.6.12.6-xen0" memory = 32 name = "myDomU" nics = 1 disk = [''file:/work/dev/tests/feodra_xe_img/fedora.img,sda1,w''] root = "/dev/sda1" This is the log I got: (seems to be a problem with restore: I see "Failed to increase reservation" and other error messages) [2005-11-15 14:39:10 xend] DEBUG (XendCheckpoint:73) [xc_save]: /usr/lib/xen/bin/xc_save 14 18 1 0 0 0 [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:224) XendDomainInfo.restore([''domain'', [''domid'', ''1''], [''name'', ''myDomU''], [''uuid'', ''9b2be408-325f-17ef-af34-249571f77145''], [''ssidref'', ''0''], [''vcpus'', ''1''], [''vcpu_avail'', ''1''], [''cpu_weight'', ''1.0''], [''memory'', ''32''], [''maxmem'', ''32''], [''on_poweroff'', ''destroy''], [''on_reboot'', ''restart''], [''on_crash'', ''restart''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz-2.6.12.6-xen0''], [''root'', ''/dev/sda1''], [''vcpus'', ''1''], [''vcpus'', ''1''], [''boot'', ''c'']]], [''device'', [''vbd'', [''uname'', ''file:/work/dev/tests/feodra_xe_img/fedora.img''], [''dev'', ''sda1''], [''mode'', ''w'']]], [''device'', [''vif'']], [''state'', ''-b----''], [''shutdown_reason'', ''poweroff''], [''cpu_time'', ''20.368170395''], [''vcpus'', ''1''], [''up_time'', ''65.5256397724''], [''start_time'', ''1132058284.95''], [''store_mfn'', ''11772''], [''console_mfn'', ''11771'']]) [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:254) parseConfig: config is [''domain'', [''domid'', ''1''], [''name'', ''myDomU''], [''uuid'', ''9b2be408-325f-17ef-af34-249571f77145''], [''ssidref'', ''0''], [''vcpus'', ''1''], [''vcpu_avail'', ''1''], [''cpu_weight'', ''1.0''], [''memory'', ''32''], [''maxmem'', ''32''], [''on_poweroff'', ''destroy''], [''on_reboot'', ''restart''], [''on_crash'', ''restart''], [''image'', [''linux'', [''kernel'', ''/boot/vmlinuz-2.6.12.6-xen0''], [''root'', ''/dev/sda1''], [''vcpus'', ''1''], [''vcpus'', ''1''], [''boot'', ''c'']]], [''device'', [''vbd'', [''uname'', ''file:/work/dev/tests/feodra_xe_img/fedora.img''], [''dev'', ''sda1''], [''mode'', ''w'']]], [''device'', [''vif'']], [''state'', ''-b----''], [''shutdown_reason'', ''poweroff''], [''cpu_time'', ''20.368170395''], [''vcpus'', ''1''], [''up_time'', ''65.5256397724''], [''start_time'', ''1132058284.95''], [''store_mfn'', ''11772''], [''console_mfn'', ''11771'']] [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:308) parseConfig: result is {''ssidref'': 0, ''name'': ''myDomU'', ''bootloader'': None, ''on_reboot'': ''restart'', ''image'': [''linux'', [''kernel'', ''/boot/vmlinuz-2.6.12.6-xen0''], [''root'', ''/dev/sda1''], [''vcpus'', ''1''], [''vcpus'', ''1''], [''boot'', ''c'']], ''on_poweroff'': ''destroy'', ''on_crash'': ''restart'', ''backend'': [], ''vcpus'': 1, ''cpu_weight'': 1.0, ''vcpu_avail'': 1, ''memory'': 32, ''device'': [(''vbd'', [''vbd'', [''uname'', ''file:/work/dev/tests/feodra_xe_img/fedora.img''], [''dev'', ''sda1''], [''mode'', ''w'']]), (''vif'', [''vif''])], ''maxmem'': 32, ''cpu'': None, ''uuid'': ''9b2be408-325f-17ef-af34-249571f77145''} [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:1011) XendDomainInfo.construct: None 0 [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:549) Storing VM details: {''ssidref'': ''0'', ''uuid'': ''9b2be408-325f-17ef-af34-249571f77145'', ''on_reboot'': ''restart'', ''image'': ''(linux (kernel /boot/vmlinuz-2.6.12.6-xen0) (root /dev/sda1) (vcpus 1) (vcpus 1) (boot c))'', ''on_poweroff'': ''destroy'', ''name'': ''myDomU'', ''vcpus'': ''1'', ''vcpu_avail'': ''1'', ''memory'': ''32'', ''on_crash'': ''restart'', ''maxmem'': ''32''} [2005-11-15 14:39:10 xend] DEBUG (blkif:24) exception looking up device number for sda1: [Errno 2] No such file or directory: ''/dev/sda1'' [2005-11-15 14:39:10 xend] DEBUG (DevController:286) DevController: writing {''virtual-device'': ''2049'', ''backend-id'': ''0'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vbd/2/2049''} to /local/domain/2/device/vbd/2049. [2005-11-15 14:39:10 xend] DEBUG (DevController:288) DevController: writing {''domain'': ''myDomU'', ''params'': ''/work/dev/tests/feodra_xe_img/fedora.img'', ''frontend-id'': ''2'', ''type'': ''file'', ''state'': ''1'', ''dev'': ''sda1'', ''frontend'': ''/local/domain/2/device/vbd/2049''} to /local/domain/0/backend/vbd/2/2049. [2005-11-15 14:39:10 xend] DEBUG (DevController:286) DevController: writing {''backend-id'': ''0'', ''mac'': ''00:16:3e:1b:9f:77'', ''handle'': ''0'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vif/2/0''} to /local/domain/2/device/vif/0. [2005-11-15 14:39:10 xend] DEBUG (DevController:288) DevController: writing {''mac'': ''00:16:3e:1b:9f:77'', ''state'': ''1'', ''handle'': ''0'', ''script'': ''/etc/xen/scripts/vif-bridge'', ''frontend-id'': ''2'', ''domain'': ''myDomU'', ''frontend'': ''/local/domain/2/device/vif/0''} to /local/domain/0/backend/vif/2/0. [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:574) Storing domain details: {''console/port'': ''2'', ''name'': ''myDomU'', ''console/limit'': ''1048576'', ''vm'': ''/vm/9b2be408-325f-17ef-af34-249571f77145'', ''domid'': ''2'', ''cpu/0/availability'': ''online'', ''memory/target'': ''32768'', ''store/port'': ''1''} [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) xc_linux_save start DOM1 live=false [2005-11-15 14:39:11 xend] DEBUG (XendCheckpoint:191) suspend [2005-11-15 14:39:11 xend] DEBUG (XendCheckpoint:76) In saveInputHandler suspend[2005-11-15 14:39:11 xend] DEBUG (XendCheckpoint:78) Suspending 1 ... [2005-11-15 14:39:11 xend.XendDomainInfo] INFO (XendDomainInfo:701) Domain has shutdown: name=migrating-myDomU id=1 reason=suspend. [2005-11-15 14:39:11 xend] INFO (XendCheckpoint:81) Domain 1 suspended. [2005-11-15 14:39:11 xend] DEBUG (XendCheckpoint:84) Written done [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) Had 0 unexplained entries in p2m table [2005-11-15 14:39:11 xend] DEBUG (XendCheckpoint:139) [xc_restore]: /usr/lib/xen/bin/xc_restore 14 19 2 10240 1 2 [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) xc_linux_restore start: max_pfn = 2800 [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) Failed allocation for dom 2: 10240 pages order 0 addr_bits 0 [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) Failed to increase reservation by 2800 KB [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) Restore exit with rc=1 [2005-11-15 14:39:11 xend.XendDomainInfo] DEBUG (XendDomainInfo:1122) XendDomainInfo.destroy: domid=2 [2005-11-15 14:39:11 xend.XendDomainInfo] DEBUG (XendDomainInfo:1130) XendDomainInfo.destroyDomain(2) [2005-11-15 14:39:11 xend.XendDomainInfo] ERROR (XendDomainInfo:1136) XendDomainInfo.destroy: xc.domain_destroy failed. Traceback (most recent call last): File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1134, in destroyDomain xc.domain_destroy(dom=self.domid) error: (3, ''No such process'') [2005-11-15 14:39:12 xend] ERROR (XendDomain:255) Restore failed Traceback (most recent call last): File "/usr/lib/python/xen/xend/XendDomain.py", line 250, in domain_restore_fd return XendCheckpoint.restore(self, fd) File "/usr/lib/python/xen/xend/XendCheckpoint.py", line 143, in restore forkHelper(cmd, fd, handler.handler, True) File "/usr/lib/python/xen/xend/XendCheckpoint.py", line 209, in forkHelper raise XendError("%s failed" % string.join(cmd)) XendError: /usr/lib/xen/bin/xc_restore 14 19 2 10240 1 2 failed [2005-11-15 14:39:37 xend.XendDomainInfo] INFO (XendDomainInfo:701) Domain has shutdown: name=migrating-myDomU id=1 reason=suspend. Regards, IB On 11/15/05, Steven Hand <Steven.Hand@cl.cam.ac.uk> wrote:> > > Hello, > > > > I have the latest xen-unstable which > > I pulled from the mercurial repository today > > (changeset:7793:090e44133d40 from 14/11). > > I tried to use migration and it failed.(details are below). > > What is in /var/log/xend.log on the [source] host? > > Can you perform a localhost migration with the default xend-config.sxp? > > What arch are you working with (32, PAE, 64)? > > > cheers, > > S. > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello, Did anybody succeeded with migration (to local host and/or to other machines running Xen) with default xend-config.sxp with xen-unstable on last week? I begin to suspect that maybe there is a bug somwehere in migration ?? IB On 11/15/05, Ian Brown <ianbrn@gmail.com> wrote:> Hello, > Thanks. > > 1) I am working on 32 bit x86. > > 2) I triled with the default, unchnaged xend-config.sxp (taken from > /dist/install/etc/xebn) > I ran: > tail -f /var/log/xend.log > xm migrate myDomU 127.0.0.1 > > > > I want to add something: > I think my memory division for domo and domU is OK, > but I am not sure: > This was done on a machine with RAM 128 MB. > in grub.conf I have this allocation: > kernel /boot/xen.gz dom0_mem=60000 > and in myDomU config file I have mempry set to 32 MB thus: > > kernel ="/boot/vmlinuz-2.6.12.6-xen0" > memory = 32 > name = "myDomU" > nics = 1 > disk = [''file:/work/dev/tests/feodra_xe_img/fedora.img,sda1,w''] > root = "/dev/sda1" > > > This is the log I got: (seems to be a problem with restore: > I see "Failed to increase reservation" and other error messages) > > > [2005-11-15 14:39:10 xend] DEBUG (XendCheckpoint:73) [xc_save]: > /usr/lib/xen/bin/xc_save 14 18 1 0 0 0 > [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:224) > XendDomainInfo.restore([''domain'', [''domid'', ''1''], [''name'', ''myDomU''], > [''uuid'', ''9b2be408-325f-17ef-af34-249571f77145''], [''ssidref'', ''0''], > [''vcpus'', ''1''], [''vcpu_avail'', ''1''], [''cpu_weight'', ''1.0''], [''memory'', > ''32''], [''maxmem'', ''32''], [''on_poweroff'', ''destroy''], [''on_reboot'', > ''restart''], [''on_crash'', ''restart''], [''image'', [''linux'', [''kernel'', > ''/boot/vmlinuz-2.6.12.6-xen0''], [''root'', ''/dev/sda1''], [''vcpus'', ''1''], > [''vcpus'', ''1''], [''boot'', ''c'']]], [''device'', [''vbd'', [''uname'', > ''file:/work/dev/tests/feodra_xe_img/fedora.img''], [''dev'', ''sda1''], > [''mode'', ''w'']]], [''device'', [''vif'']], [''state'', ''-b----''], > [''shutdown_reason'', ''poweroff''], [''cpu_time'', ''20.368170395''], > [''vcpus'', ''1''], [''up_time'', ''65.5256397724''], [''start_time'', > ''1132058284.95''], [''store_mfn'', ''11772''], [''console_mfn'', ''11771'']]) > [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:254) > parseConfig: config is [''domain'', [''domid'', ''1''], [''name'', ''myDomU''], > [''uuid'', ''9b2be408-325f-17ef-af34-249571f77145''], [''ssidref'', ''0''], > [''vcpus'', ''1''], [''vcpu_avail'', ''1''], [''cpu_weight'', ''1.0''], [''memory'', > ''32''], [''maxmem'', ''32''], [''on_poweroff'', ''destroy''], [''on_reboot'', > ''restart''], [''on_crash'', ''restart''], [''image'', [''linux'', [''kernel'', > ''/boot/vmlinuz-2.6.12.6-xen0''], [''root'', ''/dev/sda1''], [''vcpus'', ''1''], > [''vcpus'', ''1''], [''boot'', ''c'']]], [''device'', [''vbd'', [''uname'', > ''file:/work/dev/tests/feodra_xe_img/fedora.img''], [''dev'', ''sda1''], > [''mode'', ''w'']]], [''device'', [''vif'']], [''state'', ''-b----''], > [''shutdown_reason'', ''poweroff''], [''cpu_time'', ''20.368170395''], > [''vcpus'', ''1''], [''up_time'', ''65.5256397724''], [''start_time'', > ''1132058284.95''], [''store_mfn'', ''11772''], [''console_mfn'', ''11771'']] > [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:308) > parseConfig: result is {''ssidref'': 0, ''name'': ''myDomU'', ''bootloader'': > None, ''on_reboot'': ''restart'', ''image'': [''linux'', [''kernel'', > ''/boot/vmlinuz-2.6.12.6-xen0''], [''root'', ''/dev/sda1''], [''vcpus'', ''1''], > [''vcpus'', ''1''], [''boot'', ''c'']], ''on_poweroff'': ''destroy'', ''on_crash'': > ''restart'', ''backend'': [], ''vcpus'': 1, ''cpu_weight'': 1.0, ''vcpu_avail'': > 1, ''memory'': 32, ''device'': [(''vbd'', [''vbd'', [''uname'', > ''file:/work/dev/tests/feodra_xe_img/fedora.img''], [''dev'', ''sda1''], > [''mode'', ''w'']]), (''vif'', [''vif''])], ''maxmem'': 32, ''cpu'': None, ''uuid'': > ''9b2be408-325f-17ef-af34-249571f77145''} > [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:1011) > XendDomainInfo.construct: None 0 > [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:549) > Storing VM details: {''ssidref'': ''0'', ''uuid'': > ''9b2be408-325f-17ef-af34-249571f77145'', ''on_reboot'': ''restart'', > ''image'': ''(linux (kernel /boot/vmlinuz-2.6.12.6-xen0) (root /dev/sda1) > (vcpus 1) (vcpus 1) (boot c))'', ''on_poweroff'': ''destroy'', ''name'': > ''myDomU'', ''vcpus'': ''1'', ''vcpu_avail'': ''1'', ''memory'': ''32'', ''on_crash'': > ''restart'', ''maxmem'': ''32''} > [2005-11-15 14:39:10 xend] DEBUG (blkif:24) exception looking up > device number for sda1: [Errno 2] No such file or directory: > ''/dev/sda1'' > [2005-11-15 14:39:10 xend] DEBUG (DevController:286) DevController: > writing {''virtual-device'': ''2049'', ''backend-id'': ''0'', ''state'': ''1'', > ''backend'': ''/local/domain/0/backend/vbd/2/2049''} to > /local/domain/2/device/vbd/2049. > [2005-11-15 14:39:10 xend] DEBUG (DevController:288) DevController: > writing {''domain'': ''myDomU'', ''params'': > ''/work/dev/tests/feodra_xe_img/fedora.img'', ''frontend-id'': ''2'', > ''type'': ''file'', ''state'': ''1'', ''dev'': ''sda1'', ''frontend'': > ''/local/domain/2/device/vbd/2049''} to > /local/domain/0/backend/vbd/2/2049. > [2005-11-15 14:39:10 xend] DEBUG (DevController:286) DevController: > writing {''backend-id'': ''0'', ''mac'': ''00:16:3e:1b:9f:77'', ''handle'': ''0'', > ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vif/2/0''} to > /local/domain/2/device/vif/0. > [2005-11-15 14:39:10 xend] DEBUG (DevController:288) DevController: > writing {''mac'': ''00:16:3e:1b:9f:77'', ''state'': ''1'', ''handle'': ''0'', > ''script'': ''/etc/xen/scripts/vif-bridge'', ''frontend-id'': ''2'', ''domain'': > ''myDomU'', ''frontend'': ''/local/domain/2/device/vif/0''} to > /local/domain/0/backend/vif/2/0. > [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:574) > Storing domain details: {''console/port'': ''2'', ''name'': ''myDomU'', > ''console/limit'': ''1048576'', ''vm'': > ''/vm/9b2be408-325f-17ef-af34-249571f77145'', ''domid'': ''2'', > ''cpu/0/availability'': ''online'', ''memory/target'': ''32768'', > ''store/port'': ''1''} > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) xc_linux_save > start DOM1 live=false > > [2005-11-15 14:39:11 xend] DEBUG (XendCheckpoint:191) suspend > [2005-11-15 14:39:11 xend] DEBUG (XendCheckpoint:76) In > saveInputHandler suspend[2005-11-15 14:39:11 xend] DEBUG > (XendCheckpoint:78) Suspending 1 ... > [2005-11-15 14:39:11 xend.XendDomainInfo] INFO (XendDomainInfo:701) > Domain has shutdown: name=migrating-myDomU id=1 reason=suspend. > [2005-11-15 14:39:11 xend] INFO (XendCheckpoint:81) Domain 1 suspended. > [2005-11-15 14:39:11 xend] DEBUG (XendCheckpoint:84) Written done > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) Had 0 > unexplained entries in p2m table > > [2005-11-15 14:39:11 xend] DEBUG (XendCheckpoint:139) [xc_restore]: > /usr/lib/xen/bin/xc_restore 14 19 2 10240 1 2 > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) xc_linux_restore > start: max_pfn = 2800 > > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) Failed > allocation for dom 2: 10240 pages order 0 addr_bits 0 > > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) Failed to > increase reservation by 2800 KB > > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) > > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) Restore exit with rc=1 > > [2005-11-15 14:39:11 xend.XendDomainInfo] DEBUG (XendDomainInfo:1122) > XendDomainInfo.destroy: domid=2 > [2005-11-15 14:39:11 xend.XendDomainInfo] DEBUG (XendDomainInfo:1130) > XendDomainInfo.destroyDomain(2) > [2005-11-15 14:39:11 xend.XendDomainInfo] ERROR (XendDomainInfo:1136) > XendDomainInfo.destroy: xc.domain_destroy failed. > Traceback (most recent call last): > File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1134, in > destroyDomain xc.domain_destroy(dom=self.domid) > error: (3, ''No such process'') > [2005-11-15 14:39:12 xend] ERROR (XendDomain:255) Restore failed > Traceback (most recent call last): > File "/usr/lib/python/xen/xend/XendDomain.py", line 250, in domain_restore_fd > return XendCheckpoint.restore(self, fd) > File "/usr/lib/python/xen/xend/XendCheckpoint.py", line 143, in restore > forkHelper(cmd, fd, handler.handler, True) > File "/usr/lib/python/xen/xend/XendCheckpoint.py", line 209, in forkHelper > raise XendError("%s failed" % string.join(cmd)) > XendError: /usr/lib/xen/bin/xc_restore 14 19 2 10240 1 2 failed > [2005-11-15 14:39:37 xend.XendDomainInfo] INFO (XendDomainInfo:701) > Domain has shutdown: name=migrating-myDomU id=1 reason=suspend. > > Regards, > IB > > > On 11/15/05, Steven Hand <Steven.Hand@cl.cam.ac.uk> wrote: > > > > > Hello, > > > > > > I have the latest xen-unstable which > > > I pulled from the mercurial repository today > > > (changeset:7793:090e44133d40 from 14/11). > > > I tried to use migration and it failed.(details are below). > > > > What is in /var/log/xend.log on the [source] host? > > > > Can you perform a localhost migration with the default xend-config.sxp? > > > > What arch are you working with (32, PAE, 64)? > > > > > > cheers, > > > > S. > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Ian, I just downloaded a new source of xen-unstable today. Maybe the same problem occured to me. I guess for security reasons, migration between hosts is disabled. You have to check your /etc/xen/xend-config.sxp. 1) relocation server (for transferring domains) must be enabled (should be default): #(xend-relocation-server no) (xend-relocation-server yes) 2) relocation server shall accept connections from the network: (xend-relocation-address '''') #(xend-relocation-address localhost) Hope it helps you. Cheers, Michael On Tuesday 15 November 2005 16:46, Ian Brown wrote:> Hello, > Did anybody succeeded with migration (to local host and/or to other > machines running Xen) with default > xend-config.sxp with xen-unstable on last week? > I begin to suspect that maybe there is a bug somwehere in migration ?? > > IB > > On 11/15/05, Ian Brown <ianbrn@gmail.com> wrote: > > Hello, > > Thanks. > > > > 1) I am working on 32 bit x86. > > > > 2) I triled with the default, unchnaged xend-config.sxp (taken > > from /dist/install/etc/xebn) > > I ran: > > tail -f /var/log/xend.log > > xm migrate myDomU 127.0.0.1 > > > > > > > > I want to add something: > > I think my memory division for domo and domU is OK, > > but I am not sure: > > This was done on a machine with RAM 128 MB. > > in grub.conf I have this allocation: > > kernel /boot/xen.gz dom0_mem=60000 > > and in myDomU config file I have mempry set to 32 MB thus: > > > > kernel ="/boot/vmlinuz-2.6.12.6-xen0" > > memory = 32 > > name = "myDomU" > > nics = 1 > > disk = [''file:/work/dev/tests/feodra_xe_img/fedora.img,sda1,w''] > > root = "/dev/sda1" > > > > > > This is the log I got: (seems to be a problem with restore: > > I see "Failed to increase reservation" and other error messages) > > > > > > [2005-11-15 14:39:10 xend] DEBUG (XendCheckpoint:73) [xc_save]: > > /usr/lib/xen/bin/xc_save 14 18 1 0 0 0 > > [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:224) > > XendDomainInfo.restore([''domain'', [''domid'', ''1''], [''name'', ''myDomU''], > > [''uuid'', ''9b2be408-325f-17ef-af34-249571f77145''], [''ssidref'', ''0''], > > [''vcpus'', ''1''], [''vcpu_avail'', ''1''], [''cpu_weight'', ''1.0''], [''memory'', > > ''32''], [''maxmem'', ''32''], [''on_poweroff'', ''destroy''], [''on_reboot'', > > ''restart''], [''on_crash'', ''restart''], [''image'', [''linux'', [''kernel'', > > ''/boot/vmlinuz-2.6.12.6-xen0''], [''root'', ''/dev/sda1''], [''vcpus'', ''1''], > > [''vcpus'', ''1''], [''boot'', ''c'']]], [''device'', [''vbd'', [''uname'', > > ''file:/work/dev/tests/feodra_xe_img/fedora.img''], [''dev'', ''sda1''], > > [''mode'', ''w'']]], [''device'', [''vif'']], [''state'', ''-b----''], > > [''shutdown_reason'', ''poweroff''], [''cpu_time'', ''20.368170395''], > > [''vcpus'', ''1''], [''up_time'', ''65.5256397724''], [''start_time'', > > ''1132058284.95''], [''store_mfn'', ''11772''], [''console_mfn'', ''11771'']]) > > [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:254) > > parseConfig: config is [''domain'', [''domid'', ''1''], [''name'', ''myDomU''], > > [''uuid'', ''9b2be408-325f-17ef-af34-249571f77145''], [''ssidref'', ''0''], > > [''vcpus'', ''1''], [''vcpu_avail'', ''1''], [''cpu_weight'', ''1.0''], [''memory'', > > ''32''], [''maxmem'', ''32''], [''on_poweroff'', ''destroy''], [''on_reboot'', > > ''restart''], [''on_crash'', ''restart''], [''image'', [''linux'', [''kernel'', > > ''/boot/vmlinuz-2.6.12.6-xen0''], [''root'', ''/dev/sda1''], [''vcpus'', ''1''], > > [''vcpus'', ''1''], [''boot'', ''c'']]], [''device'', [''vbd'', [''uname'', > > ''file:/work/dev/tests/feodra_xe_img/fedora.img''], [''dev'', ''sda1''], > > [''mode'', ''w'']]], [''device'', [''vif'']], [''state'', ''-b----''], > > [''shutdown_reason'', ''poweroff''], [''cpu_time'', ''20.368170395''], > > [''vcpus'', ''1''], [''up_time'', ''65.5256397724''], [''start_time'', > > ''1132058284.95''], [''store_mfn'', ''11772''], [''console_mfn'', ''11771'']] > > [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:308) > > parseConfig: result is {''ssidref'': 0, ''name'': ''myDomU'', ''bootloader'': > > None, ''on_reboot'': ''restart'', ''image'': [''linux'', [''kernel'', > > ''/boot/vmlinuz-2.6.12.6-xen0''], [''root'', ''/dev/sda1''], [''vcpus'', ''1''], > > [''vcpus'', ''1''], [''boot'', ''c'']], ''on_poweroff'': ''destroy'', ''on_crash'': > > ''restart'', ''backend'': [], ''vcpus'': 1, ''cpu_weight'': 1.0, ''vcpu_avail'': > > 1, ''memory'': 32, ''device'': [(''vbd'', [''vbd'', [''uname'', > > ''file:/work/dev/tests/feodra_xe_img/fedora.img''], [''dev'', ''sda1''], > > [''mode'', ''w'']]), (''vif'', [''vif''])], ''maxmem'': 32, ''cpu'': None, ''uuid'': > > ''9b2be408-325f-17ef-af34-249571f77145''} > > [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:1011) > > XendDomainInfo.construct: None 0 > > [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:549) > > Storing VM details: {''ssidref'': ''0'', ''uuid'': > > ''9b2be408-325f-17ef-af34-249571f77145'', ''on_reboot'': ''restart'', > > ''image'': ''(linux (kernel /boot/vmlinuz-2.6.12.6-xen0) (root /dev/sda1) > > (vcpus 1) (vcpus 1) (boot c))'', ''on_poweroff'': ''destroy'', ''name'': > > ''myDomU'', ''vcpus'': ''1'', ''vcpu_avail'': ''1'', ''memory'': ''32'', ''on_crash'': > > ''restart'', ''maxmem'': ''32''} > > [2005-11-15 14:39:10 xend] DEBUG (blkif:24) exception looking up > > device number for sda1: [Errno 2] No such file or directory: > > ''/dev/sda1'' > > [2005-11-15 14:39:10 xend] DEBUG (DevController:286) DevController: > > writing {''virtual-device'': ''2049'', ''backend-id'': ''0'', ''state'': ''1'', > > ''backend'': ''/local/domain/0/backend/vbd/2/2049''} to > > /local/domain/2/device/vbd/2049. > > [2005-11-15 14:39:10 xend] DEBUG (DevController:288) DevController: > > writing {''domain'': ''myDomU'', ''params'': > > ''/work/dev/tests/feodra_xe_img/fedora.img'', ''frontend-id'': ''2'', > > ''type'': ''file'', ''state'': ''1'', ''dev'': ''sda1'', ''frontend'': > > ''/local/domain/2/device/vbd/2049''} to > > /local/domain/0/backend/vbd/2/2049. > > [2005-11-15 14:39:10 xend] DEBUG (DevController:286) DevController: > > writing {''backend-id'': ''0'', ''mac'': ''00:16:3e:1b:9f:77'', ''handle'': ''0'', > > ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vif/2/0''} to > > /local/domain/2/device/vif/0. > > [2005-11-15 14:39:10 xend] DEBUG (DevController:288) DevController: > > writing {''mac'': ''00:16:3e:1b:9f:77'', ''state'': ''1'', ''handle'': ''0'', > > ''script'': ''/etc/xen/scripts/vif-bridge'', ''frontend-id'': ''2'', ''domain'': > > ''myDomU'', ''frontend'': ''/local/domain/2/device/vif/0''} to > > /local/domain/0/backend/vif/2/0. > > [2005-11-15 14:39:10 xend.XendDomainInfo] DEBUG (XendDomainInfo:574) > > Storing domain details: {''console/port'': ''2'', ''name'': ''myDomU'', > > ''console/limit'': ''1048576'', ''vm'': > > ''/vm/9b2be408-325f-17ef-af34-249571f77145'', ''domid'': ''2'', > > ''cpu/0/availability'': ''online'', ''memory/target'': ''32768'', > > ''store/port'': ''1''} > > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) xc_linux_save > > start DOM1 live=false > > > > [2005-11-15 14:39:11 xend] DEBUG (XendCheckpoint:191) suspend > > [2005-11-15 14:39:11 xend] DEBUG (XendCheckpoint:76) In > > saveInputHandler suspend[2005-11-15 14:39:11 xend] DEBUG > > (XendCheckpoint:78) Suspending 1 ... > > [2005-11-15 14:39:11 xend.XendDomainInfo] INFO (XendDomainInfo:701) > > Domain has shutdown: name=migrating-myDomU id=1 reason=suspend. > > [2005-11-15 14:39:11 xend] INFO (XendCheckpoint:81) Domain 1 suspended. > > [2005-11-15 14:39:11 xend] DEBUG (XendCheckpoint:84) Written done > > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) Had 0 > > unexplained entries in p2m table > > > > [2005-11-15 14:39:11 xend] DEBUG (XendCheckpoint:139) [xc_restore]: > > /usr/lib/xen/bin/xc_restore 14 19 2 10240 1 2 > > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) xc_linux_restore > > start: max_pfn = 2800 > > > > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) Failed > > allocation for dom 2: 10240 pages order 0 addr_bits 0 > > > > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) Failed to > > increase reservation by 2800 KB > > > > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) > > > > [2005-11-15 14:39:11 xend] ERROR (XendCheckpoint:218) Restore exit with > > rc=1 > > > > [2005-11-15 14:39:11 xend.XendDomainInfo] DEBUG (XendDomainInfo:1122) > > XendDomainInfo.destroy: domid=2 > > [2005-11-15 14:39:11 xend.XendDomainInfo] DEBUG (XendDomainInfo:1130) > > XendDomainInfo.destroyDomain(2) > > [2005-11-15 14:39:11 xend.XendDomainInfo] ERROR (XendDomainInfo:1136) > > XendDomainInfo.destroy: xc.domain_destroy failed. > > Traceback (most recent call last): > > File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1134, in > > destroyDomain xc.domain_destroy(dom=self.domid) > > error: (3, ''No such process'') > > [2005-11-15 14:39:12 xend] ERROR (XendDomain:255) Restore failed > > Traceback (most recent call last): > > File "/usr/lib/python/xen/xend/XendDomain.py", line 250, in > > domain_restore_fd return XendCheckpoint.restore(self, fd) > > File "/usr/lib/python/xen/xend/XendCheckpoint.py", line 143, in restore > > forkHelper(cmd, fd, handler.handler, True) > > File "/usr/lib/python/xen/xend/XendCheckpoint.py", line 209, in > > forkHelper raise XendError("%s failed" % string.join(cmd)) > > XendError: /usr/lib/xen/bin/xc_restore 14 19 2 10240 1 2 failed > > [2005-11-15 14:39:37 xend.XendDomainInfo] INFO (XendDomainInfo:701) > > Domain has shutdown: name=migrating-myDomU id=1 reason=suspend. > > > > Regards, > > IB > > > > On 11/15/05, Steven Hand <Steven.Hand@cl.cam.ac.uk> wrote: > > > > Hello, > > > > > > > > I have the latest xen-unstable which > > > > I pulled from the mercurial repository today > > > > (changeset:7793:090e44133d40 from 14/11). > > > > I tried to use migration and it failed.(details are below). > > > > > > What is in /var/log/xend.log on the [source] host? > > > > > > Can you perform a localhost migration with the default xend-config.sxp? > > > > > > What arch are you working with (32, PAE, 64)? > > > > > > > > > cheers, > > > > > > S. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- ---------------------------------------------------------------------------------------- Michael Mey Thinking Objects Software GmbH | mailto: michael.mey@to.com Lilienthalstrasse 2/1 | phone: +49 711 88770-147 70825 Stuttgart-Korntal, Germany | fax: +49 711 88770-449 ---------------------------------------------------------------------------------------- Millenux und InnoviData auf der LinuxWorld Expo NoMachine NX und die Duden OpenOffice.org Suite http://www.topalis.com/Veranstaltungen.19.0.html _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello, Thanks. If I am not wrong , the default xend-config comes with these relocation parametrs set as you sussgested (I am far from the Xen machine right now for the next twelve hours). You said:>Maybe the same problem >occured to me.may I ask : 1)Did you/anyonne else succeeded in migrating to another machine with xen-unstable from last week? 2)Did you/anyonne else succeeded in migrating to local machine with xen-unstable from last week? As far as I underastand , there is no reason for "xm migrate domU 127.0.0.1" to fail when using xen-unstable with the default xend-config.sxp. Regards, IB _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, I was able to migrate my VM to localhost without any issues. xen-unstable source was downloaded on 8 Nov. The command I issued was #xm migrate 4 127.0.0.1 <http://127.0.0.1> 4 is DomID This migrated successfully, only difference I found was that, it changes the DomID (Ofcourse!!) On 11/15/05, Ian Brown <ianbrn@gmail.com> wrote:> > Hello, > Thanks. > If I am not wrong , the default xend-config comes with these > relocation parametrs set > as you sussgested (I am far from the Xen machine right now for the > next twelve hours). >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, To tell the truth, I am really confused. I tried migration to local host on two machines after installing from scratch with with no success. (even not migrating to local host). I suspect it may be something silly which I do but I cannot put my finger on it. Or maybe it is really a BUG ,since I did not get a positive answer from anybody who succeeded with migration from a Xen Unsable version from last week : Are you awake , Xen Users? :) I want to verify that it is not a memory problem : maybe I should allocate less mem to the domains than I do. So can you please tell me what is the memory allocation metrics you use: I mean 1) what is the total RAM on the host which performs the migration 2) how much memory is allocated in the grub.conf (menu.lst) or lilo conf for domain 0 (it is in the dom0_mem paramer) 3) how much memory is allocated for your domU. BTW: may I ask: did you try to migrate to a different machine ? Thanks, IB On 11/16/05, Two KHz <twokhz@gmail.com> wrote:> Hi, > > I was able to migrate my VM to localhost without any issues. > xen-unstable source was downloaded on 8 Nov. > > The command I issued was > #xm migrate 4 127.0.0.1 > > 4 is DomID > > This migrated successfully, only difference I found was that, it changes > the DomID (Ofcourse!!) > > > > On 11/15/05, Ian Brown <ianbrn@gmail.com> wrote: > > Hello, > > Thanks. > > If I am not wrong , the default xend-config comes with these > > relocation parametrs set > > as you sussgested (I am far from the Xen machine right now for the > > next twelve hours). > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, Regarding Ian Brown question about Migration: I have a version of Xen Unstable from yesterday and migration both to local machine and to a Dom0 on a different machine works. You said the error you get is: "Error: can''t connect: Connection refused" (which is "ECONNREFUSED" errno). I assume with high level of certainty that this problem can be traced to setupRelocation() method in tools/python/xen/xendf/relocate.py. This is how this method starts: try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((dst, port)) except socket.error, err: raise XendError("can''t connect: %s" % err[1]) The default relocation port is 8002. (look at /etc/xen/xend-config.sxp). Make sure that you "xend-relocation-port 8002" is uncommneted and you are litening on this port. The "xend-address localhost" should be commeneted to enable remote connections. You can verify this by running that running this python snippest solely (replacing the dst with the right IP), or simply "telnet dst port" Regards, Rami Rosen _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, Thanks Rami, you were absolutely right ! I had in xend-config.sxp ... #(xend-relocation-address '''') (xend-relocation-address localhost) ... running: netstat -nl | grep 8002 gave tcp 0 0 127.0.0.1:8002 0.0.0.0:* LISTEN and trying from a different machine: xm migrate 1 MY_MACHINE_IP_ADDR gave Error: can''t connect: Connection refused and also , from that other machine: telnet MY_MACHINE_IP_ADDR 8002 Trying MY_MACHINE_IP_ADDR... telnet: connect to address MY_MACHINE_IP_ADDR: Connection refused ////////////////////////////////////////////////////////////////////////////// So I changed xend-config.sxp thus: (xend-relocation-address '''') #(xend-relocation-address localhost) and then netstat -nl |grep 8002 tcp 0 0 0.0.0.0:8002 0.0.0.0:* LISTEN LISTEN and also telnet MY_MACHINE_IP_ADDR 8002 was OK. (connection started) and also migrating from a different machine worked! Thanks again, IB On 11/18/05, Rami Rosen <rosenrami@gmail.com> wrote:> Hi, > > Regarding Ian Brown question about Migration: > > I have a version of Xen Unstable from yesterday and > migration both to local machine and to a Dom0 on > a different machine works. > > You said the error you get is: > "Error: can''t connect: Connection refused" > (which is "ECONNREFUSED" errno). > > > I assume with high level of certainty that this problem > can be traced to setupRelocation() method in > tools/python/xen/xendf/relocate.py. > > This is how this method starts: > try: > sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > sock.connect((dst, port)) > except socket.error, err: > raise XendError("can''t connect: %s" % err[1]) > > > The default relocation port is 8002. (look at /etc/xen/xend-config.sxp). > > Make sure that you "xend-relocation-port 8002" is > uncommneted and you are litening on this port. > > The "xend-address localhost" should be commeneted to enable > remote connections. > > You can verify this by running that running this python snippest solely > (replacing the dst with the right IP), or simply "telnet dst port" > > Regards, > Rami Rosen > > > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users