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/
Home Products Support Community News


Re: [Xen-devel] Xen unstable on NetBSD

To: Keir Fraser <keir.xen@xxxxxxxxx>
Subject: Re: [Xen-devel] Xen unstable on NetBSD
From: Roger Pau Monné <roger.pau@xxxxxxxxxxxxx>
Date: Fri, 8 Jul 2011 19:13:43 +0200
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Delivery-date: Fri, 08 Jul 2011 10:14:49 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=q7z4iC1LeC8vVAMmwiZaqd1Bchfchr9ZnKf7hd7ubZ0=; b=QJ/5YNM2hHT3llaktIGD7o4mvGvYk68jHAZuRdwj1sLFTR30QmX1/JzQQLRFz6rs4g SmfNREdSOcYRTUPO1rVeSEFapC0/gff2tgfjROU3e4q30D7jqvaXjD/g9zhSEMo6Xmsc lKvHOdx6WS0gOAbaENjgn31nhTAi+PORaAfGo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAPLaKK6FDsCGTmUsvJe0D-9Kmt1C3EwoaVtCQqM6h4GsaNrs-g@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CAPLaKK42QNoOT3stcvLREcU2ePuUZ6RbXGDTxK59S56q-oaJJQ@xxxxxxxxxxxxxx> <CA3C7C3C.1D927%keir.xen@xxxxxxxxx> <CAPLaKK6FDsCGTmUsvJe0D-9Kmt1C3EwoaVtCQqM6h4GsaNrs-g@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I've compiled and installed xen-unstable, but when launching xend I
get the following error (although xend seems to start):

[2011-07-08 21:11:04 136] INFO (SrvDaemon:336) Xend changeset: Thu Jul
07 12:35:05 2011 +0100 23658:21ff10d9a617.
[2011-07-08 21:11:04 136] DEBUG (tcp:96) Listening on :8002
[2011-07-08 21:11:04 136] ERROR (SrvDaemon:349) Exception starting
xend (argument 2 to map() must support iteration)
Traceback (most recent call last):
  File "/usr/xen42/lib/python2.6/site-packages/xen/xend/server/SrvDaemon.py",
line 341, in run
    servers = SrvServer.create()
  File "/usr/xen42/lib/python2.6/site-packages/xen/xend/server/SrvServer.py",
line 258, in create
    root.putChild('xend', SrvRoot())
  File "/usr/xen42/lib/python2.6/site-packages/xen/xend/server/SrvRoot.py",
line 40, in __init__
  File "/usr/xen42/lib/python2.6/site-packages/xen/web/SrvDir.py",
line 84, in get
    val = val.getobj()
  File "/usr/xen42/lib/python2.6/site-packages/xen/web/SrvDir.py",
line 52, in getobj
    self.obj = klassobj()
  File "/usr/xen42/lib/python2.6/site-packages/xen/xend/server/SrvNode.py",
line 30, in __init__
    self.xn = XendNode.instance()
  File "/usr/xen42/lib/python2.6/site-packages/xen/xend/XendNode.py",
line 1181, in instance
    inst = XendNode()
  File "/usr/xen42/lib/python2.6/site-packages/xen/xend/XendNode.py",
line 159, in __init__
  File "/usr/xen42/lib/python2.6/site-packages/xen/xend/XendNode.py",
line 282, in _init_PPCIs
    for pci_dev in PciUtil.get_all_pci_devices():
  File "/usr/xen42/lib/python2.6/site-packages/xen/util/pci.py", line
475, in get_all_pci_devices
    return map(PciDevice, get_all_pci_dict())
  File "/usr/xen42/lib/python2.6/site-packages/xen/util/pci.py", line
472, in get_all_pci_dict
    return map(parse_pci_name, get_all_pci_names())
TypeError: argument 2 to map() must support iteration

Then when trying to start a domu with xm:

Error: Unable to connect to xend: No such file or directory. Is xend running?

Although I see this in ps aux:

root    136  0.0  2.7 125728 14144 ?       Il    9:11PM 0:00.13
/usr/pkg/bin/python2.6 /usr/xen42/sbin/xend start
root    231  0.0  1.0 116512  5104 ?       I     9:11PM 0:00.01
/usr/pkg/bin/python2.6 /usr/xen42/sbin/xend start

Thanks for the help, Roger.

2011/7/8 Roger Pau Monné <roger.pau@xxxxxxxxxxxxx>:
> Sorry, I've cloned the repo yesterday. I have another question, but I
> don't know if I should post it in another thread. During compilation
> of tools, I get:
> AR    i386-dm/libqemu.a
>  LINK  i386-dm/qemu-dm
> ld: cannot find -lblktap
> gmake[4]: *** [qemu-dm] Error 1
> gmake[4]: Leaving directory
> `/root/xen/xen-unstable.hg/tools/ioemu-remote/i386-dm'
> gmake[3]: *** [subdir-i386-dm] Error 2
> gmake[3]: Leaving directory `/root/xen/xen-unstable.hg/tools/ioemu-remote'
> gmake[2]: *** [subdir-install-ioemu-dir] Error 2
> gmake[2]: Leaving directory `/root/xen/xen-unstable.hg/tools'
> gmake[1]: *** [subdirs-install] Error 2
> gmake[1]: Leaving directory `/root/xen/xen-unstable.hg/tools'
> gmake: *** [install-tools] Error 2
> Becasue the blktap driver for NetBSD is not added in the Xen
> repository, but blktap2 has support for NetBSD (well, at least there
> seems to be some NetBSD specific files in the drivers folder). Is it
> possible to replace blktap with blktap2 during the build of qemu, so I
> don't need to add blk_netbsd.c and blktapctrl_netbsd.c to
> tools/blktap/drivers/ manually?
> Thanks, Roger.
> 2011/7/8 Keir Fraser <keir.xen@xxxxxxxxx>:
>> On 08/07/2011 08:51, "Roger Pau Monné" <roger.pau@xxxxxxxxxxxxx> wrote:
>>> I don't know if this has anything to do with the patches I've applied
>>> from Xen41, I will try to clone the repo again and post the problems
>>> encountered during compiling, to try to fix them independently.
>> Update your xen-unstable tree. This bug is fixed.
>>  -- Keir

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>