XenServer
- Perform the following operations to back up files in the /etc/yum.repos.d directory:
- Run the cd /etc/yum.repos.d command to switch to the /etc/yum.repos.d directory.
- Run the ll -h command to check the repo files in the directory.
If no repo file exists, skip the next step.
- Run the following command to back up all repo files:
mv /etc/yum.repos.d/xxx.repo /etc/yum.repos.d/xxx.repo.backup
xxx is the name of a file.
- Run either of the following commands to download the image to the /etc/yum.repos.d directory:
wget -O /etc/yum.repos.d/CentOS7.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
curl -o /etc/yum.repos.d/CentOS7.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
- Run the yum repolist command to update the yum repository.
You may fail to access the yum repository (for example, 404 Not Found is displayed).
In this case, use the vi or vim editor to modify the /etc/yum.repos.d/CentOS6.repo file and change $releasever to 7.

Run the yum repolist command again to update the yum repository.
- Install Cloud-Init.
- Run the following command to check the version number:
For XenServer 7.1, the installation is successful if the command output is cloud-init 0.7.9.
Last Article: Overview
Next Article: SUSE, Red Hat, CentOS, Oracle Linux, Ubuntu, Debian, and EulerOS 2.8 ARM
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.