Installed Debian Etch yesterday (I need a linux kernel with xen and vserver for now, and Lenny doesn’t have one) then upgraded it to Lenny. Afterwards the Xen tools wouldn’t start anymore and produced the following error:
# /etc/init.d/xend start
Restarting XEN control daemon: xendTraceback (most recent call last):
File "/usr/lib/xen-3.0.3-1/bin/xend", line 40, in <module>
from xen.xend.server import SrvDaemon
File "/usr/lib/xen-3.0.3-1/lib/python/xen/xend/server/SrvDaemon.py", line 17, in <module>
import xen.lowlevel.xc
ImportError: /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/lowlevel/xc.so: undefined symbol: Py_InitModule4
You can solve this in 2 ways. First, the silly way:
rm /usr/bin/python; ln -s /usr/bin/python2.4 /usr/bin/python
Or, the way you’re supposed to:
apt-get install xen-utils-3.2-1