XEN not working on XEN LiveCD

4 posts / 0 new
Last post
#1 Tue, 2013-08-06 12:39
RomanSzabados
  • RomanSzabados's picture
  • Offline
  • Last seen: 4 years 7 months ago
  • Joined: 2013-08-04

Dear All,

After running the XEN LiveCD and running the commands setup-xen-dom0 and setup-alpine, XEN (xm, xend) is not working:

box:~# xm list
Traceback (most recent call last):
File "/usr/sbin/xm", line 5, in
from xen.xm import main
ImportError: No module named xm
box:~#
box:~#
box:~#
box:~# /etc/init.d/xend restart
* Starting Xen control daemon ...
Traceback (most recent call last):
File "/usr/sbin/xend", line 36, in
from xen.xend.server import SrvDaemon
ImportError: No module named xend.server
Traceback (most recent call last):
File "/usr/sbin/xend", line 36, in
from xen.xend.server import SrvDaemon
ImportError: No module named xend.server
Traceback (most recent call last):
File "/usr/sbin/xend", line 36, in
from xen.xend.server import SrvDaemon
ImportError: No module named xend.server
Traceback (most recent call last):
File "/usr/sbin/xend", line 36, in
from xen.xend.server import SrvDaemon
ImportError: No module named xend.server
^C * xend: caught SIGINT, aborting
box:~#

As far as i can tell, the system is missing the xen .py scripts. I have also installed xen-hypervisor package, but it did not help.

box:~# find / -name "main.py"
/usr/lib/python2.7/lib2to3/main.py
/usr/lib/python2.7/unittest/main.py
box:~#

The system is missing for instance the file /xen/xm/main.py. Any ideas why?
Thank you.

Wed, 2013-08-07 00:11
shafire
  • shafire's picture
  • Offline
  • Last seen: 2 years 7 months ago
  • Joined: 2013-08-06

You should use xl. xm is deprecated.

Wed, 2013-08-07 05:02 (Reply to #2)
RomanSzabados
  • RomanSzabados's picture
  • Offline
  • Last seen: 4 years 7 months ago
  • Joined: 2013-08-04

Thank you shafire!

Do you know why the /etc/init.d/xend is not working? Is it also deprecated? xl list show dom0 running and it looks good, i will try to start a domU tomorrow.

Wed, 2013-08-07 10:43 (Reply to #3)
shafire
  • shafire's picture
  • Offline
  • Last seen: 2 years 7 months ago
  • Joined: 2013-08-06

As of Xen 4.2, xend is also deprecated. You should use xl by default.

Log in or register to post comments