CentOS7 Minimal installation of virtual machines

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.