WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] can't start domains

To: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] can't start domains
From: James Harper <JamesH@xxxxxxxxxxxxxxxx>
Date: Sun, 22 Aug 2004 09:21:07 +1000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxxx>, <Ian.Pratt@xxxxxxxxxxxx>, <mike.wray@xxxxxxxxxx>
Delivery-date: Sun, 22 Aug 2004 00:23:47 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <E1ByVo6-0004ny-00@xxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <E1ByVo6-0004ny-00@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Thread-index: AcSH1Yk4AliimZzCTaONaY9fUpJQsQ==
Thread-topic: [Xen-devel] can't start domains
the output i sent yesterday was a combination of xend and xm, here's just the xm output:
 
xen2:/etc/xen# xm create -f /etc/xen/gaia2
Using config file "/etc/xen/gaia2".
Error: Error creating domain: int argument required
here's /etc/xen/gaia2
 
#  -*- mode: python; -*-
#import sys
#import xenctl.ip
vmid=3
kernel = "/boot/vmlinuz-2.6.7-xenU"
memory = 128
name = "gaia2"
cpu = vmid
nics = 2
vif = [ 'mac=FE:FD:01:00:04:00,bridge=br0', 'mac=FE:FD:01:00:04:01,bridge=br1' ]
disk = [ 'phy:vg00/gaia2,sda1,w', 'phy:vg00/gaia2-swap,sda2,w' ]
root = "/dev/sda1 ro"
extra = " 4 VMID=%d " % vmid
restart = False
it is identical to the one that works on the other server, except that on this one I had to comment out the two include lines, as it couldn't find xenctl.ip, i don't think that is required anymore anyway is it? it's not in the example configs.
 
there must be something different between this new server and the other one... i just can't seem to figure out what though!!!
 
here's a more complete output from xend, i think i missed a bit in my last post:
 
config: (vm (name gaia2) (memory 128) (cpu 3) (image (linux (kernel /boot/vmlinuz-2.6.7-xenU) (root '/dev/sda1 ro') (args ' 4 VMID=3 '))) (device (vbd (uname phy:vg00/gaia2) (dev sda1) (mode w))) (device (vbd (uname phy:vg00/gaia2-swap) (dev sda2) (mode w))) (device (vif (mac FE:FD:01:00:04:00) (bridge br0))) (device (vif (mac FE:FD:01:00:04:01) (bridge br1))))
[xend] DEBUG (XendDomainInfo:717) init_domain> Created domain=1 name=gaia2 memory=128
[xend] INFO (console:93) Created console id=14 domain=1 port=9601
VIRTUAL MEMORY ARRANGEMENT:
 Loaded kernel: c0100000->c02fbf44
 Init. ramdisk: c02fc000->c02fc000
 Phys-Mach map: c02fc000->c031c000
 Page tables:   c031c000->c031e000
 Start info:    c031e000->c031f000
 Boot stack:    c031f000->c0320000
 TOTAL:         c0100000->c0400000
 ENTRY ADDRESS: c0100000
[xend] DEBUG (XendDomainInfo:1065) Creating vbd dom=1 uname=phy:vg00/gaia2 dev=sda1
[xend] DEBUG (blkif:50) Connecting blkif <BlkifBackendController 1 0>
CtrlMsgRcvr>writeRequest> message: type= blkif_be_create_t 1:0 id=1
payload= {'status': 1852731203, 'blkif_handle': 0, 'domid': 1}
[xend] DEBUG (XendDomainInfo:1065) Creating vbd dom=1 uname=phy:vg00/gaia2-swap dev=sda2
[xend] DEBUG (XendDomainInfo:674) Destroying vbds for domain 1
[xend] DEBUG (blkif:363) Destroying blkif domain=1
op_create> Exception creating domain:
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDomainDir.py", line 64, in op_create
    deferred = self.xd.domain_create(config)
  File "/usr/lib/python2.3/site-packages/xen/xend/XendDomain.py", line 359, in domain_create
    deferred = XendDomainInfo.vm_create(config)
  File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 259, in vm_create
    return vm.construct(config)
  File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 511, in construct
    self.destroy()
  File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 613, in destroy
    self.cleanup()
  File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 641, in cleanup
    self.release_devices()
  File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 652, in release_devices
    self.release_vbds()
  File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 675, in release_vbds
    ctrl.destroy()
  File "/usr/lib/python2.3/site-packages/xen/xend/server/blkif.py", line 364, in  destroy
    self.destroyDevices()
  File "/usr/lib/python2.3/site-packages/xen/xend/server/blkif.py", line 371, in destroyDevices
    dev.destroy()
  File "/usr/lib/python2.3/site-packages/xen/xend/server/blkif.py", line 207, in destroy
    log.debug("Destroying vbd domain=%d vdev=%d", self.controller.dom, self.vdev
)
  File "/usr/lib/python2.3/logging/__init__.py", line 879, in debug
    apply(self._log, (DEBUG, msg, args), kwargs)
  File "/usr/lib/python2.3/logging/__init__.py", line 994, in _log
    self.handle(record)
  File "/usr/lib/python2.3/logging/__init__.py", line 1004, in handle
    self.callHandlers(record)
  File "/usr/lib/python2.3/logging/__init__.py", line 1037, in callHandlers
    hdlr.handle(record)
  File "/usr/lib/python2.3/logging/__init__.py", line 592, in handle
    self.emit(record)
  File "/usr/lib/python2.3/logging/handlers.py", line 102, in emit
    msg = "%s\n" % self.format(record)
  File "/usr/lib/python2.3/logging/__init__.py", line 567, in format
    return fmt.format(record)
  File "/usr/lib/python2.3/logging/__init__.py", line 362, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.3/logging/__init__.py", line 233, in getMessage
    msg = msg % self.args
