安装过无数次虚拟机了,yum源也配置了很多次,在这里记录一下,加强一下记忆,免得用时到处去找
1、虚拟机安装完成后,在设置中配置iso的路径

这种方法没有找到,复制到了磁盘/opt/rhel下
2、挂载得到/media/rhel下
mount -o -t iso9660 /opt/rhel /media/rhel
查看文件夹的内容

df可以查看效果

3、配置yum源
cd /etc/ yum.repos.d/
cp rhel-source.repo rhel-source.repo_bak
vi rhel-source.repo

4 执行 : yum clean all
yum makecache

出现上面内容,没有报错就成功了
5 附录centos 6中yum的配置

网友评论