因为要在OpenStack内创建CentOS 7.4的qcow2格式镜像,所以去http://cloud.centos.org/centos/7/images/上下载。
发现没有显式的标明CentOS 版本:
![](https://img-blog.csdnimg.cn/20201209094640806.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2Rha2V5MjAwOA==,size_16,color_FFFFFF,t_70)
不过,目测是文件尾部的数字“1706”对应了版本号。于是就小小验证下。
首先是随便选择一个国内的镜像源,查看CentOS7.4的版本信息:http://mirrors.aliyun.com/centos/7.4.1708/
![](https://img-blog.csdnimg.cn/20201209095128667.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2Rha2V5MjAwOA==,size_16,color_FFFFFF,t_70)
下载readme打开看到:
This directory (and version of CentOS) is deprecated. For normal users,
you should use /7/ and not /7.4.1708/ in your path. Please see this FAQ
concerning the CentOS release scheme:
https://wiki.centos.org/FAQ/General
If you know what you are doing, and absolutely want to remain at the 7.4.1708
level, go to http://vault.centos.org/ for packages.
Please keep in mind that 7.4.1708 no longer gets any updates, nor
any security fix's.
可以看到,7.4已经被抛弃了,对应的版本数字为:1708
好了,可以去下载对应尾号为1708的云镜像了。不过国外官网的网络慢,可以用国内的(度娘来的,目测是南京大学):
http://mirrors.nju.edu.cn/centos-cloud/centos/7/images/
![](https://img-blog.csdnimg.cn/20201209095437668.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2Rha2V5MjAwOA==,size_16,color_FFFFFF,t_70)
在OpenStack验证下,果然是7.4(这不是废话么。。。)
![](https://img-blog.csdnimg.cn/20201209095554317.png)
[root@sdp-agent ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
事情很简单,就是花了点度娘的时间。仅作备忘。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)