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: FW: [Xen-devel] Creating domain crashes xend with the latest xenunst

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: FW: [Xen-devel] Creating domain crashes xend with the latest xenunstable tree
From: Cherie Cheung <ccyxen@xxxxxxxxx>
Date: Thu, 19 May 2005 08:51:48 +0800
Delivery-date: Thu, 19 May 2005 00:51:18 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mQAJIv7YUtL8xXszii/fy8Nry5ZI1HRlKugyA+IhW9gbkafW6ymwMJztXpEbai0WueFiA7HVqoqg2VBTXS1yYxjf900akmhxP6i+WGT0qx4QD5GFbYeSkcS2Z5f84TVI/XxtL7f77zxiHkZarJS/0NygNoHpYsbuAiXMPg4jZO4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4289B3CC.7020501@xxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <OF2BD2F320.3BE262BA-ON87257003.0072A0DF-86257003.00784C93@xxxxxxxxxx> <4289B3CC.7020501@xxxxxx>
Reply-to: Cherie Cheung <ccyxen@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I am new to Xen. I also got problem when creating domain in Xen
3.0(unstable version)

I got the following errors:

Using config file "/etc/xen/vcluster.py".
[xend] DEBUG (XendDomainInfo:696) init_domain> Created domain=9
name=vm3 memory=131072
[xend] DEBUG (XendDomainInfo:1117) creating linux domain with cmdline:
 ip=172.19.222.202:1.2.3.4:172.19.222.250:255.255.255.0:vm3:eth0:off
root=/dev/sda1 ro
[xend] WARNING (XendDomainInfo:725) building dom with 1 vcpus
VIRTUAL MEMORY ARRANGEMENT:
 Loaded kernel: c0100000->c0338884
 Init. ramdisk: c0339000->c0442400
 Phys-Mach map: c0443000->c0463000
 Page tables:   c0463000->c0466000
 Start info:    c0466000->c0467000
 Boot stack:    c0467000->c0468000
 TOTAL:         c0000000->c0800000
 ENTRY ADDRESS: c0100000
 VCPUS:         1
[xend] WARNING (XendDomainInfo:1062) Unknown config field memmap
[xend] WARNING (XendDomainInfo:1062) Unknown config field device_model
[xend] WARNING (XendDomainInfo:1062) Unknown config field device_config
[xend] INFO (console:100) Created console id=0 domain=9 port=9609
[xend] INFO (XendRoot:122) EVENT> xend.domain.create ['vm3', '9']
[xend] INFO (XendRoot:122) EVENT> xend.console.create [0, 9, 9609]
Domain construction error: global name 'log' is not defined
Traceback (most recent call last):
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 513, in construct
    self.configure()
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1003, in configure
    self.create_devices()
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 795, in create_devices
    self.create_configured_devices()
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 784, in
create_configured_devices
    self.createDevice(ctrl_type, dev_config, recreate=recreate)
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 362, in createDevice
    return ctrl.createDevice(devconfig, recreate=self.recreate)
  File "/usr/lib/python/xen/xend/server/controller.py", line 236, in
createDevice
    dev.attach(recreate=recreate, change=change)
  File "/usr/lib/python/xen/xend/server/blkif.py", line 219, in attach
    self.setNode(node)
  File "/usr/lib/python/xen/xend/server/blkif.py", line 254, in setNode
    segment = blkif.blkdev_segment(node)
  File "/usr/lib/python/xen/util/blkif.py", line 52, in blkdev_segment
    n = blkdev_name_to_number(name)
  File "/usr/lib/python/xen/util/blkif.py", line 24, in blkdev_name_to_number
    log.debug("exception looking up device number for %s: %s", name, ex)
NameError: global name 'log' is not defined
ConsoleController>destroyController>
<xen.xend.server.console.ConsoleController instance at 0xb76d1e8c>
False
ConsoleDev>destroy> <xen.xend.server.console.ConsoleDev instance at
0xb76d1f6c> False
[xend] DEBUG (blkif:420) Destroying blkif domain=9
[xend] DEBUG (blkif:309) Destroying vbd domain=9 id=0
op_create> Exception creating domain:
Traceback (most recent call last):
  File "/usr/lib/python/xen/xend/server/SrvDomainDir.py", line 63, in op_create
    dominfo = self.xd.domain_create(config)
  File "/usr/lib/python/xen/xend/XendDomain.py", line 401, in domain_create
    dominfo = XendDomainInfo.vm_create(config)
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 184, in vm_create
    vm.construct(config)
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 513, in construct
    self.configure()
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1003, in configure
    self.create_devices()
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 795, in create_devices
    self.create_configured_devices()
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 784, in
create_configured_devices
    self.createDevice(ctrl_type, dev_config, recreate=recreate)
  File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 362, in createDevice
    return ctrl.createDevice(devconfig, recreate=self.recreate)
  File "/usr/lib/python/xen/xend/server/controller.py", line 236, in
createDevice
    dev.attach(recreate=recreate, change=change)
  File "/usr/lib/python/xen/xend/server/blkif.py", line 219, in attach
    self.setNode(node)
  File "/usr/lib/python/xen/xend/server/blkif.py", line 254, in setNode
    segment = blkif.blkdev_segment(node)
  File "/usr/lib/python/xen/util/blkif.py", line 52, in blkdev_segment
    n = blkdev_name_to_number(name)
  File "/usr/lib/python/xen/util/blkif.py", line 24, in blkdev_name_to_number
    log.debug("exception looking up device number for %s: %s", name, ex)
NameError: global name 'log' is not defined
Error: Error creating domain: global name 'log' is not defined
[xend] INFO (XendRoot:122) EVENT> xend.domain.died ['vm3', '9']

Namely, the errors are
Unknown config field memmap
Unknown config field device_model
Unknown config field device_config
[xend] INFO (XendRoot:122) EVENT> xend.console.create [0, 9, 9609]
Domain construction error: global name 'log' is not defined

Can anyone help me please?

Thanks.

Cherie

On 5/17/05, Mike Wray <mike.wray@xxxxxx> wrote:
> Li Ge wrote:
> > Here are some more information :
> >
> > 1. Yes. The problem is reproducible. But the weird thing is if I start
> > xend using" xend trace_start", the problem goes away and I can get the
> > new domain created. I've tried both "xend start" and "xend trace_start"
> > a couple of times. It always works with "xend trace_start" but not with
> > "xend start".
> > 2. The domain config file: /(See attached file: xen-sarge.config)/
> > 3: /var/log/xend.log file: /(See attached file: xend.log)/
> > 4. The /var/log/xend.trace file is quite big (2+MB), so I am not putting
> > it here. If you still think it might help, I can send it to you.
> 
> The xend.log appears to be of a restarted xend.
> Is it the log including the initial domain create?
> 
> Could you send the xend.trace direct to me?
> Don't copy the list as it's so big.
> 
> Thanks,
> 
> Mike
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel