From: =?UTF-8?B?5byg6ZOt5ZiJ?= Subject: Re: [PATCH 2 of 2] Remus: ensure kernel modules are built before attempting to install them Date: Tue, 2 Feb 2010 10:26:09 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1872720404==" 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: Brendan Cully , xen-devel@lists.xensource.com, Keir Fraser , Gilberto Nunes List-Id: xen-devel@lists.xenproject.org --===============1872720404== Content-Type: multipart/alternative; boundary=0016e68e8b51242ecd047e94d39b --0016e68e8b51242ecd047e94d39b Content-Type: text/plain; charset=ISO-8859-1 Hi: It's so greate to know that you have added this. I can "xm create" pv guest successfully using: disk=[ 'tap:remus:server2:9000|aio:/home/ninja/img/test/paraV.img,hda1,w' ] However, when I updated my xen-unstable version from 20570: aa01a13d750b to 20844.I encountered a problem seems very strange: [root@server1 test]# xm create vm1.cfg Using config file "./vm1.cfg". Error: Device 769 (tap) could not be connected. server2:9000|aio:/home/ninja/img/test/paraV.img does not exist What I can ensure is that this is not If I remove "remus:server2:9000| ", I can create the pv normally using "disk=[ 'tap:aio:/home/ninja/img/test/paraV.img,hda1,w' ]". So it seems that I make something wrong with the "remus:server2:9000| ". Yet I did successfully create a pv using the same configuration in a previous version of xen-unstable(I'm not quite sure if there is a bug been imported into the later version since 20570). Do I miss something? Thanks for pointed out. This is my configuration file: 1 kernel="/boot/vmlinuz-2.6.18.8-xen" 2 ramdisk="/boot/initrd-2.6.18.8-xen.img" 3 memory=256 4 name="ParaOS" 5 vcpus=1 6 vif=[ '' ] 7 #vif = [ 'mac=00:16:3e:00:00:11, bridge=xenbr0' ] 8 ip="192.168.226.217" 9 netmask="255.255.255.0" 10 gateway="192.168.226.1" 11 #disk=[ 'tap:aio:/home/ninja/img/test/paraV.img,hda1,w' ] 12 disk=[ 'tap:remus:server2:9000|aio:/home/ninja/img/test/paraV.img,hda1,w' ] 13 root="/dev/hda1 ro" "server2" is the name of backup server, "9000" is the intended port and "/home/ninja/img/test/paraV.img" is the location of my image. The error was oringiated from the function of "waitForDevice" in xen/xend/server/DevController.py the status of waiting is "Error" and the vm imediately destroy itself which seems caused by it hasn't waited the "tap 769"(device ID which listed in xend.log as below). the error info is at line 165 of DevController.py 157 elif status == Error: 158 self.destroyDevice(devid, False) 159 if err is None: 160 raise VmError("Device %s (%s) could not be connected. " 161 "Backend device not found." % 162 (devid, self.deviceClass)) 163 else: 164 raise VmError("Device %s (%s) could not be connected. " 165 "%s" % (devid, self.deviceClass, err)) the "err" in VmError above is produced by function "waitForBackend" in DevController.py too. 559 err = xstransact.Read(backpath, HOTPLUG_ERROR_NODE) which I print out and get the value of backpath: backpath:/local/domain/0/backend/tap/18/769. I don't know why xstransact.Read failed here. Is it a name resolvation problem of remus, or guestOS version specific problem(my pv is rhel5.3), or just a configuration problem or anything else? I'm stunted.hope someone can give me any advice to step further. Here is the xend.log: 6410 [2010-02-02 09:48:12 5172] WARNING (XendConfig:874) Unconverted key: Description 6411 [2010-02-02 09:48:12 5172] DEBUG (XendDomainInfo:101) XendDomainInfo.create(['vm', ['name', 'ParaOS'], ['memory', 256], ['on_xend_star t', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', 1], ['oos', 1], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.18.8-xen'], ['r amdisk', '/boot/initrd-2.6.18.8-xen.img'], ['ip', '192.168.226.217:127.0.255.255:192.168.226.1:255.255.255.0::eth0:off'], ['root', '/d ev/hda1 ro'], ['videoram', 4], ['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device', ['tap2', ['uname', 'tap:remus:serv er2:9000|aio:/home/ninja/img/test/paraV.img'], ['dev', 'hda1'], ['mode', 'w']]], ['device', ['vif']]]) 6412 [2010-02-02 09:48:12 5172] DEBUG (XendDomainInfo:2486) XendDomainInfo.constructDomain 6413 [2010-02-02 09:48:12 5172] DEBUG (balloon:220) Balloon: 2045408 KiB free; need 4096; done. 6414 [2010-02-02 09:48:12 5172] DEBUG (XendDomain:464) Adding Domain: 3 6415 [2010-02-02 09:48:12 5172] DEBUG (XendDomainInfo:2795) XendDomainInfo.initDomain: 3 256 6416 [2010-02-02 09:48:12 5172] DEBUG (XendDomainInfo:2822) _initDomain:shadow_memory=0x0, memory_static_max=0x10000000, memory_static_min= 0x0. 6417 [2010-02-02 09:48:12 5172] INFO (image:182) buildDomain os=linux dom=3 vcpus=1 6418 [2010-02-02 09:48:12 5172] DEBUG (image:723) domid = 3 6419 [2010-02-02 09:48:12 5172] DEBUG (image:724) memsize = 256 6420 [2010-02-02 09:48:12 5172] DEBUG (image:725) image = /boot/vmlinuz-2.6.18.8-xen 6421 [2010-02-02 09:48:12 5172] DEBUG (image:726) store_evtchn = 1 6422 [2010-02-02 09:48:12 5172] DEBUG (image:727) console_evtchn = 2 6423 [2010-02-02 09:48:12 5172] DEBUG (image:728) cmdline = root=/dev/hda1 ro ip=192.168.226.217:127.0.255.255:192.168.226.1:255.255 .255.0::eth0:off 6424 [2010-02-02 09:48:12 5172] DEBUG (image:729) ramdisk = /boot/initrd-2.6.18.8-xen.img 6425 [2010-02-02 09:48:12 5172] DEBUG (image:730) vcpus = 1 6426 [2010-02-02 09:48:12 5172] DEBUG (image:731) features = 6427 [2010-02-02 09:48:12 5172] DEBUG (image:732) flags = 06428 [2010-02-02 09:48:12 5172] DEBUG (image:733) superpages = 06429 [2010-02-02 09:48:12 5172] INFO (XendDomainInfo:2345) createDevice: tap2 : {'bootable': 1, 'uname': 'tap:remus:server2:9000|aio:/home/ ninja/img/test/paraV.img', 'mode': 'w', 'dev': 'hda1', 'uuid': 'f1b2a397-c138-b847-727f-89e9903e61f9'} 6430 [2010-02-02 09:48:12 5172] WARNING (BlktapController:195) WARNING: using deprecated blktap module 6431 [2010-02-02 09:48:12 5172] DEBUG (DevController:95) DevController: writing {'virtual- device': '769', 'device-type': 'disk', 'protocol' : 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/tap/3/769'} to /local/domain/3/device/vbd/769. 6432 [2010-02-02 09:48:12 5172] DEBUG (DevController:97) DevController: writing {'domain': 'ParaOS', 'frontend': '/local/domain/3/device/vb d/769', 'uuid': 'f1b2a397-c138-b847-727f- 89e9903e61f9', 'bootable': '1', 'dev': 'hda1', 'state': '1', 'params': 'remus:server2:9000|ai o:/home/ninja/img/test/paraV.img', 'mode': 'w', 'online': '1', 'frontend-id': '3', 'type': 'tap'} to /local/domain/0/backend/tap/3/769 . 6433 [2010-02-02 09:48:12 5172] INFO (XendDomainInfo:2345) createDevice: vif : {'mac': '00:16:3e:49:50:68', 'uuid': '2f8cf97b-2306-0e54-1bb 2-bc7b5668b4da'} 6434 [2010-02-02 09:48:12 5172] DEBUG (DevController:95) DevController: writing {'mac': '00:16:3e:49:50:68', 'handle': '0', 'protocol': 'x8 6_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/3/0'} to /local/domain/3/device/vif/0. 6435 [2010-02-02 09:48:12 5172] DEBUG (DevController:97) DevController: writing {'domain': 'ParaOS', 'frontend': '/local/domain/3/device/vi f/0', 'uuid': '2f8cf97b-2306-0e54-1bb2- bc7b5668b4da', 'script': '/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:49:50:68', 'frontend-i d': '3', 'state': '1', 'online': '1', 'handle': '0'} to /local/domain/0/backend/vif/3/0. 6436 [2010-02-02 09:48:12 5172] DEBUG (XendDomainInfo:3377) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': '4 c167777-7597-cc57-f34d-476b9b6ccb08', 'on_reboot': 'restart', 'start_time': '1265075292.91', 'on_poweroff': 'destroy', 'bootloader_arg s': '', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'bootloader': '' , 'image': "(linux (kernel /boot/vmlinuz-2.6.18.8-xen) (ramdisk /boot/initrd-2.6.18.8-xen.img) (args 'root=/dev/hda1 ro ip=192.168.226 .217:127.0.255.255:192.168.226.1:255.255.255.0::eth0:off ') (superpages 0) (tsc_mode 0) (videoram 4) (pci ()) (nomigrate 0) (notes (HV _START_LOW 4118806528) (FEATURES 'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supe rvis or_mode_kernel') (VIRT_BASE 3221225472) (GUEST_VERSION 2.6) (PADDR_OFFSET 3221225472) (GUEST_OS linux) (HYPERCALL_PAGE 3222278144) (LO ADER generic) (SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 3222274048) (XEN_VERSION xen-3.0)))", 'name': 'ParaOS'} 6437 [2010-02-02 09:48:12 5172] DEBUG (XendDomainInfo:1782) Storing domain details: {'console/ring-ref': '536762', 'image/entry': '32222740 48', 'console/port': '2', 'store/ring-ref': '536763', 'image/loader': 'generic', 'vm': '/vm/4c167777-7597-cc57-f34d- 476b9b6ccb08', 'co ntrol/platform-feature-multiprocessor-suspend': '1', 'image/hv-start-low': '4118806528', 'image/guest-os': 'linux', 'image/features/wr itable-descriptor-tables': '1', 'image/virt-base': '3221225472', 'memory/target': '262144', 'image/guest-version': '2.6', 'image/featu res/supervisor-mode-kernel': '1', 'image/pae-mode': 'yes', 'description': '', 'console/limit': '1048576', 'image/paddr-offset': '32212 25472', 'image/hypercall-page': '3222278144', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'image/features/pae- pgdir-a bove-4gb': '1', 'image/features/writable-page-tables': '1', 'console/type': 'xenconsoled', 'image/features/auto-translated-physmap': ' 1', 'name': 'ParaOS', 'domid': '3', 'image/xen-version': 'xen-3.0', 'store/port': '1'} 6438 [2010-02-02 09:48:12 5172] DEBUG (DevController:95) DevController: writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/3/0'} to /local/domain/3/device/console/0. 6439 [2010-02-02 09:48:12 5172] DEBUG (DevController:97) DevController: writing {'domain': 'ParaOS', 'frontend': '/local/domain/3/device/co nsole/0', 'uuid': '1823a807-d3eb-00d8-29f7- 39494f277f32', 'frontend-id': '3', 'state': '1', 'location': '2', 'online': '1', 'protocol' : 'vt100'} to /local/domain/0/backend/console/3/0. 6440 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:1869) XendDomainInfo.handleShutdownWatch 6441 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for devices vif2. 6442 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for devices vif. 6443 [2010-02-02 09:48:13 5172] DEBUG (DevController:144) Waiting for 0. 6444 [2010-02-02 09:48:13 5172] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vif/3/0/hotplug-status. 6445 [2010-02-02 09:48:13 5172] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vif/3/0/hotplug-status. 6446 [2010-02-02 09:48:13 5172] DEBUG (DevController:642) hotplugStatusCallback 1. 6447 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for devices vscsi. 6448 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for devices vbd. 6449 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for devices ioports. 6450 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for devices irq. 6451 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for devices vkbd. 6452 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for devices vfb. 6453 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for devices console. 6454 [2010-02-02 09:48:13 5172] DEBUG (DevController:144) Waiting for 0. 6455 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for devices pci. 6456 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for devices tap2. 6457 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for devices tap. 6458 [2010-02-02 09:48:13 5172] DEBUG (DevController:144) Waiting for 769. 6458 [2010-02-02 09:48:13 5172] DEBUG (DevController:144) Waiting for 769. 6459 [2010-02-02 09:48:13 5172] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/tap/3/769/hotplug-status. 6460 [2010-02-02 09:48:13 5172] DEBUG (DevController:642) hotplugStatusCallback 2. 6461 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:3030) XendDomainInfo.destroy: domid=18 6462 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:2389) Destroying device model 6463 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:2396) Releasing devices 6464 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:2402) Removing vif/0 6465 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:1269) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0 6466 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:2402) Removing console/0 6467 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:1269) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0 6468 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:2402) Removing tap/769 6469 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:1269) XendDomainInfo.destroyDevice: deviceClass = tap, device = tap/769 On Tue, Feb 2, 2010 at 8:13 AM, Brendan Cully wrote: > # HG changeset patch > # User Brendan Cully > # Date 1265068569 28800 > # Node ID a43ce819faa185c1e1eef2b8244b64788ddff05a > # Parent d30a67608592a1b68c286bb352b9f7fbe37f0e19 > Remus: ensure kernel modules are built before attempting to install them > > make tools seems to skip straight to the install target. > > Signed-off-by: Brendan Cully > > diff --git a/tools/remus/kmod/Makefile b/tools/remus/kmod/Makefile > --- a/tools/remus/kmod/Makefile > +++ b/tools/remus/kmod/Makefile > @@ -17,7 +17,7 @@ > if test -d $(KERNELDIR); then $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` > modules; fi > > .PHONY: install > -install: > +install: all > if test -d $(KERNELDIR); then $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` > INSTALL_MOD_PATH=$(DESTDIR) modules_install; fi > > clean:: > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > -- -- 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 --0016e68e8b51242ecd047e94d39b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi:
It's so greate to know that you have added this.=A0<= /div>
I can "xm create" pv guest successfully using:=A0
=
disk=3D[ 'tap:remus:server2:9000|aio:/home/ninja/img/test/paraV.im= g,hda1,w' ]

However, when I updated my xen-unstable version from 20= 570: aa01a13d750b to 20844.I encountered a=A0problem seems very strange:

[root@server1 test]# xm create vm1.cfg=A0
Using config file "./vm1.cfg".
Error: Device 769 (tap) = could not be connected. = server2:9000|aio:/home/ninja/img/test/paraV.img=A0does not exist

What I can ensure is that this is not
If I re= move "remus:server2:9000| ", I can create the pv normally using= =A0
"disk=3D[ 'tap:aio:/home/ninja/img/test/paraV.img,hd= a1,w' ]". So it seems that I make something=A0wrong with the "= ;remus:server2:9000| ". Yet I did successfully create a pv using the s= ame=A0configuration in a previous version of xen-unstable(I'm not quite= sure if there is a bug been=A0imported into the later version since 20570)= .

Do I miss something? Thanks for pointed out.
=
This is my configuration file:
=A0=A01 kernel=3D&q= uot;/boot/vmlinuz-2.6.18.8-xen"
=A0=A02 ramdisk=3D"/boo= t/initrd-2.6.18.8-xen.img"
=A0=A03 memory=3D256
=A0=A04 name=3D"ParaOS"
=
=A0=A05 vcpus=3D1
=A0=A06 vif=3D[ '' ]
=A0= =A07 #vif =3D [ 'mac=3D00:16:3e:00:00:11, bridge=3Dxenbr0' ]
<= div>=A0=A08 ip=3D"192.168.226.217"
=A0=A09 netmask=3D"255.255.255.0"
=A010 gateway=3D= "192.168.226.1"
=A011 #disk=3D[ 'tap:aio:/home/ninj= a/img/test/paraV.img,hda1,w' ]
=A012 disk=3D[ 'tap:remus:= server2:9000|aio:/home/ninja/img/test/paraV.img,hda1,w' ]
=A013 root=3D"/dev/hda1 ro"

"s= erver2" is the name of backup server, "9000" is the intended= port and=A0"/home/ninja/img/test/paraV.img" is the location of m= y image.

The error was oringiated from the function of "wai= tForDevice" in xen/xend/server/DevController.py
the status o= f waiting is "Error" and the vm imediately destroy itself which s= eems caused by it hasn't waited=A0the "tap 769"(device ID whi= ch listed in xend.log as below).

the error info is at line 165 of DevController.py
=
157 =A0 =A0 =A0 =A0 elif status =3D=3D Error:
158 =A0 =A0 = =A0 =A0 =A0 =A0 self.destroyDevice(devid, False)
159 =A0 =A0 =A0 = =A0 =A0 =A0 if err is None:
160 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 raise VmError("Device %s (%s) coul= d not be connected. "
161 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 "Backend device not found." %
162 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (devid, = self.deviceClass))
163 =A0 =A0 =A0 =A0 =A0 =A0 else:
164 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 raise VmErro= r("Device %s (%s) could not be connected. "
165 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "%s" % (devid, self.deviceCla= ss, err))

the "err" =A0in VmError above is produced by = function "waitForBackend" in DevController.py too.
559 = =A0 =A0 =A0 =A0 =A0 =A0 err =3D xstransact.Read(backpath, HOTPLUG_ERROR_NOD= E)
which I print out and get the value of backpath:
backpath:/local/= domain/0/backend/tap/18/769.
I don't know why xstransact.Read= failed here.

Is it a name resolvation problem of = remus, or guestOS version specific problem(my pv is rhel5.3),=A0

or just a configuration problem or anything else? I'= ;m stunted.hope someone can give me any advice to=A0step further.=A0
<= div>
Here is the xend.log:
6410 [2010-02-02 09:48:1= 2 5172] WARNING (XendConfig:874) Unconverted key: Description
6411 [2010-02-02 09:48:12 5172] DEBUG (XendDomainInfo:101) XendDomainI= nfo.create(['vm', ['name',=A0

'= ;ParaOS'], ['memory', 256], ['on_xend_star =A0 =A0 t', = 'ignore'], ['on_xend_stop', 'ignore'],=A0

['vcpus', 1], ['oos', 1], ['image&#= 39;, ['linux', ['kernel', '/boot/vmlinuz-2.6.18.8-xen&#= 39;], ['r =A0 =A0=A0

amdisk', '/boot/i= nitrd-2.6.18.8-xen.img'], ['ip',=A0

'192.168.226.217:127.0.255.255:192.168.226.1:255.25= 5.255.0::eth0:off'], ['root', '/d =A0 =A0 ev/hda1=A0
<= div>
ro'], ['videoram', 4], ['tsc_mode', = 0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device&#= 39;,=A0

['tap2', ['uname', 'tap:remus:serv = =A0 =A0 er2:9000|aio:/home/ninja/img/test/paraV.img'], ['dev',= =A0

'hda1'], ['mode', 'w']= ]], ['device', ['vif']]])
6412 [2010-02-02 09:48:12 5172] DEBUG (XendDomainInfo:2486) XendDomain= Info.constructDomain
6413 [2010-02-02 09:48:12 5172] DEBUG (ballo= on:220) Balloon: 2045408 KiB free; need 4096; done.
6414 [2010-02= -02 09:48:12 5172] DEBUG (XendDomain:464) Adding Domain: 3
6415 [2010-02-02 09:48:12 5172] DEBUG (XendDomainInfo:2795) XendDomain= Info.initDomain: 3 256
6416 [2010-02-02 09:48:12 5172] DEBUG (Xen= dDomainInfo:2822) _initDomain:shadow_memory=3D0x0,=A0

<= div> memory_static_max=3D0x10000000, memory_static_min=3D =A0 =A0 0x0.6417 [2010-02-02 09:48:12 5172] INFO (image:182) buildDomain os=3Dlinux do= m=3D3 vcpus=3D1
6418 [2010-02-02 09:48:12 5172] DEBUG (image:723)= domid =A0 =A0 =A0 =A0 =A0=3D 3
6419 [2010-02-02 09:48:12 5172] DEBUG (image:724) memsize =A0 =A0 =A0 = =A0=3D 256
6420 [2010-02-02 09:48:12 5172] DEBUG (image:725) imag= e =A0 =A0 =A0 =A0 =A0=3D /boot/vmlinuz-2.6.18.8-xen
6421 [2010-02= -02 09:48:12 5172] DEBUG (image:726) store_evtchn =A0 =3D 1
6422 [2010-02-02 09:48:12 5172] DEBUG (image:727) console_evtchn =3D 2=
6423 [2010-02-02 09:48:12 5172] DEBUG (image:728) cmdline =A0 = =A0 =A0 =A0=3D root=3D/dev/hda1 ro=A0

ip=3D192.168= .226.217:127.0.255.255:192.168.226.1:255.255 =A0 =A0 .255.0::eth0:off
6424 [2010-02-02 09:48:12 5172] DEBUG (image:729) ramdisk =A0 =A0 =A0 = =A0=3D /boot/initrd-2.6.18.8-xen.img
6425 [2010-02-02 09:48:12 51= 72] DEBUG (image:730) vcpus =A0 =A0 =A0 =A0 =A0=3D 1=A0
6426 [201= 0-02-02 09:48:12 5172] DEBUG (image:731) features =A0 =A0 =A0 =3D 6427 [201= 0-02-02 09:48:12=A0

5172] DEBUG (image:732) flags =A0 =A0 =A0 =A0 =A0=3D 06= 428 [2010-02-02 09:48:12 5172] DEBUG (image:733)=A0

superpages =A0 =A0 =3D 06429 [2010-02-02 09:48:12 5172] INFO (XendDomainI= nfo:2345) createDevice: tap2 :=A0

{'bootable': 1, 'uname': 'tap:remus= :server2:9000|aio:/home/ =A0 =A0 ninja/img/test/paraV.img',=A0

'mode': 'w', 'dev': 'hda1'= , 'uuid': 'f1b2a397-c138-b847-727f-89e9903e61f9'}
6430 [2010-02-02 09:48:12 5172] WARNING (BlktapController:195) WARNING= : using deprecated blktap=A0

module
6431= [2010-02-02 09:48:12 5172] DEBUG (DevController:95) DevController: writing= {'virtual-

device': '769', 'device-type': '= ;disk', 'protocol' =A0 =A0 : 'x86_32-abi', 'backend= -id': '0', 'state':=A0

'1&= #39;, 'backend': '/local/domain/0/backend/tap/3/769'} to /l= ocal/domain/3/device/vbd/769.
6432 [2010-02-02 09:48:12 5172] DEBUG (DevController:97) DevController= : writing {'domain':=A0

'ParaOS', = 'frontend': '/local/domain/3/device/vb =A0 =A0 d/769', '= ;uuid': 'f1b2a397-c138-b847-727f-

89e9903e61f9', 'bootable': '1', = 9;dev': 'hda1', 'state': '1', 'params':= 'remus:server2:9000|ai =A0 =A0=A0

o:/home/nin= ja/img/test/paraV.img', 'mode': 'w', 'online': = '1', 'frontend-id': '3', 'type': 'tap&#= 39;}=A0

to /local/domain/0/backend/tap/3/769 =A0 =A0 .
6433 [2010-02-02 09:48:12 5172] INFO (XendDomainInfo:2345) createDevice: = vif : {'mac':=A0

'00:16:3e:49:50:68= 9;, 'uuid': '2f8cf97b-2306-0e54-1bb =A0 =A0 2-bc7b5668b4da'= }
6434 [2010-02-02 09:48:12 5172] DEBUG (DevController:95) DevController= : writing {'mac':=A0

'00:16:3e:49:50:6= 8', 'handle': '0', 'protocol': 'x8 =A0 =A0 = 6_32-abi', 'backend-id': '0', 'state':=A0

'1', 'backend': '/local/domain/0/ba= ckend/vif/3/0'} to /local/domain/3/device/vif/0.
6435 [2010-0= 2-02 09:48:12 5172] DEBUG (DevController:97) DevController: writing {'d= omain':=A0

'ParaOS', 'frontend': '/local/domai= n/3/device/vi =A0 =A0 f/0', 'uuid': '2f8cf97b-2306-0e54-1bb= 2-

bc7b5668b4da', 'script': '/etc/= xen/scripts/vif-bridge', 'mac': '00:16:3e:49:50:68', &#= 39;frontend-i =A0=A0

=A0=A0d': '3', 'state': '1'= , 'online': '1', 'handle': '0'} to /local/d= omain/0/backend/vif/3/0.
6436 [2010-02-02 09:48:12 5172] DEBUG (X= endDomainInfo:3377) Storing VM details: {'on_xend_stop':=A0

'ignore', 'shadow_memory': '0',= 'uuid': '4 =A0 =A0 c167777-7597-cc57-f34d-476b9b6ccb08', &= #39;on_reboot':=A0

'restart', 'sta= rt_time': '1265075292.91', 'on_poweroff': 'destroy&= #39;, 'bootloader_arg =A0 =A0 s': '',=A0

'on_xend_start': 'ignore', 'on_cras= h': 'restart', 'xend/restart_count': '0', '= vcpus': '1',=A0

'vcpu_avail': = '1', 'bootloader': '' =A0 =A0 , 'image': &q= uot;(linux (kernel /boot/vmlinuz-2.6.18.8-xen)=A0

(ramdisk /boot/initrd-2.6.18.8-xen.img) (args 'root= =3D/dev/hda1 ro ip=3D192.168.226 =A0 =A0=A0

.217:1= 27.0.255.255:192.168.226.1:255.255.255.0::eth0:off ') (superpages 0) (t= sc_mode 0) (videoram=A0

4) (pci ()) (nomigrate 0) (notes (HV =A0 =A0 _START_LOW= 4118806528) (FEATURES=A0

'writable_page_table= s|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|su= pe

rvis =A0 =A0 or_mode_kernel') (VIRT_BASE 3221225472= ) (GUEST_VERSION 2.6) (PADDR_OFFSET 3221225472)=A0

(GUEST_OS linux) (HYPERCALL_PAGE 3222278144) (LO =A0 =A0 ADER generic) (SU= SPEND_CANCEL 1) (PAE_MODE=A0

yes) (ENTRY 3222274048) (XEN_VERSION xen-3.0)))", = 'name': 'ParaOS'}
6437 [2010-02-02 09:48:12 5172]= DEBUG (XendDomainInfo:1782) Storing domain details:=A0

{'console/ring-ref': '536762', 'image/entry': = '32222740 =A0 =A0 48', 'console/port': '2',=A0

'store/ring-ref': '536763', 'image= /loader': 'generic', 'vm': '/vm/4c167777-7597-cc57-= f34d-

476b9b6ccb08', 'co =A0 =A0 ntrol/platform-featu= re-multiprocessor-suspend': '1', 'image/hv-start-low':= =A0

'4118806528', 'image/guest-os'= : 'linux', 'image/features/wr =A0 =A0 itable-descriptor-tables&= #39;: '1',=A0

'image/virt-base': '3221225472', 'm= emory/target': '262144', 'image/guest-version': '2.= 6',=A0

'image/featu =A0 =A0 res/supervisor= -mode-kernel': '1', 'image/pae-mode': 'yes', &#= 39;description': '',=A0

'console/limit': '1048576', 'image/= paddr-offset': '32212 =A0 =A0 25472', 'image/hypercall-page= ':=A0

'3222278144', 'image/suspend= -cancel': '1', 'cpu/0/availability': 'online', = 'image/features/pae-

pgdir-a =A0 =A0 bove-4gb': '1', 'image/= features/writable-page-tables': '1', 'console/type':=A0=

'xenconsoled', 'image/features/auto-t= ranslated-physmap': ' =A0 =A0 1', 'name': 'ParaOS&#= 39;, 'domid':=A0

'3', 'image/xen-version': 'xen-3.0&= #39;, 'store/port': '1'}
6438 [2010-02-02 09:48:1= 2 5172] DEBUG (DevController:95) DevController: writing {'protocol'= :=A0

'x86_32-abi', 'state': '1', = 9;backend-id': '0', =A0 =A0 =A0'backend':=A0
=
'/local/domain/0/backend/console/3/0'} to /local/dom= ain/3/device/console/0.
6439 [2010-02-02 09:48:12 5172] DEBUG (DevController:97) DevController= : writing {'domain':=A0

'ParaOS', = 'frontend': '/local/domain/3/device/co =A0 =A0 nsole/0', &#= 39;uuid': '1823a807-d3eb-00d8-29f7-

39494f277f32', 'frontend-id': '3', = 'state': '1', 'location': '2', 'online&= #39;: '1', 'protocol' =A0 =A0 :=A0

'vt100'} to /local/domain/0/backend/console/3/0.
6440 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:1869) XendDomain= Info.handleShutdownWatch
6441 [2010-02-02 09:48:13 5172] DEBUG (D= evController:139) Waiting for devices vif2.
6442 [2010-02-02 09:4= 8:13 5172] DEBUG (DevController:139) Waiting for devices vif.
6443 [2010-02-02 09:48:13 5172] DEBUG (DevController:144) Waiting for = 0.
6444 [2010-02-02 09:48:13 5172] DEBUG (DevController:628) hotp= lugStatusCallback=A0

/local/domain/0/backend/vif/3= /0/hotplug-status.
6445 [2010-02-02 09:48:13 5172] DEBUG (DevController:628) hotplugStatu= sCallback=A0

/local/domain/0/backend/vif/3/0/hotpl= ug-status.
6446 [2010-02-02 09:48:13 5172] DEBUG (DevController:6= 42) hotplugStatusCallback 1.
6447 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for = devices vscsi.
6448 [2010-02-02 09:48:13 5172] DEBUG (DevControll= er:139) Waiting for devices vbd.
6449 [2010-02-02 09:48:13 5172] = DEBUG (DevController:139) Waiting for devices ioports.
6450 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for = devices irq.
6451 [2010-02-02 09:48:13 5172] DEBUG (DevController= :139) Waiting for devices vkbd.
6452 [2010-02-02 09:48:13 5172] D= EBUG (DevController:139) Waiting for devices vfb.
6453 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for = devices console.
6454 [2010-02-02 09:48:13 5172] DEBUG (DevContro= ller:144) Waiting for 0.
6455 [2010-02-02 09:48:13 5172] DEBUG (D= evController:139) Waiting for devices pci.
6456 [2010-02-02 09:48:13 5172] DEBUG (DevController:139) Waiting for = devices tap2.
6457 [2010-02-02 09:48:13 5172] DEBUG (DevControlle= r:139) Waiting for devices tap.
6458 [2010-02-02 09:48:13 5172] D= EBUG (DevController:144) Waiting for 769.
6458 [2010-02-02 09:48:13 5172] DEBUG (DevController:144) Waiting for = 769.
6459 [2010-02-02 09:48:13 5172] DEBUG (DevController:628) ho= tplugStatusCallback=A0

/local/domain/0/backend/tap= /3/769/hotplug-status.
6460 [2010-02-02 09:48:13 5172] DEBUG (DevController:642) hotplugStatu= sCallback 2.
6461 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInf= o:3030) XendDomainInfo.destroy: domid=3D18
6462 [2010-02-02 09:48= :13 5172] DEBUG (XendDomainInfo:2389) Destroying device model
6463 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:2396) Releasing = devices
6464 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:240= 2) Removing vif/0
6465 [2010-02-02 09:48:13 5172] DEBUG (XendDoma= inInfo:1269) XendDomainInfo.destroyDevice:=A0

deviceClass =3D vif, device =3D vif/0
6466 [2= 010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:2402) Removing console/0
6467 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:1269) XendDoma= inInfo.destroyDevice:=A0

deviceClass =3D console, device =3D console/0
6468 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:2402) Removing tap/7= 69
6469 [2010-02-02 09:48:13 5172] DEBUG (XendDomainInfo:1269) Xe= ndDomainInfo.destroyDevice:=A0

deviceClass =3D tap, device =3D tap/769

<= /div>
On Tue, Feb 2, 2010 at 8:13 AM, Brendan= Cully <brendan@c= s.ubc.ca> wrote:
# HG changeset patch
# User Brendan Cully <brendan@cs.ub= c.ca>
# Date 1265068569 28800
# Node ID a43ce819faa185c1e1eef2b8244b64788ddff05a
# Parent =A0d30a67608592a1b68c286bb352b9f7fbe37f0e19
Remus: ensure kernel modules are built before attempting to install them
make tools seems to skip straight to the install target.

Signed-off-by: Brendan Cully <brend= an@cs.ubc.ca>

diff --git a/tools/remus/kmod/Makefile b/tools/remus/kmod/Makefile
--- a/tools/remus/kmod/Makefile
+++ b/tools/remus/kmod/Makefile
@@ -17,7 +17,7 @@
=A0 =A0 =A0 =A0if test -d $(KERNELDIR); then $(MAKE) -C $(KERNELDIR) SUBDI= RS=3D`pwd` modules; fi

=A0.PHONY: install
-install:
+install: all
=A0 =A0 =A0 =A0if test -d $(KERNELDIR); then $(MAKE) -C $(KERNELDIR) SUBDI= RS=3D`pwd` INSTALL_MOD_PATH=3D$(DESTDIR) modules_install; fi

=A0clean::

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.= com
http://l= ists.xensource.com/xen-devel



--
--
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
--0016e68e8b51242ecd047e94d39b-- --===============1872720404== 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 --===============1872720404==--