ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 升级python2.7 导致xend 不能启动解决办法

升级python2.7 导致xend 不能启动解决办法

原创 Linux操作系统 作者:jasperjohn 时间:2013-10-09 16:06:46 0 删除 编辑
<升级python2.7 导致xend 不能启动解决办法>
故障描述:
[root@datanode2 ~]# service xend restart
restart xend: Traceback (most recent call last):
  File "/usr/sbin/xend", line 51, in
    from xen.xend.server import SrvDaemon
ImportError: No module named xen.xend.server
Traceback (most recent call last):
  File "/usr/sbin/xend", line 51, in
    from xen.xend.server import SrvDaemon
ImportError: No module named xen.xend.server
.Traceback (most recent call last):
  File "/usr/sbin/xend", line 51, in
    from xen.xend.server import SrvDaemon
ImportError: No module named xen.xend.server
.Traceback (most recent call last):
  File "/usr/sbin/xend", line 51, in
    from xen.xend.server import SrvDaemon
ImportError: No module named xen.xend.server
.Traceback (most recent call last):
  File "/usr/sbin/xend", line 51, in
    from xen.xend.server import SrvDaemon
ImportError: No module named xen.xend.server
解决方法:
[root@datanode2 /]# ll /usr/local/bin/python
lrwxrwxrwx 1 root root 7 09-02 17:38 /usr/local/bin/python -> python2
[root@datanode2 /]# ls -al /usr/lib/python2.4
总计 104
drwxr-xr-x  5 root root  4096 2013-01-09 .
drwxr-xr-x 81 root root 36864 09-30 12:35 ..
drwxr-xr-x  2 root root  4096 07-29 13:02 config
drwxr-xr-x 18 root root  4096 07-30 10:29 site-packages
drwxr-xr-x  4 root root 36864 07-29 13:03 test

[root@datanode2 /]#  ls -al /usr/lib/python2.4
总计 104
drwxr-xr-x  5 root root  4096 2013-01-09 .
drwxr-xr-x 81 root root 36864 09-30 12:35 ..
drwxr-xr-x  2 root root  4096 07-29 13:02 config
drwxr-xr-x 18 root root  4096 07-30 10:29 site-packages
drwxr-xr-x  4 root root 36864 07-29 13:03 test
[root@datanode2 /]# ls -al /usr/bin/python2.4
-rwxr-xr-x 1 root root 8304 2013-01-09 /usr/bin/python2.4
[root@datanode2 /]# ls -al /usr/bin/python
lrwxrwxrwx 1 root root 24 09-03 14:07 /usr/bin/python -> /usr/local/bin/python2.7

[root@datanode2 /]# mv /usr/bin/python /usr/bin/pythonbak
[root@datanode2 /]# ln -s /usr/bin/python2.4  /usr/bin/python

[root@datanode2 /]# service xend start
启动 xend:                                                [确定]
[root@datanode2 /]#
[root@datanode2 /]#
[root@datanode2 /]#
[root@datanode2 /]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     7611     4 r-----     70.5
[root@datanode2 /]# free -m
             total       used       free     shared    buffers     cached
Mem:          7611       1851       5759          0         27        517
-/+ buffers/cache:       1307       6303
Swap:        10001          0      10001

启动虚拟机:
[root@datanode2 /]# xm create vm1
Using config file "/etc/xen/vm1".
Started domain vm1
[root@datanode2 /]# xm create vm2
Using config file "/etc/xen/vm2".

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14661773/viewspace-773985/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-04-18

  • 博文量
    45
  • 访问量
    160358