Xen acm.so: undefined symbol: Py_InitModule4
When doing some updates on a few servers I have that run Xen I ran into a few errors. This is just some notes about how to fix the problem
After doing the updates I noticed that the Xen proceses were not started up and that none of the Xen commands work. The errors being:
File "/usr/lib/python/xen/util/security.py", line 25, infrom xen.lowlevel import acm ImportError: /usr/lib/python/xen/lowlevel/acm.so: undefined symbol: Py_InitModule4
The reason for this is python, which Xen relies on heavily was updated from 2.4 to 2.5. I had the old Xen source around so I could rebuild xen but I did not want to take the risk of borking the systems which are physically over an hour drive away. Turns out though all you need to update is the xen user space tools and deamon. The hypervisor and kernel do not need to be rebuilt.
cd xen-3.0.4-1 make clean make tools make install-tools /etc/init.d/xend restart
That is all. Quite simple. Note these are old machines used for testing, do not run such an old version of Xen.

