- Create a directory to mount iso file in it
mkdir /media/iso
- Check default CD Drive mount points in your virtual machine most to be "/dev/sr0" or "/dev/hdc"
mount umount /dev/hdc # as your virtual CD drive to be /dev/hdc or /dev/sr0 mount -t iso9660 -o loop /dev/hdc /media/iso
- Edit "etc/fstab" to mount in boot startup
vim /etc/fstab # to mount in boot startup
/dev/hdc /media/iso iso9660 loop,defaults 0 0
- Create local yum dvd.repo file
vim /etc/yum.repo.d/dvd.repo [Server] name=Server baseurl=file:///media/iso/Server gpgkey=file:///media/iso/RPM-GPG-KEY gpgcheck=1 enabled=1 [Cluster] name=Cluster baseurl=file:///media/iso/Cluster gpgkey=file:///media/iso/RPM-GPG-KEY gpgcheck=1 enabled=1 [ClusterStorage] name=ClusterStorage baseurl=file:///media/iso/ClusterStorage gpgkey=file:///media/iso/RPM-GPG-KEY enabled=1
- Clean up yum repo cache and create new one
yum clean all yum makecache yum repolist
No comments:
Post a Comment