简体   繁体   English

具有kickstart的centOS7 netinstall无法获取安装源

[英]centOS7 netinstall with kickstart fails to get installation source

I'm trying to install CentOS7 using a kickstart file with a VM . 我正在尝试使用带有VMkickstart文件安装CentOS7 I am using a netinstall version of the ISO . 我正在使用ISOnetinstall版本。

When I try to put the URL in the kickstart file, it will take a long time to check the installation source, and then fail. 当我尝试将URL放入kickstart文件中时,将需要很长时间检查安装源,然后失败。

I have checked the ISO , installing successfully without kickstart and using this address for the source: 我已经检查了ISO ,没有kickstart就能成功安装,并使用以下地址作为来源:

url --url="http://sunsite.rediris.es/mirror/CentOS/7/os/x86_64/" url --url =“ http://sunsite.rediris.es/mirror/CentOS/7/os/x86_64/”

However, when using kickstart file, I install and then fail with below error message - 但是,使用kickstart文件时,我安装并失败,并显示以下错误消息-

Error setting up base repository 设置基本存储库时出错

Even if I manually type it in after it errors out. 即使我在错误提示后手动输入它。

Does anyone have any ideas? 有人有什么想法吗? I have reduced my kickstart file to just that one line and it still shows the same behaviour. 我将我的kickstart文件减少到仅这一行,它仍然显示相同的行为。 I don't have this problem with kickstart using the minimal or full install ISO 's. 使用最小或完整安装ISOkickstart我没有这个问题。

I'm just learning Linux so I didn't realize you could switch into another screen and monitor the install/run commands simultaneously. 我只是在学习Linux,所以我没有意识到您可以切换到另一个屏幕并同时监视安装/运行命令。

After doing so I realised it wouldn't resolve names. 这样做之后,我意识到它不会解析名称。

My DNS is dead/isn't responding. 我的DNS已死/没有响应。 Used kickstart to manually assign another DNS server to the interface. 使用kickstart手动将另一个DNS服务器分配给该接口。 This allowed the install to resolve the url. 这允许安装程序解析URL。 This would explain why the install worked with the netinstall iso on its own, as it was using default settings. 这可以解释为什么安装会与netinstall iso一起使用,因为它使用的是默认设置。

Hope this helps someone. 希望这对某人有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM