XenServer 虚拟机安装 guest-tools
2016-07-19 by dongnan
开始之前
为什么 XenServer 虚拟机要安装 XenServer tools ?
为虚拟机(Windows 和 Linux)安装 XenServer Tools,以便虚拟机拥有完全受支持的配置并且能够使用 XenServer 管理工具。 
环境描述
- 虚拟化服务器,xenserver 7
- 虚拟机操作系统,CentOS 7.2
操作步骤
挂载ISO文件
使用 XenCenter 为虚拟机添加 xs-tool.iso
然后在虚拟机内执行挂载命令
mount /dev/cdrom /mnt/ 
cd /mnt/Linux/
使用脚本安装
# 执行脚本
./install.sh
Detected `CentOS Linux release 7.2.1511 (Core) ' (centos version 7).
The following changes will be made to this Virtual Machine:
  * enable arp_notify in sysctl.
    * packages to be installed/upgraded:
      - xe-guest-utilities-6.5.0-1420.x86_64.rpm
      - xe-guest-utilities-xenstore-6.5.0-1420.x86_64.rpm
# 输入 y
Continue? [y/n] y
Preparing...                          ################################# [100%]
Updating / installing...
   1:xe-guest-utilities-xenstore-6.5.0################################# [ 50%]
   2:xe-guest-utilities-6.5.0-1420    ################################# [100%]
You should now reboot this Virtual Machine. 
重启虚拟机系统
# 按照提示重启
sync && reboot
验证
# 重启后,会有很多以 xe 开头的命令,例如:
xe-linux-distribution
os_distro="centos"
os_majorver="7"
os_minorver="2"
os_uname="3.10.0-327.18.2.el7.x86_64"
os_name="CentOS Linux release 7.2.1511 (Core) "