TypeError: int argument required
EVENT> xend.console.create [14, 1, 9601]
requestReceived> message: type= None 1:32 id=255
payload= {'status': 1}
requestReceived> No device: Message type netif_be_driver_status_changed_t 3:32 < Channel dom=0 ports=2:-1>
responseReceived> message: type= blkif_be_create_t 1:0 id=1 payload= {'status': 0, 'blkif_handle': 0, 'domid': 1}
respond_be_create> {'status': 0, 'blkif_handle': 0, 'domid': 1}
Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 313, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 338, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 252, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 313, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line 338, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/lib/python2.3/site-packages/xen/xend/server/blkif.py", line 226, in send_be_vbd_create
    { 'domid'        : self.controller.dom,
  File "/usr/lib/python2.3/site-packages/xen/xend/server/messages.py", line 217, in packMsg
    msg = xu.message(major, minor, msgid, args)
exceptions.TypeError: payload contains bad items
thanks
 
James


From: Ian Pratt
Sent: Sat 21/08/2004 11:21 PM
To: James Harper
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx; Ian.Pratt@xxxxxxxxxxxx; mike.wray@xxxxxxxxxx
Subject: Re: [Xen-devel] can't start domains

Something is going wrong during the domain creation, and then
xend tries to clean up by destroying the stillborn
domain. Unfortunately, we then hit a xend bug while destroying
the domain's block device (perhaps because that was the original
problem?) and the traceback all refers to this bug which prevents
it from reporting back to xm what the original problem was.

I've cc'ed Mike so that he can take a look at the Xend bug. 

As regards the real error, take a close look at the sxp config
data that that xm sends to xend and check that it matches your
expected configuration. (see the config: output from xend).

Ian


> i've just set up xen on a new machine and now get an error when trying to start a domain. It goes like this:
> 
> op_create> Exception creating domain:
> Traceback (most recent call last):
>   File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDomainDir.py", line 64, in op_create
>     deferred = self.xd.domain_create(config)
>   File "/usr/lib/python2.3/site-packages/xen/xend/XendDomain.py", line 359, in domain_create
>     deferred = XendDomainInfo.vm_create(config)
>   File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 259, in vm_create
>     return vm.construct(config)
>   File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 511, in construct
>     self.destroy()
>   File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 613, in destroy
>     self.cleanup()
>   File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 641, in cleanup
>     self.release_devices()
>   File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 652, in release_devices
>     self.release_vbds()
>   File "/usr/lib/python2.3/site-packages/xen/xend/XendDomainInfo.py", line 675, in release_vbds
>     ctrl.destroy()
>   File "/usr/lib/python2.3/site-packages/xen/xend/server/blkif.py", line 364, in destroy
>     self.destroyDevices()
>   File "/usr/lib/python2.3/site-packages/xen/xend/server/blkif.py", line 371, in destroyDevices
>     dev.destroy()
>   File "/usr/lib/python2.3/site-packages/xen/xend/server/blkif.py", line 207, in destroy
>     log.debug("Destroying vbd domain=%d vdev=%d", self.controller.dom, self.vdev)
>   File "/usr/lib/python2.3/logging/__init__.py", line 879, in debug
>     apply(self._log, (DEBUG, msg, args), kwargs)
>   File "/usr/lib/python2.3/logging/__init__.py", line 994, in _log
>     self.handle(record)
>   File "/usr/lib/python2.3/logging/__init__.py", line 1004, in handle
>     self.callHandlers(record)
>   File "/usr/lib/python2.3/logging/__init__.py", line 1037, in callHandlers
>     hdlr.handle(record)
>   File "/usr/lib/python2.3/logging/__init__.py", line 592, in handle
>     self.emit(record)
>   File "/usr/lib/python2.3/logging/handlers.py", line 102, in emit
>     msg = "%s\n" % self.format(record)
>   File "/usr/lib/python2.3/logging/__init__.py", line 567, in format
>     return fmt.format(record)
>   File "/usr/lib/python2.3/logging/__init__.py", line 362, in format
>     record.message = record.getMessage()
>   File "/usr/lib/python2.3/logging/__init__.py", line 233, in getMessage
>     msg = msg % self.args
> TypeError: int argument required
> Error: Error creating domain: int argument required
> 
> it got to be something i haven't installed... maybe it's too late at night... any ideas?