Insert the CentOS system CD into the optical drive and, if it is a VM virtual machine, select load ISO image
On the VM tab--Settings--Hardware-cd/dvd/--using ISO image file, select your ISO path
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7E/50/wKioL1b8kn6zXsP-AACqx6A7wsY362.png "title=" 1.png " alt= "Wkiol1b8kn6zxsp-aacqx6a7wsy362.png"/>
To mount the optical drive:
Set up the Mount directory first,
#mkdir/media/cdrom
#mount/dev/cdrom/media/cdrom
Go to/media/cdrom to see if there is a file display and ISO, so it succeeds.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7E/50/wKioL1b8k5KQRFqnAAAp0k42VO4015.png "title=" 2.png " alt= "Wkiol1b8k5kqrfqnaaap0k42vo4015.png"/>
Modify Yum Source
1. Remove the network Yum source.
#cd/ETC/YUM.REPOS.D
#mv Centos-base.repo Centos-base.repo.bak
2. Configure local Yum
#cd/ETC/YUM.REPOS.D
#mv Centos-media.repo Centos-media.repo.bak
#vi Centos-media.repo
Enter the following content
[C5-media]
name=centos-$releasever-media
baseurl=file:///media/cdrom/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6
3. Updating the Yum cache
# yum Clean All (Clear Cache)
# yum Makecache (Create new cache)
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7E/50/wKioL1b8lRaCZMIeAAAb1AsaF6Q336.png "title=" 3.png " alt= "Wkiol1b8lraczmieaaab1asaf6q336.png"/>
Build success.
Reference:
Http://jingyan.baidu.com/article/e9fb46e1aed8207521f7662c.html
Http://blog.chinaunix.net/uid-20639775-id-2854736.html
http://blog.163.com/[email protected]/blog/static/9540383720095239183669/
This article is from the "Enlightened Grocery store" blog, please be sure to keep this source http://wutou.blog.51cto.com/615096/1758754
Linux CENTOS6 mount local ISO optical drive image