问题其实是没有安装“guest-tools”造成的,安装即可
fOjz.png

环境

  • centos 7 minimal
  • xencenter 7.6

安装过程

启动机器后从DVD那里选择“guest-tools”或者右键启动的机器,选择“Install Xenserver Tools”都行
方式1
f8rK.png

方式2
fWVa.png
root登陆机器,然后执行blkid

[root@l1 ~]# blkid
/dev/xvda1: UUID="a1b4d8d7-6c76-4446-a4bc-791c714e733e" TYPE="xfs" 
/dev/xvda2: UUID="P6OmGq-sB9g-d6ey-o3B8-HUZF-q4L2-eJYvlR" TYPE="LVM2_member" 
/dev/sr0: UUID="2017-02-14-21-45-52-00" LABEL="XenServer Tools" TYPE="iso9660" 
/dev/mapper/cl-root: UUID="bfb3794b-a2df-4410-9963-bb90c2258916" TYPE="xfs" 
/dev/mapper/cl-swap: UUID="2a5593ae-10d2-4e41-9a20-d985e4b59cf6" TYPE="swap"

找到“LABEL=”XenServer Tools””的驱动器,挂载并安装即可;会自动判断系统和版本,deb系列也可以

[root@l1 ~]# mount /dev/sr0 /mnt/
mount: /dev/sr0 写保护,将以只读方式挂载

[root@l1 mnt]# ls
AUTORUN.INF                  EULA                    managementagentx86.msi  xenlegacy.exe
copyright.txt                Linux                   README.txt              xluninstallerfix.exe
dotNetFx40_Full_x86_x64.exe  managementagentx64.msi  Setup.exe
[root@l1 mnt]# cd Linux/
[root@l1 Linux]# ls
install.sh    xe-guest-utilities_7.1.0-41_all.tgz     xe-guest-utilities-xenstore-7.1.0-41.i386.rpm
versions.deb  xe-guest-utilities_7.1.0-41_amd64.deb   xe-guest-utilities-xenstore-7.1.0-41.x86_64.rpm
versions.rpm  xe-guest-utilities_7.1.0-41_i386.deb    xe-linux-distribution
versions.tgz  xe-guest-utilities-7.1.0-41.i386.rpm    xe-linux-distribution.service
xe-daemon     xe-guest-utilities-7.1.0-41.x86_64.rpm  xen-vcpu-hotplug.rules
[root@l1 Linux]# ./install.sh
Detected `CentOS Linux release 7.6.1810 (Core) ' (centos version 7).

The following changes will be made to this Virtual Machine:
  * update arp_notify sysctl.
  * packages to be installed/upgraded:
    - xe-guest-utilities-7.1.0-41.x86_64.rpm
    - xe-guest-utilities-xenstore-7.1.0-41.x86_64.rpm

Continue? [y/n] y

虽然装完后不用重启就可以马上显示IP了,但是还是如官方建议的那样,重启机器
f95v.png

发表评论

电子邮件地址不会被公开。 必填项已用*标注

12 − 2 =