1. Virtual machine installation Choose to install the operating system at a later time, this is installed on their own, or directly by default for you to install.
2. After minimal installation of the virtual machine, Yum cannot find the packages. is because the default source cannot be found. You can mount the installation image and localize the source. (because after the installation is minimized, the virtual machine---> Settings----->cd/dvd (IDE)--->
Using the ISO image file---------> Browse button, select our pre-downloaded CentOS7 ISO file, ISO as CDROM already exists)
#mkdir/mnt/isoyum
#mount-O Loop/dev/cdrom/mnt/isoyum
Then go into the/ETC/YUM.REPOS.D backup MV/ETC/YUM.REPOS.D/BASE.REPO/ETC/YUM.REPOS.D/BASE.REPO.BK
Then set the Base.repo code as follows:
[ISO]
Baseurl=file:///mnt/iso
Gpgkey=file:///mnt/iso/rpm-gpg-key-redhat-beta
Failovermethod=priority
Enabled=1
Gpgcheck=0
Finally, yum update is performed for Yum source updates, and Yum is used to install packages after the update is complete. Installing the package with Yum automatically finds dependencies between the package and installs it automatically in the order of dependencies, which is handy.
The VI in 3.Centos minimized only installs the vim-minimal-7.x by default. So whether the input VI or VIM to view the file, the syntax function is not enabled properly. It is therefore necessary to install the other two components with Yum: vim-common-7.x and vim-enhanced-7.x. In the command line, typing:
Yum-y Install vim-enhanced
Yum will automatically install the two components. Then you can do it in vim: syntax on can take effect.
CentOS7 Minimal installation of virtual machines