<p dir="ltr"><br>
Il 06/Gen/2016 11:27, &quot;Bruno Martins&quot; &lt;<a href="mailto:bruno.martins@rumos.pt">bruno.martins@rumos.pt</a>&gt; ha scritto:<br>
&gt;<br>
&gt; Hi everyone,<br>
&gt;<br>
&gt; I hope this is the best place to post this question.<br>
&gt;<br>
&gt; I was wondering how can one upgrade from CentOS 6.7 to CentOS 7.x using redhat-upgrade-tool-cli in a scenario where you&#39;re upgrading an Hyper-V based VM.<br>
&gt;<br>
&gt; These are the errors I am getting:<br>
&gt;<br>
&gt; [root@apssopenvas /]# /usr/bin/redhat-upgrade-tool-cli --network 7 --instrepo=<a href="http://mirror.centos.org/centos/7/os/x86_64">http://mirror.centos.org/centos/7/os/x86_64</a><br>
&gt; setting up repos...<br>
&gt; Could not retrieve mirrorlist <a href="http://updates.atomicorp.com/channels/mirrorlist/atomic/centos-7.0-x86_64">http://updates.atomicorp.com/channels/mirrorlist/atomic/centos-7.0-x86_64</a> error was<br>
&gt; 14: PYCURL ERROR 22 - &quot;The requested URL returned error: 404 Not Found&quot;<br>
&gt; Could not retrieve mirrorlist <a href="http://updates.atomicorp.com/channels/mirrorlist/atomic-testing/centos-7.0-x86_64">http://updates.atomicorp.com/channels/mirrorlist/atomic-testing/centos-7.0-x86_64</a> error was<br>
&gt; 14: PYCURL ERROR 22 - &quot;The requested URL returned error: 404 Not Found&quot;<br>
&gt; YumRepo Error: All mirror URLs are not using ftp, http[s] or file.<br>
&gt;  Eg. 7.0 is not a valid and current release or hasnt been released yet/<br>
&gt; removing mirrorlist with no valid mirrors: /var/tmp/system-upgrade/base/mirrorlist.txt<br>
&gt; YumRepo Error: All mirror URLs are not using ftp, http[s] or file.<br>
&gt;  Eg. 7.0 is not a valid and current release or hasnt been released yet/<br>
&gt; removing mirrorlist with no valid mirrors: /var/tmp/system-upgrade/extras/mirrorlist.txt<br>
&gt; YumRepo Error: All mirror URLs are not using ftp, http[s] or file.<br>
&gt;  Eg. 7.0 is not a valid and current release or hasnt been released yet/<br>
&gt; removing mirrorlist with no valid mirrors: /var/tmp/system-upgrade/updates/mirrorlist.txt<br>
&gt; No upgrade available for the following repos: atomic atomic-testing base extras updates<br>
&gt; .treeinfo                                                                                                                                        | 1.1 kB     00:00<br>
&gt; preupgrade-assistant risk check found EXTREME risks for this upgrade.<br>
&gt; Run preupg --riskcheck --verbose to view these risks.<br>
&gt; Continuing with this upgrade is not recommended.<br>
&gt;<br>
&gt; And this is the reason for the risk:<br>
&gt;<br>
&gt; [root@apssopenvas /]# preupg --riskcheck --verbose<br>
&gt; INPLACERISK: EXTREME: This machine seems to run on a Microsoft hypervisor.<br>
&gt;<br>
&gt; Thank you!<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Bruno Martins<br>
&gt; _______________________________________________<br>
&gt; CentOS-devel mailing list<br>
&gt; <a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a><br>
&gt; <a href="https://lists.centos.org/mailman/listinfo/centos-devel">https://lists.centos.org/mailman/listinfo/centos-devel</a></p>
<p dir="ltr">Hello,<br>
I&#39;m not an expert, but did you follow this link?<br>
<a href="https://wiki.centos.org/TipsAndTricks/CentOSUpgradeTool">https://wiki.centos.org/TipsAndTricks/CentOSUpgradeTool</a><br>
Because for CentOS I see that the command name begins with centos and not redhat.<br>
Also, the main error seems related to &quot;not found&quot; and indeed the mirrorlist path with &quot;7.0&quot; doesn&#39;t exist.<br>
But it does exist instead the path with<br>
 <a href="http://updates.atomicorp.com/channels/mirrorlist/atomic/centos-7-x86_64">http://updates.atomicorp.com/channels/mirrorlist/atomic/centos-7-x86_64</a><br>
Perhaps a &quot;yum clean all&quot; and then follow the tips page could also resolve the repo mismatch problem.<br>
For the hypervisor problem I think it depends on the fact that cpuinfo is that of the hypervisor itself and not a real problem. Just my opinion.<br>
Hih,<br>
Gianluca</p>