18.12. 常见的故障解除
当你试图启动
xend
服务时,什么也没有发生。键入 xm list1
后可以看到下面的输出:
Error: Error connecting to xend: Connection refused. Is xend running?
当你尝试手工运行
xend start
时,发现更多的错误:
Error: Could not obtain handle on privileged command interfaces (2 = No such file or directory) Traceback (most recent call last:) File "/usr/sbin/xend/", line 33 in ? from xen.xend.server. import SrvDaemon File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDaemon.py" , line 26 in ? from xen.xend import XendDomain File "/usr//lib/python2.4/site-packages/xen/xend/XendDomain.py" , line 33, in ? from xen.xend import XendDomainInfo File "/usr/lib/python2.4/site-packages/xen/xend/image.py" , line37, in ? import images File "/usr/lib/python2.4/site-packages/xen/xend/image.py" , line30, in ? xc = xen.lowlevel.xc.xc () RuntimeError: (2, 'No such file or directory' )
最可能的原因就是你把主机启动到了非
xen-hypervisor
的内核。要解决这个问题,你必须在引导时选择 xen-hypervisor
内核(或在 grub.conf
文件里把 xen-hypervisor
内核设置为缺省选项)。