centos6在线升级到centos7出错原因分析

最近想把centos6在线升级到centos7,使用preupg进行评估,结果如下

Summary information:
We found some critical issues. In-place upgrade is not advised.
Read the file /root/preupgrade/result.html for more details.

意思是发现了一些问题,不建议本地升级,结果存为result。

于是使用yum upgrade进行升级,200多个包,几百兆的安装文件下载并升级之后,centos版本从6.5升级到了6.7,然后再次运行preupg进行评估,结果还是一样。

结合preupg评估输出的hyper-v fail,在result文件中找到了这么一段话:

In-place upgrade of CentOS 7 as a guest on Hyper-V is not currently supporte

意思是本地升级centos目前不支持hyper-v。

这下就明白了,我的centos是装在hyper-v虚拟机中的,所以无法本地在线升级。

然后插入centos7的iso镜像,从iso引导,发现没有升级选项,只能全新安装,目前还不知道怎么回事,记得centos6 iso引导的时候有个选项:安装或升级现有,centos7没有这个选项,只有一个安装选项。估计vmware应该没问题吧,有机会试试。