Skip to content

Debian Lenny start problem wit Xen 3.2.1

I try to start xen daemon

tuxido:/var/log/xen# /etc/init.d/xend start
Starting XEN control daemon: xend failed!
I look into the xen-log:

[2009-03-05 09:41:54 4478] INFO (SrvDaemon:219) Xend exited with status 1.
[2009-03-05 09:42:07 4545] INFO (SrvDaemon:331) Xend Daemon started
[2009-03-05 09:42:07 4545] INFO (SrvDaemon:335) Xend changeset: unavailable.
[2009-03-05 09:42:07 4545] INFO (SrvDaemon:342) Xend version: Unknown.
[2009-03-05 09:42:07 4545] ERROR (SrvDaemon:353) Exception starting xend (no element found: line 1, column 0)
Traceback (most recent call last):
File “/usr/lib/xen-3.2-1/lib/python/xen/xend/server/SrvDaemon.py”, line 345, in run
servers = SrvServer.create()
File “/usr/lib/xen-3.2-1/lib/python/xen/xend/server/SrvServer.py”, line 251, in create
root.putChild(‘xend’, SrvRoot())
File “/usr/lib/xen-3.2-1/lib/python/xen/xend/server/SrvRoot.py”, line 40, in __init__
self.get(name)
File “/usr/lib/xen-3.2-1/lib/python/xen/web/SrvDir.py”, line 82, in get
val = val.getobj()
File “/usr/lib/xen-3.2-1/lib/python/xen/web/SrvDir.py”, line 52, in getobj
self.obj = klassobj()
File “/usr/lib/xen-3.2-1/lib/python/xen/xend/server/SrvNode.py”, line 30, in __init__
self.xn = XendNode.instance()
File “/usr/lib/xen-3.2-1/lib/python/xen/xend/XendNode.py”, line 709, in instance
inst = XendNode()
File “/usr/lib/xen-3.2-1/lib/python/xen/xend/XendNode.py”, line 87, in __init__
saved_cpus = self.state_store.load_state(‘cpu’)
File “/usr/lib/xen-3.2-1/lib/python/xen/xend/XendStateStore.py”, line 104, in load_state
dom = minidom.parse(xml_path)
File “/usr/lib/python2.5/xml/dom/minidom.py”, line 1915, in parse
return expatbuilder.parse(file)
File “/usr/lib/python2.5/xml/dom/expatbuilder.py”, line 924, in parse
result = builder.parseFile(fp)
File “/usr/lib/python2.5/xml/dom/expatbuilder.py”, line 211, in parseFile
parser.Parse(“”, True)
ExpatError: no element found: line 1, column 0

SOLUTION:

rm -fR /var/lib/xend/*

tuxido:/var/lib/xend# /etc/init.d/xend start
Starting XEN control daemon: xend.

tuxido# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  3234     4     r—–   1250.4
Windows                                      6   512     1     -b—-     39.6
xen1.selix.internal                          3   128     1     -b—-      1.9
xen2.selix.internal                          4   128     1     -b—-      2.2