用户在安装CentOS 6的时候选择的模板为CentOS6.0(64-bit)(experimental),安装完centos6.0后在安装xen-tools的时候报错:Fatal error: Failed to determine Linux distribution and version
查看xenserver6.0 Virtual Machine Installation Guide
CentOS只支持到5.5,6.0并不在支持列表当中,是否有其他途径安装xen-tools呢,答案是可以的:
1. 在Xencenter里光驱换成xs-tools.iso
2. 通过SSH登录CentOS6.0
#mkdir /mnt/xentools
#mount /dev/xvdd /mnt/xentools
#cd /mnt/xentools/Linux
# rpm -ivh xe-guest-utilities-xenstore-6.0.0-743.x86_64.rpm
# rpm -ivh xe-guest-utilities-6.0.0-743.x86_64.rpm
查看虚拟机器此时状态,发现xentools安装成功。。
1.在Xencenter里光驱换成xs-tools.iso
2.登陆SSH:
[root@ns0 ~]# cd /mnt
[root@ns0 mnt]# ls
[root@ns0 mnt]# mkdir xs-tools
[root@ns0 mnt]# mount /dev/xvdd /mnt/xs-tools/
mount: block device /dev/xvdd is write-protected, mounting read-only
[root@ns0 mnt]# cd /mnt/xs-tools/Linux/
[root@ns0 Linux]# bash install.sh
Detected `CentOS release 5.2 (Final)' (centos version 5).
The following changes will be made to this Virtual Machine:
* packages to be installed/upgraded:
- kernel-xen-2.6.18-53.1.13.el5.xs4.1.0.24.x86_64.rpm
- xe-guest-utilities-4.1.0-257.x86_64.rpm
Continue? [y/n] y
Preparing...########################################### [100%]
1:xe-guest-utilities########################################### [100%]
Preparing...########################################### [100%]
package kernel-xen-2.6.18-92.el5 (which is newer than kernel-xen-2.6.18-53.1.13.el5.xs4.1.0.24) is already installed
You should now reboot this Virtual Machine.
重启完成安装。