18.5. 利用日志进行故障解除
When encountering issues with installing Red Hat Virtualization, you can refer to the host system's two logs to assist with troubleshooting. The
xend.log
file contains the same basic information as when you run the xm log
command. It resides in the /var/log/
directory. Here is an example log entry for when you create a domain running a kernel:
[2006-12-27 02:23:02 xend] ERROR (SrvBase: 163) op=create: Error creating domain: (0, 'Error') Traceback (most recent call list) File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvBase.py" line 107 in_perform val = op_method (op,req) File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDomainDir.py line 71 in op_create raise XendError ("Error creating domain: " + str(ex)) XendError: Error creating domain: (0, 'Error')
其他的日志文件,
xend-debug.log
,对于系统管理员也是非常有用的,因为它包含了比 xend.log
更为详细的信息。下面是同一个内核域创建问题里错误数据:
ERROR: Will only load images built for Xen v3.0 ERROR: Actually saw: GUEST_OS=netbsd, GUEST_VER=2.0, XEN_VER=2.0; LOADER=generic, BSD_SYMTAB' ERROR: Error constructing guest OS
当呼叫客户支持并和技术支持人员联系时,请记得附上这些日志文件的拷贝。