Mac上搭建centOS虚拟机
折腾,下错镜像真是折腾自己。网上关于这方面教程真的满屏都是,一搜一大把,但最后能用的适合自己的没一个。个个都成功了(害成功都是属于别人的),于我便是各种失败,心塞塞,浪费了好多时间和精力,耐性都快消磨了,不过最后还是成功了nice。遂记下方便日后的自己查看也希望本文能帮到和我一样有这困扰并且有缘看到这篇文章的你。
下面开始安装吧
首先先要安装VMware Fusion,具体如何安装自行百度哦挺简单的。下载好后就下载centos镜像,官网上下的很慢,不仅很慢,我下了两个,不知何种原因最后operating system not found,然后又去百度了原因,还是没法解决。最后是在阿里云的镜像网站上下载才成功的。
附上下载链接
建议不要下太新的,中间的即可。
选第一个版本,该DVD映像包含可以使用安装程序安装的所有软件包。这是大多数用户的推荐图像。相信大多数的
这几个版本有何不同呢,可以从readme.txt知道
CentOS-7-x86_64-DVD-2003.iso
This DVD image contains all the packages that can be installed using the
installer. This is the recommended image for most users.
该DVD映像包含可以使用安装程序安装的所有软件包。这是大多数用户的推荐图像。
CentOS-7-x86_64-NetInstall-2003.iso
This is the network install and rescue image. The installer will ask from
where it should fetch the packages to be installed. This image is most
useful if you have a local mirror of CentOS packages.
这是网络安装和救援映像。安装程序将询问应从何处获取要安装的软件包。如果您具有CentOS软件包的本地镜像,则此映像最有用。
CentOS-7-x86_64-Everything-2003.iso
This image contains the complete set of packages for CentOS Linux 7. It can be
used for installing or populating a local mirror. This image needs a 16GB USB
flash drive as it is too large for DVD isos.
CentOS-7-x86_64-LiveGNOME-2003.iso
CentOS-7-x86_64-LiveKDE-2003.iso
These images are Live images of CentOS Linux 7. Depending on the name they use the
respective display manager. They are designed for testing purposes and
exploring the CentOS Linux 7 environment. They will not modify the content of your
hard disk, unless you choose to install CentOS Linux 7 from within the Live
environment. Please be advised that you can not change the set of installed
packages in this case. This needs to be done within the installed system
using ‘yum’.
CentOS-7-x86_64-Minimal-2003.iso
The aim of this image is to install a very basic CentOS Linux 7 system, with the
minimum of packages needed to have a functional system. Please burn this image
onto a CD and boot your computer off it. A preselected set of packages will be
installed on your system. Everything else needs to be installed using yum. The set
of packages installed by this image is identical to the one installed when choosing
the group named “Minimal” from the full DVD image.
下载完之后将镜像拖进VMware,少了截图,因为抱着还是失败的心态,所以没截图留底,不过不影响,前面的操作同很多教程一样。关键在后面,我相信很多童鞋下载成功后可能就是个黑黑的命令行窗口,因为没有安装桌面,如果你也是这样,继续往下看。
敲黑板 关键的一步来了,没有选这个估计会没有界面哦,喜欢界面的大佬请绕过哈哈哈,我还是喜欢界面的。我第一次安装时就没有桌面,就是通过命令行来和centos系统交互,是因为在安装时少了GNOME桌面,软件选择默认选了“最小安装”,机智的我在第二次安装时瞧见了,勾选【GNOME桌面】
开始安装
输入密码,可以设置简单的密码(人老了记忆力不行),按两次完成即可
等待系统安装插件。
安装好后,要点进这里勾选同意许可协议
完成配置
大功告成!✌️
希望本文能帮到你~