Subject: Xen3 problems
To: NetBSD/xen <port-xen@NetBSD.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: port-xen
Date: 04/23/2007 10:49:23
I'm having problems to setup a new NetBSD/xen 4.0_BETA2 box for Xen3 dom0. What 
am I doing wrong?


ROOT xen3:~> xm list
Error: Unable to connect to xend: No such file or directory. Is xend running?

ROOT xen3:~> ps axw | grep xen
   15 ?     DK   0:00.00 [xenwatch]
   16 ?     DK   0:00.00 [xenbus]
  110 ?     I    0:00.00 xenstored --pid-file /var/run/xenstore.pid
  114 ?     I    0:00.00 /usr/pkg/bin/python2.4 /usr/pkg/sbin/xend start
  115 ?     Ia   0:00.00 xenconsoled
  116 ?     Ia   0:00.00 /usr/pkg/bin/python2.4 /usr/pkg/sbin/xend start
1143 ?     Isa  0:00.00 /usr/pkg/sbin/xenbackendd
1829 ttyp0 S+   0:00.00 grep xen

ROOT xen3:~> ls -lh /dev/xen*
crw-------  1 root  wheel  143, 0 Mar 30 12:50 /dev/xencons
crw-------  1 root  wheel  141, 0 Mar 30 14:07 /dev/xenevt

ROOT xen3:~> uname -srm
NetBSD 4.0_BETA2 i386

ROOT xen3:~> grep xen /etc/rc.conf
xenbackendd=YES
xend=YES

ROOT xen3:~> pkg_info | grep xen
xenkernel30-3.0.4   Xen3 Kernel
xentools30-3.0.3nb2 Userland Tools for Xen

ROOT xen3:~> rm -f /var/log/xen/*
ROOT xen3:~> /etc/rc.d/xend restart
Stopping xend.
Starting xend.

ROOT xen3:~> cat /var/log/xen/xend.log
[2007-04-23 10:31:47 xend 1892] INFO (SrvDaemon:283) Xend Daemon started
[2007-04-23 10:31:47 xend 1892] INFO (SrvDaemon:287) Xend changeset: Mon Jan 08 
14:09:18 2007 +0000 13130:a23a5f674422.
[2007-04-23 10:31:47 xend 1892] ERROR (SrvDaemon:297) Exception starting xend 
((13, 'Permission denied'))
Traceback (most recent call last):
   File "/usr/pkg/lib/python2.4/site-packages/xen/xend/server/SrvDaemon.py", 
line 291, in run
     servers = SrvServer.create()
   File "/usr/pkg/lib/python2.4/site-packages/xen/xend/server/SrvServer.py", 
line 108, in create
     root.putChild('xend', SrvRoot())
   File "/usr/pkg/lib/python2.4/site-packages/xen/xend/server/SrvRoot.py", line 
40, in __init__
     self.get(name)
   File "/usr/pkg/lib/python2.4/site-packages/xen/web/SrvDir.py", line 82, in get
     val = val.getobj()
   File "/usr/pkg/lib/python2.4/site-packages/xen/web/SrvDir.py", line 52, in getobj
     self.obj = klassobj()
   File "/usr/pkg/lib/python2.4/site-packages/xen/xend/server/SrvDomainDir.py", 
line 39, in __init__
     self.xd = XendDomain.instance()
   File "/usr/pkg/lib/python2.4/site-packages/xen/xend/XendDomain.py", line 655, 
in instance
     inst.init()
   File "/usr/pkg/lib/python2.4/site-packages/xen/xend/XendDomain.py", line 76, 
in init
     self._add_domain(
   File "/usr/pkg/lib/python2.4/site-packages/xen/xend/XendDomain.py", line 139, 
in xen_domains
     domlist = xc.domain_getinfo()
Error: (13, 'Permission denied')