From: =?GB2312?B?1cXD+rzO?= Subject: Re: Remus stopped with full protection Date: Sun, 24 Jan 2010 12:39:49 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0048311602==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , brendan@cs.ubc.ca, xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0048311602== Content-Type: multipart/alternative; boundary=005045016bed9a66d4047de1a460 --005045016bed9a66d4047de1a460 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Thank you very much for your reply. I create hvm using spicified remus configuration file(add 'tap:remus'): [root@server1 img]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 2046 8 r----- 1505.3 Rhel5-hvm1 2 512 1 ------ 28.2 The state of HVM first appears as 'r',then after a while it turns into 'no status' like above.Since Remus claims that it will will block writes to dis= k until I start the remus script, so I guess this is the normal condition.(I tested the image with common operation like 'xm create' without using "tap:remus" and logging in with vnc. it is ok) Following is the contents of xend.log since I create a HVM and run remus script. it seems that there is no infor about running '#remus myvm backuphost' but only infor on creating hvm. I notice that there is an error "AttributeError: 'NoneType' object has no attribute 'memory_sharing'" at line 2483. I don't know whether it is the reason that causes remus failed. Maybe I should fix this problem first. Brendan has posted "HVM live migration error, probably related to 20691:054042ba73b6 " on 21, Jan. The problem is much like that I encountered, yet the version of my xen-unstable is 20550. xend.log 2460 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:234) XendDomainInfo.restore(['domain', ['domid', '2'], ['cpu_weight', '256'], ['cpu_cap', '0'], ['on_crash', 'restart'] , ['uuid', '16f79681-fc24-24f8-b338-0da5dbb2e298'], ['bootloader_args'], ['vcpus', ' 1'], ['name', 'Rhel5-hvm1'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], [ 'cpus', [[]]], ['description'], ['bootloader'], ['maxmem'= , '512'], ['memory', '512'] , ['shadow_memory', '5'], ['features'], ['on_xend_start', 'ignore'], ['on_xend_stop' , 'ignore'], ['start_time'= , '1264125126.21'], ['cpu_time', '28.154313158'], ['online _vcpus', '1'], ['image', ['hvm', ['kernel'], ['superpages', '0'], ['tsc_mode', '0'], ['videoram', '4'], ['hpet', '0'], ['stdvga', '0'], ['vnclisten', '0.0.0.0'], ['load er', '/usr/lib/xen/boot/hvmloader'], ['serial', 'pty'], ['vncunused', '1'], ['xen_pl atform_pci', '1'], ['opengl', '1']= , ['boot', 'c'], ['rtc_timeoffset', '0'], ['pci', []], ['pae', '1'], ['vpt_align', '1'], ['hap', '1'], ['viridian', '0'], ['acpi', '1' ], ['localtime', '0'], ['timer_mode', '1'], ['vnc', '1'], ['nographic', '0'], ['gues t_os_type', 'default'], ['vncdisplay', '2'], ['pci_msitranslate'= , '1'], ['oos', '1'] , ['apic', '1'], ['sdl', '0'], ['nomigrate', '0'], ['monitor', '1'], ['device_model' , '/usr/lib/xen/bin/qemu-dm'], ['pci_power_mgmt', '0'], ['usb', '0'], ['xauthority', '/root/.Xauthority'], ['isa', '0'], ['display', 'localhost:11.0'], ['notes', ['SUSP END_CANCEL', '1']]]], ['status', '2'], ['state', '------'], ['store_mfn', '1044476'] , ['device', ['vif', ['mac', '00:1c:3e:17:22:13'], ['script', '/etc/xen/scripts/vif- bridge'], ['type', 'ioemu'], ['uuid', 'c73b15f1-c6d8-4bf3-8153-73c951b7381c'], ['bac kend', '0']]], ['device', ['vfb', ['vncunused', '1'], ['vnc', '1'], ['uuid', 'bc4db1 5b-1057-31ec-9f30-de6f1c3d8a75'], ['vnclisten', '0.0.0.0'], ['vncdisplay', '2'], ['l ocation', '0.0.0.0:5902']]], ['device', ['console', ['protocol', 'vt100'], ['locatio n', '3'], ['uuid', '672e5b39-38ea-68af-1dcd-0304fe286476']]], ['device', ['tap2', [' protocol', 'x86_32-abi'], ['uuid', '640b4fd4-c6fa-8851-5e48-26d29df33e0e'], ['bootab le', '1'], ['dev', 'hda:disk'], ['uname', 'tap:remus:server2:9000|aio:/dev/vgxen/hvm snap'], ['mode', 'w'], ['backend', '0'], ['VDI']]]]) 2461 [2010-01-22 08:59:34 5217] WARNING (XendConfig:873) Unconverted key: Description 2462 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:2450) XendDomainInfo.constructDomai n 2463 [2010-01-22 08:59:34 5217] DEBUG (balloon:220) Balloon: 1745776 KiB free; need 4096; done. 2464 [2010-01-22 08:59:34 5217] DEBUG (XendDomain:464) Adding Domain: 9 2465 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:3341) Storing VM details: {'on_xend _stop': 'ignore', 'shadow_memory': '5', 'uuid': '16f79681-fc24-24f8-b338-0da5dbb2e29 8', 'on_reboot': 'restart', 'start_time': '1264125126.21', 'on_poweroff': 'destroy', 'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/rest art_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'bootloader': '', 'image': '(hvm ( kernel ) (superpages 0) (tsc_mode 0) (videoram 4) (hpet 0) (stdvga 0) (vnclisten 0.0 .0.0) (loader /usr/lib/xen/boot/hvmloader) (serial pty) (vncunused 1) (xen_platform_ pci 1) (opengl 1) (boot c) (rtc_timeoffset 0) (pci ()) (pae 1) (vpt_align 1) (hap 1) (viridian 0) (acpi 1) (localtime 0) (timer_mode 1) (vnc 1) (nographic 0) (guest_os_ type default) (vncdisplay 2) (pci_msitranslate 1) (oos 1) (apic 1) (sdl 0) (nomigrat e 0) (monitor 1= ) (device_model /usr/lib/xen/bin/qemu-dm) (pci_power_mgmt 0) (usb 0) (xauthority /root/.Xauthority) (isa 0) (display localhost:11.0) (notes (SUSPEND_CANC EL 1)))', 'name': 'Rhel5-hvm1'} 2466 [2010-01-22 08:59:34 5217] INFO (XendDomainInfo:2313) createDevice: vf= b : {'vncunuse d': '1', 'other_config': {'vncunused': '1', 'vnclisten': '0.0.0.0', 'vnc': '1', 'vnc display': '2'}, 'vnc': '1', 'uuid': 'bc4db15b-1057-31ec-9f30-de6f1c3d8a75', 'vnclist en': '0.0.0.0', 'vncdisplay': '2', 'location': '0.0.0.0:5902'} 2467 [2010-01-22 08:59:34 5217] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/9/0'} to /local/dom ain/9/device/vfb/0. 2468 [2010-01-22 08:59:34 5217] DEBUG (DevController:97) DevController: writing {'vncunus ed': '1', 'domain': 'Rhel5-hvm1', 'vnc': '1', 'uuid': 'bc4db15b-1057-31ec-9f30-de6f1 c3d8a75', 'frontend-id': '9', 'vnclisten': '0.0.0.0', 'vncdisplay': '2', 'state': '1 ', 'location': ' 0.0.0.0:5902', 'online': '1', 'frontend': '/local/domain/9/device/vf b/0'} to /local/domain/0/backend/vfb/9/0.2469 [2010-01-22 08:59:34 5217] INFO (XendDomainInfo:2313) createDevice: console : {'prot ocol': 'vt100', 'location': '3', 'uuid': '672e5b39-38ea-68af-1dcd-0304fe286476'}2470 [2010-01-22 08:59:34 5217] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/9/0'} to /local /domain/9/device/console/0.2471 [2010-01-22 08:59:34 5217] DEBUG (DevController:97) DevController: writing {'domain' : 'Rhel5-hvm1', 'frontend': '/local/domain/9/device/console/0', 'uuid': '672e5b39-38 ea-68af-1dcd-0304fe286476', 'frontend-id': '9', 'state': '1', 'location': '3', 'onli ne': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/9/0.2472 [2010-01-22 08:59:34 5217] INFO (XendDomainInfo:2313) createDevice: tap2 : {'protoco l': 'x86_32-abi', 'uuid': '640b4fd4-c6fa-8851-5e48-26d29df33e0e', 'bootable': 1, 'de v': 'hda:disk', 'uname': 'tap:remus:server2:9000|aio:/dev/vgxen/hvmsnap', 'mode': 'w ', 'backend': '0'} 2469 [2010-01-22 08:59:34 5217] INFO (XendDomainInfo:2313) createDevice: console : {'prot ocol': 'vt100', 'location': '3', 'uuid': '672e5b39-38ea-68af- 1dcd-0304fe286476'} 2470 [2010-01-22 08:59:34 5217] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/9/0'} to /local /domain/9/device/console/0. 2471 [2010-01-22 08:59:34 5217] DEBUG (DevController:97) DevController: writing {'domain' : 'Rhel5-hvm1', 'frontend': '/local/domain/9/device/console/0', 'uuid': '672e5b39-38 ea-68af-1dcd-0304fe286476', 'frontend-id': '9', 'state': '1', 'location': '3', 'onli ne': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/9/0. 2472 [2010-01-22 08:59:34 5217] INFO (XendDomainInfo:2313) createDevice: tap2 : {'protoco l': 'x86_32-abi', 'uuid': '640b4fd4-c6fa-8851-5e48- 26d29df33e0e', 'bootable': 1, 'de v': 'hda:disk', 'uname': 'tap:remus:server2:9000|aio:/dev/vgxen/hvmsnap', 'mode': 'w ', 'backend': '0'} 2473 [2010-01-22 08:59:34 5217] ERROR (XendDomainInfo:501) VM resume failed 2474 Traceback (most recent call last): 2475 File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 497, in re sume 2476 self._createDevices() 2477 File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2316, in _ createDevices 2478 devid =3D self._createDevice(devclass, config) 2479 File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2282, in _ createDevice 2480 return self.getDeviceController(deviceClass).createDevice(devConfig) 2481 File "usr/lib/python2.4/site-packages/xen/xend/server/BlktapController.py", line 2 01, in createDevice 2482 if self.vm.image.memory_sharing: 2483 AttributeError: 'NoneType' object has no attribute 'memory_sharing' 2484 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:2994) XendDomainInfo.destroy: domid =3D9 2485 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:2358) No device model 2486 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:2360) Releasing devices 2487 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:2366) Removing vfb/0 2488 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:1237) XendDomainInfo.destroyDevice: deviceClass =3D vfb, device =3D vfb/0 2489 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:2366) Removing console/0 2490 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:1237) XendDomainInfo.destroyDevice: deviceClass =3D console, device =3D cons= ole/0 2491 [2010-01-22 08:59:34 5217] ERROR (XendDomain:1181) Restore failed 2492 Traceback (most recent call last): 2493 File "usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line 1159, in domai n_restore_fd 2494 dominfo =3D XendCheckpoint.restore(self, fd, paused=3Dpaused, relocating=3Drelocating) 2495 File "usr/lib/python2.4/site-packages/xen/xend/XendCheckpoint.py", line 227, in re store 2496 dominfo =3D xd.restore_(vmconfig) 2497 File "usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line 521, in restor e_ 2498 dominfo =3D XendDomainInfo.restore(config) 2499 File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 238, in re store 2500 vm.resume() 2501 File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 497, in re sume 2502 self._createDevices() 2503 File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2316, in _ createDevices 2504 devid =3D self._createDevice(devclass, config) 2505 File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2282, in _ createDevice 2506 return self.getDeviceController(deviceClass).createDevice(devConfig) 2507 File "usr/lib/python2.4/site-packages/xen/xend/server/BlktapController.py", line 2 01, in createDevice 2508 if self.vm.image.memory_sharing: 2509 AttributeError: 'NoneType' object has no attribute 'memory_sharing' 2510 [2010-01-22 09:02:34 5217] WARNING (XendConfig:873) Unconverted key: Description 2511 [2010-01-22 09:02:34 5217] DEBUG (XendDomainInfo:100) XendDomainInfo.create(['vm', [ 'name', 'Rhel5-hvm1'], ['memory', '512']= , ['on_xend_start', 'ignore'], ['on_xend_sto p', 'ignore'], ['vcpus', 1], ['oos', 1], ['image', ['hvm', ['kernel', '/usr/lib/xen/ boot/hvmloader'], ['videoram', 4], ['serial', 'pty'], ['monitor', 1], ['acpi', 1], [ 'apic', 1], ['boot', 'c'], ['cpuid', []], ['cpuid_check', []], ['device_model', '/us r/lib/xen/bin/qemu-dm'], ['display', 'localhost:10.0'], ['fda', ''], ['fdb'= , ''], [' guest_os_type', 'default'], ['hap', 1], ['hpet', 0], ['isa', 0], ['keymap', ''], ['l ocaltime', 0], ['nographic', 0], ['opengl', 1], ['oos', 1], ['pae', 1], ['pci', []], ['pci_msitranslate', 1], ['pci_power_mgmt', 0], ['rtc_timeoffset', 0], ['sdl', 0], ['soundhw', ''], ['stdvga', 0], ['timer_mode', 1], ['usb', 0], ['usbdevice', ''], [' vcpus', 1], ['vnc'= , 1], ['vncdisplay', 2], ['vnclisten', '0.0.0.0'], ['vncunused', 1 ], ['viridian', 0], ['vpt_align', 1], ['xauthority', '/root/.Xauthority'], ['xen_pla tform_pci', 1], ['memory_sharing', 0], ['vncpasswd', 'XXXXXXXX'], ['tsc_mode', 0], [ 'nomigrate', 0]]], ['s3_integrity', 1], ['device', ['tap2', ['uname', 'tap:remus:ser ver1:9000|aio:/dev/vgxen/hvmsnap'], ['dev', 'hda'], ['mode', 'w']]], ['device', ['vi f', ['mac', '00:1c:3e:17:22:13'], ['type', 'ioemu']]]]) 2512 [2010-01-22 09:02:34 5217] DEBUG (XendDomainInfo:2450) XendDomainInfo.constructDomai n 2513 [2010-01-22 09:02:34 5217] DEBUG (balloon:220) Balloon: 1745776 KiB free; need 4096; done. 2514 [2010-01-22 09:02:34 5217] DEBUG (XendDomain:464) Adding Domain: 10251= 5 [2010-01-22 09:02:34 5217] DEBUG (XendDomainInfo:2759) XendDomainInfo.initDomain: 10 256 2516 [2010-01-22 09:02:34 5217] DEBUG (image:339) No VNC passwd configured for vfb access 2517 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: boot, val: c 2518 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: fda, val: None 2519 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: fdb, val: None 2520 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: soundhw, val: None 2521 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: localtime, val: 0 2522 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: serial, val: ['pty'= ] 2523 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: std-vga, val: 0 2524 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: isa, val: 0 2525 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: acpi, val: 1 2526 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: usb, val: 0 2527 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: usbdevice, val: Non= e 2528 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: gfx_passthru, val: None 2529 [2010-01-22 09:02:34 5217] INFO (image:824) Need to create platform device.[domid:10 ] 2530 [2010-01-22 09:02:34 5217] DEBUG (XendDomainInfo:2786) _initDomain:shadow_memory=3D0x0 , memory_static_max=3D0x20000000, memory_static_min=3D0x0. 2531 [2010-01-22 09:02:34 5217] INFO (image:182) buildDomain os=3Dhvm dom= =3D10 vcpus=3D1 2532 [2010-01-22 09:02:34 5217] DEBUG (image:949) domid =3D 10 2533 [2010-01-22 09:02:34 5217] DEBUG (image:950) image =3D /usr/lib/xen/boot/hvml oader 2534 [2010-01-22 09:02:34 5217] DEBUG (image:951) store_evtchn =3D 2 2535 [2010-01-22 09:02:34 5217] DEBUG (image:952) memsize =3D 512 2536 [2010-01-22 09:02:34 5217] DEBUG (image:953) target =3D 512 2537 [2010-01-22 09:02:34 5217] DEBUG (image:954) vcpus =3D 1 2538 [2010-01-22 09:02:34 5217] DEBUG (image:955) vcpu_avail =3D 1 2539 [2010-01-22 09:02:34 5217] DEBUG (image:956) acpi =3D 1 2540 [2010-01-22 09:02:34 5217] DEBUG (image:957) apic =3D 1 2541 [2010-01-22 09:02:34 5217] INFO (XendDomainInfo:2313) createDevice: vf= b : {'vncunuse d': 1, 'other_config': {'vncunused': 1, 'vnclisten': '0.0.0.0', 'vnc': '1', 'vncdisp lay': 2}, 'vnc': '1', 'uuid': 'ae373736-f85a-e7a3-60aa-30d6f3a68118', 'vnclisten': ' 0.0.0.0', 'vncdisplay': 2} 2542 [2010-01-22 09:02:34 5217] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/10/0'} to /local/do main/10/device/vfb/0. 2543 [2010-01-22 09:02:34 5217] DEBUG (DevController:97) DevController: writing {'vncunus ed': '1', 'domain': 'Rhel5-hvm1', 'vnc': '1', 'uuid': 'ae373736-f85a-e7a3-60aa-30d6f 3a68118', 'frontend-id': '10', 'vnclisten': '0.0.0.0', 'vncdisplay': '2', 'state': ' 1', 'online': '1'= , 'frontend': '/local/domain/10/device/vfb/0'} to /local/domain/0/b ackend/vfb/10/0. 2544 [2010-01-22 09:02:34 5217] INFO (XendDomainInfo:2313) createDevice: tap2 : {'bootabl e': 1, 'uname': 'tap:remus:server1:9000|aio:/dev/vgxen/hvmsnap', 'mode': 'w', 'dev': 'hda', 'uuid': 'b5fd6bdd-ab5d-1f8b-7142-e45656cfaea0'} 2545 [2010-01-22 09:02:34 5217] DEBUG (DevController:95) DevController: writing {'backend -id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/10/768'} to /local/domain/10/device/vbd/768. 2546 [2010-01-22 09:02:34 5217] DEBUG (DevController:97) DevController: writing {'domain' : 'Rhel5-hvm1', 'frontend': '/local/domain/10/device/vbd/768', 'uuid': 'b5fd6bdd-ab5 d-1f8b-7142-e45656cfaea0', 'bootable': '1', 'dev'= : 'hda', 'state': '1', 'params': '/ dev/xen/blktap-2/tapdev0', 'mode': 'w', 'online': '1', 'frontend-id': '10', 'type': 'phy', 'tapdisk-params': 'remus:server1:9000|aio:/dev/vgxen/hvmsnap'} to /local/doma in/0/backend/vbd/10/768. 2547 [2010-01-22 09:02:34 5217] INFO (XendDomainInfo:2313) createDevice: vi= f : {'mac': '0 0:1c:3e:17:22:13', 'type': 'ioemu', 'uuid': '3dbaa2b3-97d7= - cc9d-51e7-09bcf7c5fc4b'} 2548 [2010-01-22 09:02:34 5217] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vif/10/0'} to /local/do main/10/device/vif/0. 2549 [2010-01-22 09:02:34 5217] DEBUG (DevController:97) DevController: writing {'domain' : 'Rhel5-hvm1', 'frontend': '/local/domain/10/device/vif/0', 'uuid': '3dbaa2b3-97d7- cc9d-51e7-09bcf7c5fc4b', 'script': '/etc/xen/scripts/vif-bridge', 'mac': '00:1c:3e:1 7:22:13', 'frontend-id': '10', 'state': '1', 'online': '1', 'handle': '0', 'type': ' ioemu'} to /local/domain/0/backend/vif/10/0. 2550 [2010-01-22 09:02:34 5217] INFO (image:420) spawning device models: /usr/lib/xen/bin /qemu-dm ['/usr/lib/xen/bin/qemu-dm', '-d', '10', '-domain- name', 'Rhel5-hvm1', '-vi deoram', '4', '-vnc', '0.0.0.0:2', '-vncunused', '-monitor', 'vc', '-vcpus', '1', '- boot', 'c', '-serial'= , 'pty', '-acpi', '-net', 'nic,vlan=3D1,macaddr=3D00:1c:3e:17:22:13 ,model=3Drtl8139', '-= net', 'tap,vlan=3D1,ifname=3Dtap10.0,bridge=3Dxenbr0', '-M', 'xenfv'] 2551 [2010-01-22 09:02:34 5217] INFO (image:469) device model pid: 7322 2552 [2010-01-22 09:02:34 5217] INFO (image:592) waiting for sentinel_fifo 2553 [2010-01-22 09:02:34 5217] DEBUG (XendDomainInfo:3341) Storing VM details: {'on_xend _stop': 'ignore', 'shadow_memory': '5', 'uuid': 'fcc2e15d-ee63 -dbf1-118a-9c3f1e2865e 6', 'on_reboot': 'restart', 'start_time': '1264122154.95', 'on_poweroff': 'destroy', 'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/rest art_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'bootloader': '', 'image': '(hvm ( kernel ) (superpages 0) (tsc_mode 0) (videoram 4) (hpet 0) (stdvga 0) (vnclisten 0.0 .0.0) (loader /usr/lib/xen/boot/hvmloader) (serial pty) (vncunused 1) (xen_platform_ pci 1) (opengl 1) (boot c) (rtc_timeoffset 0) (pci ()) (pae 1) (vpt_align 1= ) (hap 1) (viridian 0) (acpi 1) (localtime 0) (timer_mode 1) (vnc 1) (nographic 0) (guest_os_ type default) (vncdisplay 2) (pci_msitranslate 1) (oos 1) (apic 1) (sdl 0) (nomigrat e 0) (monitor 1) (device_model /usr/lib/xen/bin/qemu-dm) (pci_power_mgmt 0) (usb 0) (xauthority /root/.Xauthority) (isa 0) (display localhost:10.0) (notes (SUSPEND_CANC EL 1)))', 'name': 'Rhel5-hvm1'} 2554 [2010-01-22 09:02:34 5217] DEBUG (XendDomainInfo:1750) Storing domain details: {'con sole/port': '3', 'description': '', 'console/limit': '1048576', 'store/port': '2', ' vm': '/vm/fcc2e15d-ee63-dbf1-118a-9c3f1e2865e6', 'domid': '10', 'image/suspend-cance l': '1', 'cpu/0/availability': 'online', 'memory/target': '524288', 'control/platfor m-feature-multiprocessor-suspend': '1', 'store/ring-ref': '1044476', 'console/type': 'ioemu', 'name': 'Rhel5-hvm1'} 2555 [2010-01-22 09:02:35 5217] DEBUG (DevController:95) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/10/0'} to /loca l/domain/10/device/console/0. 2556 [2010-01-22 09:02:35 5217] DEBUG (DevController:97) DevController: writing {'domain' : 'Rhel5-hvm1', 'frontend': '/local/domain/10/device/console/0', 'uuid': '237d70b3-1 10a-09e0-0aa5-96b986d1714f', 'frontend-id': '10', 'state': '1', 'location': '3', 'on line': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/10/0. 2557 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices vif2. 2558 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices vif. 2559 [2010-01-22 09:02:35 5217] DEBUG (DevController:144) Waiting for 0. 2560 [2010-01-22 09:02:35 5217] DEBUG (XendDomainInfo:1837) XendDomainInfo.handleShutdown Watch 2561 [2010-01-22 09:02:35 5217] DEBUG (DevController:628) hotplugStatusCallback /local/do main/0/backend/vif/10/0/hotplug-status. 2562 [2010-01-22 09:02:35 5217] DEBUG (DevController:628) hotplugStatusCallback /local/do main/0/backend/vif/10/0/hotplug-status. 2563 [2010-01-22 09:02:35 5217] DEBUG (DevController:642) hotplugStatusCallback 1. 2564 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices vscsi. 2565 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices vbd. 2566 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices ioports. 2567 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices irq. 2568 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices vkbd. 2569 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices vfb. 2570 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices console. 2571 [2010-01-22 09:02:35 5217] DEBUG (DevController:144) Waiting for 0. 2572 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices pci. 2573 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices tap2. 2574 [2010-01-22 09:02:35 5217] DEBUG (DevController:144) Waiting for 768. 2575 [2010-01-22 09:02:35 5217] DEBUG (DevController:628) hotplugStatusCallback /local/do main/0/backend/vbd/10/768/hotplug-status. 2576 [2010-01-22 09:02:35 5217] DEBUG (DevController:642) hotplugStatusCallback 1. 2577 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices tap. 2578 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices vusb. 2579 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices vtpm. 2580 [2010-01-22 09:02:35 5217] INFO (XendDomain:1206) Domain Rhel5-hvm1 (10) unpaused. 2010/1/21 Keir Fraser > On 19/01/2010 07:57, "=D5=C5=C3=FA=BC=CE" wrote: > > > Saving memory pages: iter 1 0%ERROR Internal error: Error when writin= g > to > > state file > > (4a) (errno 104) > > Save exit rc=3D1 > > qemu logdirty mode: disable > > then the program stops. > > > > The error is located at line1361 xc_domain_save.c. The errno 104 standa= rd > for > > "connection reset by peers". > > I'm not sure whether there there are some mistake about the network > socket. > > > > I've been stunked by this for two weeks. Do I miss something or could > anybody > > tell what I should do next. > > Are here any errors in /var/log/xen/xend.log on either host? > > -- Keir > > > --=20 --=20 Best Regards Minjia Zhang Huazhong University of Science and Technology Room 328,Dong 8 Building 8, No.1037 Luoyu Road, Wuhan 430074, P.R.C. Tel: +86-159-2625-3437 Email:zhangninja@gmail.com --005045016bed9a66d4047de1a460 Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable Thank you very much for your reply.

I create hvm using&n= bsp;spicified remus configuration file(add 'tap:remus'):<= /div>

[root@server1 img]# xm list
Name &n= bsp;                     =                  ID   Mem= VCPUs      State   Time(s)
Domain-0                  = ;                   0  20= 46     8     r-----   1505.3
Rhel5-hvm1 =                      = ;             2   512     1 &n= bsp;   ------     28.2

The state of= HVM first appears as 'r',then after a while it turns into 'no = status' like above.Since Remus claims that it will will block writes to= disk until I start the remus script, so I guess this is the normal co= ndition.(I tested the image with common operation like 'xm create' = without using "tap:remus"  and logging in with vnc. it = is ok)

Following is the contents of xend.log since I create a = HVM and run remus script. it seems that there is no infor about running = 9;#remus myvm backuphost' but only infor on creating hvm. 

I notice that there is an error "AttributeError: 'N= oneType' object has no attribute 'memory_sharing'" at line= 2483. I don't know whether it is the reason that causes remus fai= led. Maybe I should fix this problem first.

Brendan has posted "HVM live migration error, prob= ably related to 20691:054042ba73b6 " on 21, Jan. The problem is much l= ike that I encountered, yet the version of my xen-unstable is 20550.&n= bsp;

xend.log
2460 [2010-01-22 08:59:34 5217] DEBU= G (XendDomainInfo:234) XendDomainInfo.restore(['domain', ['domi= d', '2'], ['cpu_weight', '256'], ['cpu_cap&= #39;, '0'], ['on_crash', 'restart'] , ['uu= id', '16f79681-fc24-24f8-b338-0da5dbb2e298'], ['bootloader_= args'], ['vcpus', '     1'], ['name',= 'Rhel5-hvm1'], ['on_poweroff', 'destroy'], [&= #39;on_reboot', 'restart'], [     'cpus', [[]= ]], ['description'], ['bootloader'], ['maxmem', = 9;512'], ['memory', '512']     , ['s= hadow_memory', '5'], ['features'], ['on_xend_start&= #39;, 'ignore'], ['on_xend_stop'     , 'ignor= e'], ['start_time', '1264125126.21'], ['cpu_time= 9;, '28.154313158'], ['online     _vcpus', &= #39;1'], ['image', ['hvm', ['kernel'], ['su= perpages', '0'], ['tsc_mode', '0'],   &nbs= p;  ['videoram', '4'], ['hpet', '0'],&= nbsp;['stdvga', '0'], ['vnclisten', '0.0.0.0= 9;], ['load     er', '/usr/lib/xen/boot/hvmloader'= ;], ['serial', 'pty'], ['vncunused', '1'], = ['xen_pl     atform_pci', '1'], ['opengl= ', '1'], ['boot', 'c'], ['rtc_timeoffset= 9;, '0'], ['pci',      []], ['pae', = '1'], ['vpt_align', '1'], ['hap', '1= 9;], ['viridian', '0'], ['acpi', '1' &= nbsp;   ], ['localtime', '0'], ['timer_mode', = '1'], ['vnc', '1'], ['nographic', '0= 9;], ['gues     t_os_type', 'default'], ['vnc= display', '2'], ['pci_msitranslate', '1'],= ['oos', '1']     , ['apic', '1']= , ['sdl', '0'], ['nomigrate', '0'], ['m= onitor', '1'], ['device_model'     , = 9;/usr/lib/xen/bin/qemu-dm'], ['pci_power_mgmt', '0'], = ['usb', '0'], ['xauthority',      &#= 39;/root/.Xauthority'], ['isa', '0'], ['display'= ;, 'localhost:11.0'], 
['notes', ['SUSP     END_CANCEL', '1'= ;]]]], ['status', '2'], ['state', '------']= , ['store_mfn', '1044476']     , ['device'= ;, ['vif', ['mac', 
'00:1c:3e:17:22:13'], ['script', '/etc/xen/scripts= /vif-     bridge'], ['type', 'ioemu'], ['= uuid', 'c73b15f1-c6d8-4bf3-8153-73c951b7381c'], ['bac  = ;   kend', '0']]], ['device', ['vfb',= ['vncunused', '1'], ['vnc', '1'], ['uu= id', 'bc4db1     5b-1057-31ec-9f30-de6f1c3d8a75'], [&= #39;vnclisten', '0.0.0.0'], ['vncdisplay', '2&= #39;], ['l     ocation', '0.0.0.0:5902']]], ['= ;device', ['console', ['protocol', 'vt100'], [&= #39;locatio     n', '3'], ['uuid', '672e5= b39-38ea-68af-1dcd-0304fe286476']]], ['device', ['tap2'= , ['     protocol', 'x86_32-abi'], ['uuid'= ;, '640b4fd4-c6fa-8851-5e48-26d29df33e0e'], ['bootab   &nb= sp; le', '1'], ['dev', 'hda:disk'], ['= uname', 'tap:remus:server2:9000|aio:/dev/vgxen/hvm     sn= ap'], ['mode', 'w'], ['backend', '0'], = ['VDI']]]])
2461 [2010-01-22 08:59:34 5217] WARNING (XendConfig:873) Unconverted k= ey: Description
2462 [2010-01-22 08:59:34 5217] DEBUG (XendDomain= Info:2450) XendDomainInfo.constructDomai     n
2463 [20= 10-01-22 08:59:34 5217] DEBUG (balloon:220) Balloon: 1745776 KiB free; need= 4096;      done.
2464 [2010-01-22 08:59:34 5217] DEBUG (XendDomain:464) Adding Domain: = 9
2465 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:3341) Sto= ring VM details: {'on_xend     _stop': 'ignore', = 'shadow_memory': '5', 'uuid': '16f79681-fc24-24= f8-b338-0da5dbb2e29     8', 'on_reboot': 'restart= ', 'start_time': '1264125126.21', 'on_poweroff'= : 'destroy',      'bootloader_args': '&#= 39;, 'on_xend_start': 'ignore', 'on_crash': &#= 39;restart', 'xend/rest     art_count': '0', = 'vcpus': '1', 'vcpu_avail': '1', 'bootl= oader': '', 'image': '(hvm (     kernel )= (superpages 0) (tsc_mode 0) (videoram 4) (hpet 0) (stdvga 0) (vnclist= en 0.0     .0.0) (loader /usr/lib/xen/boot/hvmloader) (serial pty= ) (vncunused 1) (xen_platform_  pci 1) (opengl 1) (boot c) (rtc_timeof= fset 0) (pci ()) (pae 1) (vpt_align 1) (hap 1)      (viridia= n 0) (acpi 1) (localtime 0) (timer_mode 1) (vnc 1) (nographic 0) (gues= t_os_     type default) (vncdisplay 2) (pci_msitranslate 1) (oos = 1) (apic 1) (sdl 0) (nomigrat     e 0) (monitor 1) (device_model&= nbsp;/usr/lib/xen/bin/qemu-dm) (pci_power_mgmt 0) (usb 0)     &nb= sp;(xauthority /root/.Xauthority) (isa 0) (display localhost:11.0) (notes (= SUSPEND_CANC     EL 1)))', 
'name': 'Rhel5-hvm1'}
2466 [2010-01-22 08:59= :34 5217] INFO (XendDomainInfo:2313) createDevice: vfb : {'vncunuse &nb= sp;   d': '1', 'other_config': {'vncunused'= ;: '1', 'vnclisten': 
'0.0.0.0', 'vnc': '1', 'vnc     = display': '2'}, 'vnc': '1', 'uuid': = 9;bc4db15b-1057-31ec-9f30-de6f1c3d8a75', 'vnclist     en&= #39;: '0.0.0.0', 'vncdisplay': '2', 
'/local/domain/0/backend/vfb/9/0'} to /local/dom    = ain/9/device/vfb/0.
2468 [2010-01-22 08:59:34 5217] DEBUG (DevCo= ntroller:97) DevController: writing {'vncunus     ed': &#= 39;1', 'domain': 'Rhel5-hvm1', 'vnc': '1= 9;, 'uuid': 
'online': '1', 'frontend': '/local/domain/= 9/device/vf     b/0'} to /local/domain/0/backend/vfb/9/0.2469= [2010-01-22 08:59:34 5217] INFO (XendDomainInfo:2313) 
crea= teDevice: console : {'prot     ocol': 'vt100', &#= 39;location': '3', 'uuid': '672e5b39-38ea-68af-1dcd= -0304fe286476'}2470 [2010-01-22 08:59:34 5217] DEBUG 
(DevController:95) DevController: writing {'state':   &nb= sp;  '1', 'backend-id': '0', 'backend'= : '/local/domain/0/backend/console/9/0'} to /local    &nb= sp;
/domain/9/device/console/0.2471 [2010-01-22 08:59:34 5217] DE= BUG (DevController:97) DevController: writing {'domain'   &nbs= p; : 'Rhel5-hvm1', 'frontend': 
'/local/domain/9/device/console/0', 'uuid': '672e5= b39-38     ea-68af-1dcd-0304fe286476', 'frontend-id':= '9', 'state': '1', 'location': '3'= , 'onli     ne': 
'1', 'protocol': 'vt100'} to /local/domain/0/b= ackend/console/9/0.2472 [2010-01-22 08:59:34 5217] INFO (XendDomainInfo:231= 3) createDevice: tap2 : {'protoco    
 l':= 'x86_32-abi', 'uuid': '640b4fd4-c6fa-8851-5e48-26d29df= 33e0e', 'bootable': 1, 'de     v': 'hda:d= isk', 'uname': 
'tap:remus:server2:9000|aio:/dev/vgxen/hvmsnap', 'mode'= ;: 'w     ', 'backend': '0'}
24= 69 [2010-01-22 08:59:34 5217] INFO (XendDomainInfo:2313) createDevice: cons= ole : {'prot     ocol': 'vt100', 'location= 9;: '3', 'uuid': '672e5b39-38ea-68af-
1dcd-0304fe286476'}
2470 [2010-01-22 08:59:34 5217] DEBU= G (DevController:95) DevController: writing {'state':    =  '1', 'backend-id': '0', 'backend':&n= bsp;
'/local/domain/0/backend/console/9/0'} to /local &nb= sp;   /domain/9/device/console/0.
2471 [2010-01-22 08:59:34 5217] DEBUG (DevController:97) DevController= : writing {'domain'     : 'Rhel5-hvm1', 'fron= tend': '/local/domain/9/device/console/0', 
'= ;uuid': '672e5b39-38     ea-68af-1dcd-0304fe286476', = 'frontend-id': '9', 'state': '1', 'loca= tion': '3', 'onli     ne': '1', '= protocol': 'vt100'} to 
/local/domain/0/backend/console/9/0.
2472 [2010-01-22 08:59:= 34 5217] INFO (XendDomainInfo:2313) createDevice: tap2 : {'protoco &nbs= p;   l': 'x86_32-abi', 'uuid': '640b4fd4-c6fa-= 8851-5e48-
26d29df33e0e', 'bootable': 1, 'de     v'= : 'hda:disk', 'uname': 'tap:remus:server2:9000|aio:/dev= /vgxen/hvmsnap', 'mode': 'w     ', 'backe= nd': '0'}
2473 [2010-01-= 22 08:59:34 5217] ERROR (XendDomainInfo:501) VM resume failed
<= div>2474 Traceback (most= recent call last):
2475   File &q= uot;usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line = 497, in re     sume
2476     self._createDevices()
2477   File &q= uot;usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line = 2316, in _     createDevices
2478     devid =3D self._createDe= vice(devclass, config)
2479   File &q= uot;usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line = 2282, in _     createDevice
2480     return self.getDeviceCont= roller(deviceClass).createDevice(devConfig)
2481   File &q= uot;usr/lib/python2.4/site-packages/xen/xend/server/BlktapController.py&quo= t;, line 2     01, in createDevice
2482     if self.vm.image= .memory_sharing:
2483 AttributeError= : 'NoneType' object has no attribute 'memory_sharing'
2484 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:2994) Xen= dDomainInfo.destroy: domid     =3D9
2485 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:2358) No device = model
2486 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:2360)= Releasing devices
2487 [2010-01-22 08:59:34 5217] DEBUG (XendDom= ainInfo:2366) Removing vfb/0
2488 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:1237) XendDomain= Info.destroyDevice:      deviceClass =3D vfb, device =3D vfb= /0
2489 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:2366) Re= moving console/0
2490 [2010-01-22 08:59:34 5217] DEBUG (XendDomainInfo:1237) XendDomain= Info.destroyDevice:      deviceClass =3D console, device =3D= console/0
249= 1 [2010-01-22 08:59:34 5217] ERROR (XendDomain:1181) Restore failed<= /div>
2492 Traceback (mos= t recent call last):
2493   File "usr/lib/python2.4/site-packages/xen/xe= nd/XendDomain.py", line 1159, in domai     n_restore_fd
2494     = dominfo =3D XendCheckpoint.restore(self, fd, paused=3Dpaused, relocating=3D= relocating)
2495   File "usr/lib/python2.4/site-packages/xen/xend/XendCh= eckpoint.py", line 227, in re     store
2496     = dominfo =3D xd.restore_(vmconfig)
2497   File "usr/lib/python2.4/site-pa= ckages/xen/xend/XendDomain.py", line 521, in restor     e_
2498     = dominfo =3D XendDomainInfo.restore(config)
2499   File "usr/lib/python2.= 4/site-packages/xen/xend/XendDomainInfo.py", line 238, in re   &n= bsp; store
2500     = vm.resume()
2501   File "usr/lib/python2.4/site-packages/xen/xend/XendDo= mainInfo.py", line 497, in re     sume
2502     = self._createDevices()
2503   File "usr/lib/python2.4/site-packages/xen/x= end/XendDomainInfo.py", line 2316, in _     createDevices
2504     = devid =3D self._createDevice(devclass, config)
2505   File "usr/lib/pyth= on2.4/site-packages/xen/xend/XendDomainInfo.py", line 2282, in _  = ;   createDevice
2506     = return self.getDeviceController(deviceClass).createDevice(devConfig)=
2507   F= ile "usr/lib/python2.4/site-packages/xen/xend/server/BlktapController.= py", line 2     01, in createDevice
2508     = if self.vm.image.memory_sharing:
2509 AttributeError: 'NoneType' object ha= s no attribute 'memory_sharing'
2510 [2010-01-22 09:02:34 5217] WARNING (XendConfig:873) Unconverted k= ey: Description
2511 [2010-01-22 09:02:34 5217] DEBUG (XendDomain= Info:100) XendDomainInfo.create(['vm', [     'name= 9;, 'Rhel5-hvm1'], ['memory', '512'], ['on_xend= _start', 
'ignore'], ['on_xend_sto     p', 'ignore= '], ['vcpus', 1], ['oos', 1], ['image', ['h= vm', ['kernel', '/usr/lib/xen/     boot/hvmloader= '], ['videoram', 4], 
['serial', 'pty'], ['monitor', 1], ['acpi&= #39;, 1], [     'apic', 1], ['boot', 'c']= , ['cpuid', []], ['cpuid_check', []], ['device_model= 9;, '/us     
r/lib/xen/bin/qemu-dm'], ['display', 'localhost:10.0&#= 39;], ['fda', ''], ['fdb', ''], [' &nbs= p;   guest_os_type', 'default'], ['hap', 1], ['= ;hpet', 0], ['isa', 0], 
['keymap', ''], ['l     ocaltime', 0= ], ['nographic', 0], ['opengl', 1], ['oos', 1], [&#= 39;pae', 1], ['pci', []],      ['pci_msitran= slate', 1], ['pci_power_mgmt', 
0], ['rtc_timeoffset', 0], ['sdl', 0],     &= nbsp;['soundhw', ''], ['stdvga', 0], ['timer_mo= de', 1], ['usb', 0], ['usbdevice', ''], [' =     vcpus', 1], ['vnc', 1], 
['vncdisplay', 2], ['vnclisten', '0.0.0.0'], [= 'vncunused', 1     ], ['viridian', 0], ['vpt_= align', 1], ['xauthority', '/root/.Xauthority'], ['= xen_pla     
tform_pci', 1], ['memory_sharing', 0], ['vncpasswd'= ;, 'XXXXXXXX'], ['tsc_mode', 0], [     'nomig= rate', 0]]], ['s3_integrity', 1], ['device', ['tap2= ', 
['uname', 'tap:remus:ser     ver1:9000|aio:/dev/= vgxen/hvmsnap'], ['dev', 'hda'], ['mode', '= w']]], ['device', ['vi     f', ['mac'= , '00:1c:3e:17:22:13'], 

['type', 'ioemu']]]])
2512 [2= 010-01-22 09:02:34 5217] DEBUG (XendDomainInfo:2450) XendDomainInfo.constru= ctDomai     n 2513 [2010-01-22 09:02:34 5217] DEBUG (balloon:220)= Balloon: 

1745776 KiB free; need 4096;      done.<= /div>
2514 [2010-01-22 09:02:34 5217] DEBUG (XendDomain:464) Adding Dom= ain: 102515 [2010-01-22 09:02:34 5217] DEBUG (XendDomainInfo:2759) 

XendDomainInfo.initDomain: 10      256
2516 [= 2010-01-22 09:02:34 5217] DEBUG (image:339) No VNC passwd configured for vf= b access
2517 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: = boot, val: c 
2518 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: fda, val: None=
2519 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: fdb, val= : None
2520 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: so= undhw, val: None
2521 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: localtime, val= : 0
2522 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: seria= l, val: ['pty']
2523 [2010-01-22 09:02:34 5217] DEBUG (im= age:891) args: std-vga, val: 0
2524 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: isa, val: 0
2525 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: acpi, val: = 1
2526 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: usb, va= l: 0
2527 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: usbdevice, val= : None
2528 [2010-01-22 09:02:34 5217] DEBUG (image:891) args: gf= x_passthru, val: None
2529 [2010-01-22 09:02:34 5217] INFO (image= :824) Need to create platform device.[domid:10     ]
2530 [2010-01-22 09:02:34 5217] DEBUG (XendDomainInfo:2786) _initDomai= n:shadow_memory=3D0x0     , memory_static_max=3D0x20000000, memor= y_static_min=3D0x0.
2531 [2010-01-22 09:02:34 5217] INFO (image:1= 82) buildDomain os=3Dhvm dom=3D10 vcpus=3D1
2532 [2010-01-22 09:02:34 5217] DEBUG (image:949) domid     =      =3D 10
2533 [2010-01-22 09:02:34 5217] DEBUG = (image:950) image          =3D /usr/lib/xen/boot/h= vml     oader
2534 [2010-01-22 09:02:34 5217] DEBUG (im= age:951) store_evtchn   =3D 2
2535 [2010-01-22 09:02:34 5217] DEBUG (image:952) memsize    = ;    =3D 512
2536 [2010-01-22 09:02:34 5217] DEBUG (ima= ge:953) target         =3D 512
2537 [2010-01-= 22 09:02:34 5217] DEBUG (image:954) vcpus          = ;=3D 1
2538 [2010-01-22 09:02:34 5217] DEBUG (image:955) vcpu_avail   &n= bsp; =3D 1
2539 [2010-01-22 09:02:34 5217] DEBUG (image:956) acpi=           =3D 1
2540 [2010-01-22 09:02:= 34 5217] DEBUG (image:957) apic           =3D 1
2541 [2010-01-22 09:02:34 5217] INFO (XendDomainInfo:2313) createDevic= e: vfb : {'vncunuse     d': 1, 'other_config': {&= #39;vncunused': 1, 'vnclisten': '0.0.0.0', 
<= div>
'vnc': '1', 'vncdisp     lay': 2}, &= #39;vnc': '1', 'uuid': 'ae373736-f85a-e7a3-60aa-30d= 6f3a68118', 'vnclisten': '     0.0.0.0', '= ;vncdisplay': 2} 
2542 [2010-01-22 09:02:34 5217] DEBUG (DevController:95) DevController= : writing {'state':      '1', 'backend-i= d': '0', 'backend': 

'= ;/local/domain/0/backend/vfb/10/0'} to /local/do     main/10/= device/vfb/0.
2543 [2010-01-22 09:02:34 5217] DEBUG (DevController:97) DevController= : writing {'vncunus     ed': '1', 'domain'= ;: 'Rhel5-hvm1', 'vnc': '1', 'uuid': <= /div>

'ae373736-f85a-e7a3-60aa-30d6f     3a68118', &= #39;frontend-id': '10', 'vnclisten': '0.0.0.0',= 'vncdisplay': '2', 'state': '     1&= #39;, 'online': '1', 'frontend': 

'/local/domain/10/device/vfb/0'} to /local/doma= in/0/b     ackend/vfb/10/0.
2544 [2010-01-22 09:02:34 5= 217] INFO (XendDomainInfo:2313) createDevice: tap2 : {'bootabl   &= nbsp; e': 1, 'uname': 

'tap:remus:server1:9000|aio:/dev/vgxen/hvmsnap'= , 'mode': 'w', 'dev':      'hda&= #39;, 'uuid': 'b5fd6bdd-ab5d-1f8b-7142-e45656cfaea0'} =
2545 [2010-01-22 09:02:34 5217] DEBUG (DevController:95) DevCont= roller: writing {'backend     -id': '0', 'vir= tual-device': '768', 'device-type': 'disk',&nbs= p;

'state': '1', 'backend':  =    '/local/domain/0/backend/vbd/10/768'} to /local/domai= n/10/device/vbd/768.
2546 [2010-01-22 09:02:34 5217] DEBUG (DevCo= ntroller:97) DevController: writing {'domain'     : '= Rhel5-hvm1', 'frontend': '/local/domain/10/device/vbd/768&#= 39;, 

'uuid': 'b5fd6bdd-ab5     d-1f8b-= 7142-e45656cfaea0', 'bootable': '1', 'dev': = 9;hda', 'state': '1', 'params': '/   &= nbsp; dev/xen/blktap-2/tapdev0', 'mode': 'w', 

'online': '1', 'frontend-id': &= #39;10', 'type':      'phy', 'tapdis= k-params': 'remus:server1:9000|aio:/dev/vgxen/hvmsnap'} to /loc= al/doma     

in/0/backend/vbd/10/768.
2547 [2010-01-22 09:= 02:34 5217] INFO (XendDomainInfo:2313) createDevice: vif : {'mac': = '0     0:1c:3e:17:22:13', 'type': 'ioemu'= , 'uuid': '3dbaa2b3-97d7-

cc9d-51e7-09bcf7c5fc4b'}
2548 [2010-01-22= 09:02:34 5217] DEBUG (DevController:95) DevController: writing {'state= ':      '1', 'backend-id': '0', = 'backend': 

'/local/domain/0/backend/vif/10/0'} to /local/d= o     main/10/device/vif/0.
2549 [2010-01-22 09:02:34 5= 217] DEBUG (DevController:97) DevController: writing {'domain' &nbs= p;   : 'Rhel5-hvm1', 'frontend': '/local/domain/10= /device/vif/0', 

'uuid': '3dbaa2b3-97d7-     cc9d-= 51e7-09bcf7c5fc4b', 'script': '/etc/xen/scripts/vif-bridge&= #39;, 'mac': '00:1c:3e:1     7:22:13', 'front= end-id': '10', 'state': 

'1', 'online': '1', 'handle= ': '0', 'type': '     ioemu'} to /loc= al/domain/0/backend/vif/10/0.
2550 [2010-01-22 09:02:34 5217] INF= O (image:420) spawning device models: /usr/lib/xen/bin     /qemu-= dm ['/usr/lib/xen/bin/qemu-dm', '-d', '10', '-d= omain-

name', 'Rhel5-hvm1', '-vi    = deoram', '4', '-vnc', '0.0.0.0:2', '-vncunused', '-monitor', 'vc'= ;, '-vcpus', '1', '-     boot', 'c= 9;, '-serial', 'pty', '-acpi', 

'-net', 'nic,vlan=3D1,macaddr=3D00:1c:3e:17= :22:13     ,model=3Drtl8139', '-net', 'tap,vlan= =3D1,ifname=3Dtap10.0,bridge=3Dxenbr0', '-M', 'xenfv']<= /div>
2551 [2010-01-22 09:02:34 5217] INFO (image:469) device model pid= : 7322
2552 [2010-01-22 09:02:34 5217] INFO (image:592) waiting for sentinel_= fifo
2553 [2010-01-22 09:02:34 5217] DEBUG (XendDomainInfo:3341) = Storing VM details: {'on_xend     _stop': 'ignore'= ;, 'shadow_memory': '5', 'uuid': 'fcc2e15d-ee63=

-dbf1-118a-9c3f1e2865e     6', 'on_re= boot': 'restart', 'start_time': '1264122154.95'= , 'on_poweroff': 'destroy',      'bootlo= ader_args': '', 'on_xend_start': 

'ignore', 'on_crash': 'restart'= , 'xend/rest     art_count': '0', 'vcpus'= : '1', 'vcpu_avail': '1', 'bootloader': = 9;', 'image': '(hvm (     kernel ) (superpages&nb= sp;

0) (tsc_mode 0) (videoram 4) (hpet 0) (stdvga 0) (vncli= sten 0.0     .0.0) (loader /usr/lib/xen/boot/hvmloader) (serial p= ty) (vncunused 1) (xen_platform_     

pci 1) (opengl 1) (boot c) (rtc_timeoffset 0) (pci ()) (pae 1) (vpt_alig= n 1) (hap 1)      (viridian 0) (acpi 1) (localtime 0) (timer= _mode 1) (vnc 1) 

(nographic 0) (guest_os_     type default) (v= ncdisplay 2) (pci_msitranslate 1) (oos 1) (apic 1) (sdl 0) (nomigrat  =   e 0) (monitor 1) (device_model 

/usr/= lib/xen/bin/qemu-dm) (pci_power_mgmt 0) (usb 0)      (xautho= rity /root/.Xauthority) (isa 0) (display localhost:10.0) (notes (SUSPEND_CA= NC     EL 1)))', 

'name': 'Rhel5-hvm1'}
2554 [2= 010-01-22 09:02:34 5217] DEBUG (XendDomainInfo:1750) Storing domain details= : {'con     sole/port': '3', 'description'= ;: '', 'console/limit': '1048576', 

'store/port': '2', '     = vm': '/vm/fcc2e15d-ee63-dbf1-118a-9c3f1e2865e6', 'domid'= ;: '10', 'image/suspend-cance     l': '1'= , 'cpu/0/availability': 'online', 

'memory/target': '524288', 'control= /platfor     m-feature-multiprocessor-suspend': '1', = 'store/ring-ref': '1044476', 'console/type':  =    'ioemu', 'name': 

'Rhel5-hvm1'}
2555 [2010-01-22 09:02:= 35 5217] DEBUG (DevController:95) DevController: writing {'state': =      '1', 'backend-id': '0', 'ba= ckend': 

'/local/domain/0/backend/console/10/0'} to /loc= a     l/domain/10/device/console/0.
2556 [2010-01-22 09= :02:35 5217] DEBUG (DevController:97) DevController: writing {'domain&#= 39;     : 'Rhel5-hvm1', 'frontend': 

'/local/domain/10/device/console/0', 'uuid&= #39;: '237d70b3-1     10a-09e0-0aa5-96b986d1714f', 'f= rontend-id': '10', 'state': '1', 'location&= #39;: '3', 'on     line': 

'1', 'protocol': 'vt100'} to /l= ocal/domain/0/backend/console/10/0.
2557 [2010-01-22 09:02:35 521= 7] DEBUG (DevController:139) Waiting for devices vif2.
2558 [2010= -01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for devices vif.
2559 [2010-01-22 09:02:35 5217] DEBUG (DevController:144) Waiting for = 0.
2560 [2010-01-22 09:02:35 5217] DEBUG (XendDomainInfo:1837) Xe= ndDomainInfo.handleShutdown     Watch
2561 [2010-01-22 = 09:02:35 5217] DEBUG (DevController:628) hotplugStatusCallback /local/do &n= bsp;   main/0/backend/vif/10/0/hotplug-status.
2562 [2010-01-22 09:02:35 5217] DEBUG (DevController:628) hotplugStatu= sCallback /local/do     main/0/backend/vif/10/0/hotplug-status.
2563 [2010-01-22 09:02:35 5217] DEBUG (DevController:642) hotplugS= tatusCallback 1.
2564 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for = devices vscsi.
2565 [2010-01-22 09:02:35 5217] DEBUG (DevControll= er:139) Waiting for devices vbd.
2566 [2010-01-22 09:02:35 5217] = DEBUG (DevController:139) Waiting for devices ioports.
2567 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for = devices irq.
2568 [2010-01-22 09:02:35 5217] DEBUG (DevController= :139) Waiting for devices vkbd.
2569 [2010-01-22 09:02:35 5217] D= EBUG (DevController:139) Waiting for devices vfb.
2570 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for = devices console.
2571 [2010-01-22 09:02:35 5217] DEBUG (DevContro= ller:144) Waiting for 0.
2572 [2010-01-22 09:02:35 5217] DEBUG (D= evController:139) Waiting for devices pci.
2573 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for = devices tap2.
2574 [2010-01-22 09:02:35 5217] DEBUG (DevControlle= r:144) Waiting for 768.
2575 [2010-01-22 09:02:35 5217] DEBUG (De= vController:628) hotplugStatusCallback /local/do     main/0/backe= nd/vbd/10/768/hotplug-status.
2576 [2010-01-22 09:02:35 5217] DEBUG (DevController:642) hotplugStatu= sCallback 1.
2577 [2010-01-22 09:02:35 5217] DEBUG (DevController= :139) Waiting for devices tap.
2578 [2010-01-22 09:02:35 5217] DE= BUG (DevController:139) Waiting for devices vusb.
2579 [2010-01-22 09:02:35 5217] DEBUG (DevController:139) Waiting for = devices vtpm.
2580 [2010-01-22 09:02:35 5217] INFO (XendDomain:12= 06) Domain Rhel5-hvm1 (10) unpaused.


2010/1/21 Keir Fraser <keir.fraser@eu.citrix.com>
On 19/01/2010 07:57, "=D5=C5=C3=FA=BC=CE" <zhangninja@gmail.com> wr= ote:

> Saving memory pages: iter 1   0%ERROR Internal error: Error when = writing to
> state file
> (4a) (errno 104)
> Save exit rc=3D1
> qemu logdirty mode: disable
> then the program stops.
>
> The error is located at line1361 xc_domain_save.c. The errno 104 stand= ard for
> "connection reset by peers".
> I'm not sure whether there there are some mistake about the networ= k socket.
>
> I've been stunked by this for two weeks. Do I miss something or co= uld anybody
> tell what I should do next.

Are here any errors in /var/log/xen/xend.log on either host?

 -- Keir





--
--
Best Rega= rds

Minjia Zhang

Huazhong University of Science and Technolog= y

Room 328,Dong 8 Building 8, No.1037 Luoyu Road, Wuhan 430074, P.R.= C.

Tel: +86-159-2625-3437

Email:zhangninja@gmail.com
--005045016bed9a66d4047de1a460-- --===============0048311602== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0048311602==--