Configure the local yum source
Experiments are as follows:
(1) First, we need to give this a virtual machine configuration ip address
virtual machine IP configuration
(2) to upload the desired image to the main building yum source (I use the redhat7.3 version, so also mirrored version 7.3)
Providing a source image is the file package, a general image file iso linux system built to contain the required source yum rpm files.
In this piece I used a mirror is mounted way
Note: CD-ROM mount, mount host must be shut down
(1) The first step in the first image is downloaded from the real host to the virtual machine configured above
(2) step optical drives, double niode2, click on the light bulb, the following interface, click add hardware
if the optical disc set, yum source host to build the following screen appears:
(3) a third step of mount
and then hung to mount upload mirror
(4) yum source editing configuration files
/etc/yum.repos.d/ delegation is set to file yum source
settings file must end repo
writing to a file inside;
see if you can in your browser to search this local path:
(5) testing:
installation dhcp
Share yum source to build
Shared yum source that you set up on a host good yum source, others can access and use (use if you want to set the file locally yum sources, the will find the software path written in the network path that is shared type yum source path)
shared yum source type, you need to open http service, turn off the firewall.
Experimental follows;
(1) install and start the http service
open service http:
(2) into the shared directory, the mirror mount
(3) turn off the firewall
(4) test;
permanently mount the mirror: